From 563ccaf102abed4c823a8890d098510cb53e388e Mon Sep 17 00:00:00 2001 From: liyongde <1419499670@qq.com> Date: Thu, 18 May 2023 16:15:39 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E6=B7=BB=E5=8A=A0=E5=BC=BA=E5=88=B6?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/qd/src/views/wms/pdm/produceTask/index.vue | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/wms/qd/src/views/wms/pdm/produceTask/index.vue b/wms/qd/src/views/wms/pdm/produceTask/index.vue index 7ce2ef8..44ec9ab 100644 --- a/wms/qd/src/views/wms/pdm/produceTask/index.vue +++ b/wms/qd/src/views/wms/pdm/produceTask/index.vue @@ -458,11 +458,19 @@ export default { } }, mandFinish() { - crudProducetask.mandFinish({ producetask_id: this.currentRow.producetask_id }).then(res => { - this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS) - this.crud.toQuery() - this.copy_add = true - this.mind_finish = true + this.$confirm('是否强制完成此生产任务?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + crudProducetask.mandFinish({ producetask_id: this.currentRow.producetask_id }).then(res => { + this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS) + this.crud.toQuery() + this.copy_add = true + this.mind_finish = true + }) + }).catch(() => { + this.crud.notify('已取消', CRUD.NOTIFICATION_TYPE.INFO) }) }, is_sue() {