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) {