From 928ea5954043804f745ae55079310c6526a59899 Mon Sep 17 00:00:00 2001 From: "JinLu.Yin" <411641505@qq.com> Date: Sun, 19 Jun 2022 16:53:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E6=A3=80=E8=AE=A1=E5=88=92=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E5=81=9C=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/dv/checkplan/index.vue | 33 ++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/src/views/mes/dv/checkplan/index.vue b/src/views/mes/dv/checkplan/index.vue index addfbf1..78e2961 100644 --- a/src/views/mes/dv/checkplan/index.vue +++ b/src/views/mes/dv/checkplan/index.vue @@ -130,6 +130,14 @@ v-if="scope.row.status =='PREPARE'" v-hasPermi="['mes:dv:checkplan:remove']" >删除 + 停用 @@ -237,8 +245,9 @@ @@ -413,6 +422,26 @@ export default { } }); }, + handleFinish(){ + if(this.form.planId != null && this.form.status =='PREPARE'){ + this.form.status='FINISHED'; + updateCheckplan(this.form).then(response => { + this.$modal.msgSuccess("已启用"); + this.open = false; + this.getList(); + }); + } + }, + handleDeFinish(){ + if(this.form.planId != null && this.form.status =='FINISHED'){ + this.form.status='PREPARE'; + updateCheckplan(this.form).then(response => { + this.$modal.msgSuccess("已停用"); + this.open = false; + this.getList(); + }); + } + }, /** 删除按钮操作 */ handleDelete(row) { const planIds = row.planId || this.ids;