Commit eec96004 authored by 沈翠玲's avatar 沈翠玲

修改生产工单

parent 5f7ec953
...@@ -402,6 +402,16 @@ ...@@ -402,6 +402,16 @@
prop="productName" prop="productName"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column
label="生产版本"
width="200"
align="center"
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
{{(scope.row.groupKey ? scope.row.groupKey: '') + (scope.row.groupCounter ? scope.row.groupCounter: '')}}
</template>
</el-table-column>
<el-table-column <el-table-column
label="规格型号" label="规格型号"
align="center" align="center"
...@@ -1103,13 +1113,13 @@ export default { ...@@ -1103,13 +1113,13 @@ export default {
}); });
batchAddCombination(params).then(response => { batchAddCombination(params).then(response => {
if (response && response.length > 0) { // if (response && response.length > 0) {
this.combOpen = true this.combOpen = true
this.combinationCodes = response this.combinationCodes = response
this.$modal.msgSuccess("新增组合单成功"); this.$modal.msgSuccess("新增组合单成功");
} else { // } else {
this.$modal.msgError("新增组合单失败,组合规则不同,不允许组合!"); // this.$modal.msgError("新增组合单失败,组合规则不同,不允许组合!");
} // }
this.getList(); this.getList();
}); });
} }
......
...@@ -459,6 +459,9 @@ export default { ...@@ -459,6 +459,9 @@ export default {
}, },
}, },
activated() { activated() {
// if(!this.$route.query.workorderId) {
// this.resetForm()
// }
if (this.$route.query && this.$route.query.workorderId && this.workorderId !== this.$route.query.workorderId) { if (this.$route.query && this.$route.query.workorderId && this.workorderId !== this.$route.query.workorderId) {
this.resetForm() this.resetForm()
this.workorderId = this.$route.query.workorderId this.workorderId = this.$route.query.workorderId
...@@ -594,7 +597,7 @@ export default { ...@@ -594,7 +597,7 @@ export default {
.then(({ data }) => { .then(({ data }) => {
Object.assign(this.form, data); Object.assign(this.form, data);
this.form.group = `${this.form.groupCounter ? this.form.groupCounter: ''}-${this.form.groupKey ? this.form.groupKey: ''}` this.form.group = `${this.form.groupKey ? this.form.groupKey: ''}${this.form.groupCounter ? this.form.groupCounter: ''}`
this.currentData = {} this.currentData = {}
if (this.mode == 'make') { if (this.mode == 'make') {
this.currentData = data this.currentData = data
...@@ -647,10 +650,11 @@ export default { ...@@ -647,10 +650,11 @@ export default {
//物料选择弹出框 //物料选择弹出框
onRoutesProcessSelect(row) { onRoutesProcessSelect(row) {
console.log('row44', row)
if (row != undefined && row != null) { if (row != undefined && row != null) {
this.form.productionSolutionId = row.productionSolutionId; this.form.productionSolutionId = row.productionSolutionId;
this.form.productionSolutionCode = row.productionSolutionCode; this.form.productionSolutionCode = row.productionSolutionCode;
this.form.group = `${row.groupCounter ? row.groupCounter: ''}-${row.groupKey ? row.groupKey: ''}` this.form.group = `${row.groupKey ? row.groupKey: ''}${row.groupCounter ? row.groupCounter: ''}`
this.form.productCode = row.itemCode; this.form.productCode = row.itemCode;
this.form.groupCounter = row.groupCounter; this.form.groupCounter = row.groupCounter;
this.form.groupKey = row.groupKey; this.form.groupKey = row.groupKey;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment