|
@@ -11,7 +11,7 @@
|
|
|
<el-form :model="requestData" label-width="0" :show-message="false">
|
|
<el-form :model="requestData" label-width="0" :show-message="false">
|
|
|
<el-descriptions title="" :column="2" border>
|
|
<el-descriptions title="" :column="2" border>
|
|
|
<el-descriptions-item label="计划编号">
|
|
<el-descriptions-item label="计划编号">
|
|
|
- {{ formData.joinPlanCode }}</el-descriptions-item
|
|
|
|
|
|
|
+ {{ formData.code }}</el-descriptions-item
|
|
|
>
|
|
>
|
|
|
|
|
|
|
|
<el-descriptions-item label="产品编码">{{
|
|
<el-descriptions-item label="产品编码">{{
|
|
@@ -48,7 +48,7 @@
|
|
|
<ele-pro-table
|
|
<ele-pro-table
|
|
|
ref="table"
|
|
ref="table"
|
|
|
:needPage="false"
|
|
:needPage="false"
|
|
|
- :columns="columns"
|
|
|
|
|
|
|
+ :columns="formData.splitBatch == 1 ? columns3 : columns"
|
|
|
:datasource="form.surplusUnpack"
|
|
:datasource="form.surplusUnpack"
|
|
|
>
|
|
>
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
@@ -91,6 +91,10 @@
|
|
|
<el-form-item v-else> 工单已全部拆完 </el-form-item>
|
|
<el-form-item v-else> 工单已全部拆完 </el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
+ <template v-slot:splitResidue="scope">
|
|
|
|
|
+ {{ formData.splitResidue }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
<template v-slot:reqMoldTime="scope">
|
|
<template v-slot:reqMoldTime="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
v-if="requiredFormingNum != 0"
|
|
v-if="requiredFormingNum != 0"
|
|
@@ -195,6 +199,7 @@
|
|
|
deviceId: ''
|
|
deviceId: ''
|
|
|
},
|
|
},
|
|
|
requiredFormingNum: 0,
|
|
requiredFormingNum: 0,
|
|
|
|
|
+ showNum: 0,
|
|
|
|
|
|
|
|
form: {
|
|
form: {
|
|
|
surplusUnpack: [],
|
|
surplusUnpack: [],
|
|
@@ -274,14 +279,38 @@
|
|
|
slot: 'action',
|
|
slot: 'action',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
}
|
|
}
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+
|
|
|
|
|
+ columns3: []
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
open(row) {
|
|
open(row) {
|
|
|
this.visible = true;
|
|
this.visible = true;
|
|
|
this.formData = deepClone(row);
|
|
this.formData = deepClone(row);
|
|
|
- this.requiredFormingNum = this.formData.requiredFormingNum;
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if (this.formData.splitBatch == 1) {
|
|
|
|
|
+
|
|
|
|
|
+ this.columns3 = deepClone(this.columns);
|
|
|
|
|
+
|
|
|
|
|
+ this.columns3.splice(3, 0, {
|
|
|
|
|
+ prop: 'splitResidue',
|
|
|
|
|
+ label: '剩余数量',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ slot: 'splitResidue',
|
|
|
|
|
+ minWidth: 100
|
|
|
|
|
+ });
|
|
|
|
|
+ this.requiredFormingNum = this.formData.splitResidue;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.requiredFormingNum = this.formData.requiredFormingNum;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ this.showNum = this.formData.requiredFormingNum;
|
|
|
|
|
|
|
|
this.form.surplusUnpack = [];
|
|
this.form.surplusUnpack = [];
|
|
|
this.form.unpackList = [];
|
|
this.form.unpackList = [];
|
|
@@ -374,7 +403,7 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const res = await splitWork(params);
|
|
const res = await splitWork(params);
|
|
|
- console.log(res, 55);
|
|
|
|
|
|
|
+
|
|
|
if (res) {
|
|
if (res) {
|
|
|
this.$message.success('拆分成功!');
|
|
this.$message.success('拆分成功!');
|
|
|
this.$emit('success');
|
|
this.$emit('success');
|