diff --git a/src/views/mes/pro/order/index.vue b/src/views/mes/pro/order/index.vue index f44400b..f8f1094 100644 --- a/src/views/mes/pro/order/index.vue +++ b/src/views/mes/pro/order/index.vue @@ -284,6 +284,15 @@ + + + + + + + + @@ -357,6 +366,8 @@ }, data() { return { + // 工艺list + routes: [], // 表单参数 form: {}, // 新增模块 @@ -432,6 +443,7 @@ splitNum: null, productDate: null, shiftId: null, + routeCode: null, formFields: [], }, // 表单校验 @@ -531,7 +543,14 @@ /** 拆分提交按钮 */ batchBtn() { // 判断数据不能为空 - if (this.splitForm.splitNum == null || this.splitForm.shiftId == null || this.splitForm.prodLineCode == null){ + if (this.splitForm.splitNum == null || this.splitForm.shiftId == null || this.splitForm.prodLineCode == null || this.splitForm.routeCode == null){ + this.$message({ + message:'数据不能为空!', + type:'warning' + }) + return; + } + if (this.splitForm.routeCode == null){ this.$message({ message:'数据不能为空!', type:'warning' @@ -569,6 +588,7 @@ shiftId : this.splitForm.shiftId, splitNum : this.splitForm.splitNum, product : this.productData[0], + routeCode : this.splitForm.routeCode } let check = 1; @@ -808,6 +828,7 @@ getprodLineShift(row.orderType).then(response => { this.proline = response.data.lines; this.workShift = response.data.shifts; + this.routes = response.data.routes; }); //获取换算值 if (row.children !== undefined){