|
|
@ -1235,13 +1235,24 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 首-SAP同步按钮操作
|
|
|
|
// 首-SAP同步按钮操作
|
|
|
|
handleSyncSAP() {
|
|
|
|
handleSyncSAP() {
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
let _this = this;
|
|
|
|
this.$modal.confirm('是否确认SAP同步操作步骤?').then(function () {
|
|
|
|
this.$modal.confirm('是否确认SAP同步操作步骤?').then(function () {
|
|
|
|
return syncSAP()
|
|
|
|
return syncSAP()
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
this.getList()
|
|
|
|
this.getList()
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
this.$modal.msgSuccess('同步成功')
|
|
|
|
this.$modal.msgSuccess('同步成功')
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(
|
|
|
|
})
|
|
|
|
function (e) {
|
|
|
|
|
|
|
|
if (e == 'cancel') {
|
|
|
|
|
|
|
|
_this.loading = false;
|
|
|
|
|
|
|
|
} else if(e == 'close') {
|
|
|
|
|
|
|
|
_this.loading = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|