From d2e936d89801e208f5154d302bb95a474307bca7 Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Fri, 4 Aug 2023 11:57:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95=E7=AE=A1=E7=90=86(=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D)=E3=80=81?= =?UTF-8?q?=E6=B9=BF=E6=96=99=E8=AE=A1=E5=88=92(=E6=B7=B7=E6=96=99BUG?= =?UTF-8?q?=E8=A7=A3=E5=86=B3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plan/plan/index.vue | 10 +++++++ src/views/plan/workorder/index.vue | 42 ++++++++++++++++++++---------- 2 files changed, 38 insertions(+), 14 deletions(-) diff --git a/src/views/plan/plan/index.vue b/src/views/plan/plan/index.vue index d24b596..0066858 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 6eec0da..db6ac43 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}') }} - + + +