Commit 5e9e7d51 authored by 沈翠玲's avatar 沈翠玲

生产工单新增修改

parent 10f80935
...@@ -64,9 +64,9 @@ ...@@ -64,9 +64,9 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :lg="6" :md="8" :sm="12" :xs="12"> <el-col :lg="6" :md="8" :sm="12" :xs="12">
<el-form-item label="生产版本" prop="group"> <el-form-item label="生产版本" prop="productionSolutionCode">
<el-input <el-input
v-model="form.group" v-model="form.productionSolutionCode"
readonly readonly
:disabled="mode == 'make'" :disabled="mode == 'make'"
placeholder="请选择工艺路线" placeholder="请选择工艺路线"
...@@ -387,7 +387,6 @@ export default { ...@@ -387,7 +387,6 @@ export default {
packNum: null, packNum: null,
productionSolutionId: null, productionSolutionId: null,
productionSolutionCode: null, productionSolutionCode: null,
group: null,
productionSolutionName: null, productionSolutionName: null,
}, },
// 表单校验 // 表单校验
...@@ -580,7 +579,6 @@ export default { ...@@ -580,7 +579,6 @@ export default {
.then(({ data }) => { .then(({ data }) => {
Object.assign(this.form, data); Object.assign(this.form, data);
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
...@@ -639,11 +637,11 @@ export default { ...@@ -639,11 +637,11 @@ export default {
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.productionSolutionCode
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;
this.form.productName = row.itemName; this.form.productName = row.itemName;
this.form.productId = row.itemId;
this.form.productionSolutionName = row.productionSolutionName; this.form.productionSolutionName = row.productionSolutionName;
const params = { const params = {
pageNum: 1, pageNum: 1,
...@@ -668,7 +666,6 @@ export default { ...@@ -668,7 +666,6 @@ export default {
saleList, saleList,
sizeList, sizeList,
}; };
delete params.group
this.$refs.form.validate( valid => { this.$refs.form.validate( valid => {
if (valid) { if (valid) {
this.loading = true; this.loading = true;
...@@ -760,7 +757,6 @@ export default { ...@@ -760,7 +757,6 @@ export default {
packType: null, packType: null,
packUnitOfMeasure: null, packUnitOfMeasure: null,
lossIndividuallyWrap: null, lossIndividuallyWrap: null,
group: null,
packNum: null, packNum: null,
}; };
this.$refs["ProogingBomRef"].resetState(); this.$refs["ProogingBomRef"].resetState();
......
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