diff --git a/anrui-scm/anrui-scm-ui/src/views/purchasereceipt/purchasereceipt.vue b/anrui-scm/anrui-scm-ui/src/views/purchasereceipt/purchasereceipt.vue index 3591c55542..8a6ffccb11 100644 --- a/anrui-scm/anrui-scm-ui/src/views/purchasereceipt/purchasereceipt.vue +++ b/anrui-scm/anrui-scm-ui/src/views/purchasereceipt/purchasereceipt.vue @@ -347,11 +347,22 @@ export default { this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行重推操作' }) return } else { + const loading = this.$loading({ + lock: true, + text: '数据推送中', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }) req.ctcgykd({ cgrkdSid: this.sids[0] }).then((resp) => { if (resp.success) { + loading.close() this.$message({ showClose: true, type: 'success', message: '推送成功' }) this.getList() + } else { + loading.close() } + }).catch(() => { + loading.close() }) } },