From 2ca99f1b7d8d2a0ac9cd0a07b9f5e58147672ffe Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Sun, 24 Sep 2023 20:41:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E5=BC=B9=E7=AA=97=E7=9A=84?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=8C=89=E9=92=AEbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plan/workorder/index.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/views/plan/workorder/index.vue b/src/views/plan/workorder/index.vue index 9b8663d..7d5154a 100644 --- a/src/views/plan/workorder/index.vue +++ b/src/views/plan/workorder/index.vue @@ -747,6 +747,7 @@ export default { } } this.loading = true; + let _this = this; const workorderIds = row.workorderCode || this.codes; this.$modal.confirm('是否确认下发生产工单编号为"' + workorderIds + '"的数据项?').then(function () { @@ -755,8 +756,16 @@ export default { this.loading = false; this.getList(); this.$modal.msgSuccess("下发成功"); - }).catch(() => { - }); + }).catch( + function (e) { + if (e == 'cancel') { + _this.loading = false; + } else if(e == 'close') { + _this.loading = false; + + } + } + ); }, // 变更-工单变更按钮操作 handleUpdate(row) {