Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mes
mes-ui
Commits
6719f085
Commit
6719f085
authored
Jan 22, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产补数
parent
0bf0bc1f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
7 deletions
+83
-7
.env.production
.env.production
+1
-1
WorkOrderSale.vue
src/views/mes/pro/workorder/components/WorkOrderSale.vue
+18
-2
WorkOrderSize.vue
src/views/mes/pro/workorder/components/WorkOrderSize.vue
+33
-2
proofingInfo.vue
src/views/mes/pro/workorder/proofingInfo.vue
+31
-2
No files found.
.env.production
View file @
6719f085
...
@@ -5,4 +5,4 @@ VUE_APP_TITLE = 宝绅-生产执行系统
...
@@ -5,4 +5,4 @@ VUE_APP_TITLE = 宝绅-生产执行系统
ENV = 'production'
ENV = 'production'
# 若依管理系统/生产环境
# 若依管理系统/生产环境
VUE_APP_BASE_API = 'http://192.168.
3.91:810
0'
VUE_APP_BASE_API = 'http://192.168.
222.60:808
0'
src/views/mes/pro/workorder/components/WorkOrderSale.vue
View file @
6719f085
...
@@ -355,8 +355,20 @@
...
@@ -355,8 +355,20 @@
label=
"数量"
label=
"数量"
align=
"center"
align=
"center"
prop=
"quantity"
prop=
"quantity"
width=
"120"
width=
"140"
>
<
template
v-slot=
"scope"
>
<el-input-number
:max=
"scope.row.max"
style=
"width: 130px"
v-if=
"mode === 'make'"
:disabled=
"disabled"
v-model=
"scope.row.quantity"
@
change=
"(val) => handleChange(val, index)"
/>
/>
<div
v-else
>
{{
scope
.
row
.
quantity
}}
</div>
</
template
>
</el-table-column>
<el-table-column
<el-table-column
label=
"客户编号"
label=
"客户编号"
align=
"center"
align=
"center"
...
@@ -585,6 +597,7 @@ export default {
...
@@ -585,6 +597,7 @@ export default {
components
:
{},
components
:
{},
inject
:
[
"mode"
],
inject
:
[
"mode"
],
dicts
:
[
"sys_yes_no"
],
dicts
:
[
"sys_yes_no"
],
props
:
[
"disabled"
],
data
()
{
data
()
{
return
{
return
{
/**弹窗状态 */
/**弹窗状态 */
...
@@ -716,6 +729,9 @@ export default {
...
@@ -716,6 +729,9 @@ export default {
purchaseOrg
:
""
,
purchaseOrg
:
""
,
};
};
},
},
handleChange
(
val
,
index
){
this
.
$emit
(
'change'
,
this
.
tableData
)
},
/**重置组件状态 */
/**重置组件状态 */
resetState
()
{
resetState
()
{
this
.
resetForm
();
this
.
resetForm
();
...
...
src/views/mes/pro/workorder/components/WorkOrderSize.vue
View file @
6719f085
...
@@ -31,7 +31,34 @@
...
@@ -31,7 +31,34 @@
align=
"center"
align=
"center"
:prop=
"item.prop"
:prop=
"item.prop"
:width=
"item.width"
:width=
"item.width"
>
<template
v-slot=
"scope"
>
<el-input-number
:max=
"scope.row.max"
style=
"width: 150px"
v-model=
"scope.row.quantity"
v-if=
"item.prop === 'quantity' && mode === 'make'"
@
change=
"(val) => handleChange(val, index)"
/>
/>
<div
v-else
>
{{
scope
.
row
[
item
.
prop
]
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
v-if=
"mode === 'make'"
@
click=
"deleteRow(scope.$index)"
>
删除
</el-button
>
</
template
>
</el-table-column>
<!-- <el-table-column
<!-- <el-table-column
label="销线"
label="销线"
align="center"
align="center"
...
@@ -410,7 +437,7 @@ export default {
...
@@ -410,7 +437,7 @@ export default {
{
prop
:
"salesId"
,
label
:
"销售订单号"
},
{
prop
:
"salesId"
,
label
:
"销售订单号"
},
{
prop
:
"salesItem"
,
label
:
"销售订单行项目"
},
{
prop
:
"salesItem"
,
label
:
"销售订单行项目"
},
{
prop
:
"clientCmd"
,
label
:
"销售订单指令号"
},
{
prop
:
"clientCmd"
,
label
:
"销售订单指令号"
},
{
prop
:
"quantity"
,
label
:
"派工数"
},
{
prop
:
"quantity"
,
label
:
"派工数"
,
width
:
"160"
},
{
prop
:
"lossNum"
,
label
:
"Loss数"
},
{
prop
:
"lossNum"
,
label
:
"Loss数"
},
{
prop
:
"brandCode"
,
label
:
"品牌"
},
{
prop
:
"brandCode"
,
label
:
"品牌"
},
{
prop
:
"salePath"
,
label
:
"销线"
},
{
prop
:
"salePath"
,
label
:
"销线"
},
...
@@ -554,6 +581,10 @@ export default {
...
@@ -554,6 +581,10 @@ export default {
/**删除行 */
/**删除行 */
deleteRow
(
index
)
{
deleteRow
(
index
)
{
this
.
tableData
.
splice
(
index
,
1
);
this
.
tableData
.
splice
(
index
,
1
);
this
.
$emit
(
'change'
,
this
.
tableData
)
},
handleChange
(
val
,
index
){
this
.
$emit
(
'change'
,
this
.
tableData
)
},
},
/**表单提交 */
/**表单提交 */
submitForm
()
{
submitForm
()
{
...
...
src/views/mes/pro/workorder/proofingInfo.vue
View file @
6719f085
...
@@ -131,6 +131,7 @@
...
@@ -131,6 +131,7 @@
v-model=
"form.quantity"
v-model=
"form.quantity"
placeholder=
"请输入生产数量"
placeholder=
"请输入生产数量"
type=
"number"
type=
"number"
:disabled=
"mode == 'make' && ((currentData.saleDirectiveList && currentData.saleDirectiveList.length) || (currentData.sizeList && currentData.sizeList.length))"
min=
"1"
min=
"1"
@
change=
"handleChangeQuantity"
@
change=
"handleChangeQuantity"
/>
/>
...
@@ -329,10 +330,10 @@
...
@@ -329,10 +330,10 @@
<ProogingProcess
ref=
"ProogingProcessRef"
:bomList=
"bomList"
/>
<ProogingProcess
ref=
"ProogingProcessRef"
:bomList=
"bomList"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"指令"
>
<el-tab-pane
label=
"指令"
>
<WorkOrderSale
ref=
"WorkOrderSaleRef"
/>
<WorkOrderSale
ref=
"WorkOrderSaleRef"
@
change=
"changeSale"
:disabled=
"currentData.sizeList && currentData.sizeList.length > 0"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"SIZE"
>
<el-tab-pane
label=
"SIZE"
>
<WorkOrderSize
ref=
"WorkOrderSizeRef"
/>
<WorkOrderSize
ref=
"WorkOrderSizeRef"
@
change=
"changeSize"
/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</PageWrapper>
</PageWrapper>
...
@@ -529,6 +530,32 @@ export default {
...
@@ -529,6 +530,32 @@ export default {
},
},
methods
:
{
methods
:
{
changeSale
(
tableData
){
if
(
this
.
mode
===
'make'
)
{
tableData
.
forEach
(
item
=>
{
quantity
+=
item
.
quantity
})
this
.
form
.
quantity
=
quantity
}
},
changeSize
(
tableData
){
let
quantity
=
0
let
lossNum
=
0
let
samples
=
0
if
(
this
.
mode
===
'make'
)
{
tableData
.
forEach
(
item
=>
{
quantity
+=
item
.
quantity
lossNum
+=
item
.
lossNum
samples
+=
item
.
samples
})
this
.
$refs
[
"WorkOrderSaleRef"
].
tableData
[
0
][
'lossNum'
]
=
lossNum
this
.
$refs
[
"WorkOrderSaleRef"
].
tableData
[
0
][
'quantity'
]
=
quantity
this
.
$refs
[
"WorkOrderSaleRef"
].
tableData
[
0
][
'samples'
]
=
samples
console
.
log
(
'this.currentData'
,
this
.
currentData
)
this
.
currentData
.
saleDirectiveList
=
this
.
$refs
[
"WorkOrderSaleRef"
].
tableData
this
.
form
.
quantity
=
quantity
}
},
handleChangeQuantity
()
{
handleChangeQuantity
()
{
// console.log(quantity);
// console.log(quantity);
// 计算补单的时候 数量变更修改
// 计算补单的时候 数量变更修改
...
@@ -672,6 +699,8 @@ export default {
...
@@ -672,6 +699,8 @@ export default {
// 设置组件数据
// 设置组件数据
this
.
$refs
[
"ProogingBomRef"
].
tableData
=
data
.
bomList
;
this
.
$refs
[
"ProogingBomRef"
].
tableData
=
data
.
bomList
;
console
.
log
(
'生产工单'
,
data
.
processList
)
console
.
log
(
'生产工单'
,
data
.
processList
)
data
.
sizeList
.
forEach
(
v
=>
v
[
"max"
]
=
v
.
quantity
)
data
.
saleDirectiveList
.
forEach
(
v
=>
v
[
"max"
]
=
v
.
quantity
)
this
.
$refs
[
"ProogingProcessRef"
].
tableData
=
data
.
processList
;
this
.
$refs
[
"ProogingProcessRef"
].
tableData
=
data
.
processList
;
this
.
$refs
[
"WorkOrderSaleRef"
].
tableData
=
data
.
saleDirectiveList
;
this
.
$refs
[
"WorkOrderSaleRef"
].
tableData
=
data
.
saleDirectiveList
;
this
.
$refs
[
"WorkOrderSizeRef"
].
tableData
=
data
.
sizeList
;
this
.
$refs
[
"WorkOrderSizeRef"
].
tableData
=
data
.
sizeList
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment