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;