diff --git a/src/views/plan/workorder/index.vue b/src/views/plan/workorder/index.vue index d6d52d6..edd0e50 100644 --- a/src/views/plan/workorder/index.vue +++ b/src/views/plan/workorder/index.vue @@ -427,7 +427,7 @@ export default { attr4: null, prodType: null, factoryCode: null, - isEnd: null + endFlag: null }, // 表单参数 form: {}, @@ -589,7 +589,7 @@ export default { /** 查询生产工单列表 */ getList() { this.loading = true; - this.queryParams.isEnd = '1';//只查子单 + this.queryParams.endFlag = '1';//只查子单 if(this.queryParams.productDateArray!=null){ this.queryParams.productDateStart = moment(this.queryParams.productDateArray[0]).format('YYYY-MM-DD'); this.queryParams.productDateEnd = moment(this.queryParams.productDateArray[1]).format('YYYY-MM-DD'); @@ -639,7 +639,7 @@ export default { updateTime: null, prodType: null, factoryCode: null, - isEnd: null + endFlag: null }; this.resetForm("form"); }, @@ -673,6 +673,14 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { + // 除了未派发都不允许修改 + if (this.selectWork.status == "w1"){ + this.$message({ + message:'工单已派发!不可修改!', + type:'warning' + }) + return; + } // 校验是否可以修改 checkWorkOrder(this.selectWork.workorderId).then(response => { if (response.code == 500){