diff --git a/src/views/plan/order/index.vue b/src/views/plan/order/index.vue index 5b2b9a0..af4a942 100644 --- a/src/views/plan/order/index.vue +++ b/src/views/plan/order/index.vue @@ -1235,13 +1235,24 @@ export default { }, // 首-SAP同步按钮操作 handleSyncSAP() { + this.loading = true; + let _this = this; this.$modal.confirm('是否确认SAP同步操作步骤?').then(function () { return syncSAP() }).then(() => { this.getList() + this.loading = false; this.$modal.msgSuccess('同步成功') - }).catch(() => { - }) + }).catch( + function (e) { + if (e == 'cancel') { + _this.loading = false; + } else if(e == 'close') { + _this.loading = false; + + } + } + ) } }