diff --git a/src/views/plan/plan/index.vue b/src/views/plan/plan/index.vue index d24b596c..0066858d 100644 --- a/src/views/plan/plan/index.vue +++ b/src/views/plan/plan/index.vue @@ -793,6 +793,7 @@ export default { this.workOrderList = [] this.selectProductList = null this.newWorkOrderList = [] + this.bmsList = [] this.bmapId = null // 初始化数据 this.form.planTime = new Date() @@ -827,6 +828,14 @@ export default { }, /** 修改-提交按钮 */ updateForm() { + // 必须全部修改 + if (this.wetMaterialPlanList.length>0){ + this.$message({ + message: '计划要全部重新分配完!', + type: 'warning' + }) + return + } // 校验数据判断newList是否为空 if (this.newWorkOrderList == [] || this.newWorkOrderList.length == 0 || this.newWorkOrderList == null) { this.$message({ @@ -836,6 +845,7 @@ export default { return } + // 更新表数据 updatePlanDetail(this.newWorkOrderList).then(response => { if (response.code === 200) { this.$message({ diff --git a/src/views/plan/workorder/index.vue b/src/views/plan/workorder/index.vue index 6eec0daa..db6ac43a 100644 --- a/src/views/plan/workorder/index.vue +++ b/src/views/plan/workorder/index.vue @@ -67,14 +67,16 @@ end-placeholder="结束日期"> - - - + + + + + 搜索 重置 @@ -162,7 +164,11 @@ {{ parseTime(scope.row.productDate, '{y}-{m}-{d}') }} - + + +