Browse Source

完善采购入库单查询--重推数据时加载时间过长

master
yunuo970428 2 years ago
parent
commit
873e5bf432
  1. 11
      anrui-scm/anrui-scm-ui/src/views/purchasereceipt/purchasereceipt.vue

11
anrui-scm/anrui-scm-ui/src/views/purchasereceipt/purchasereceipt.vue

@ -347,11 +347,22 @@ export default {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行重推操作' }) this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行重推操作' })
return return
} else { } 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) => { req.ctcgykd({ cgrkdSid: this.sids[0] }).then((resp) => {
if (resp.success) { if (resp.success) {
loading.close()
this.$message({ showClose: true, type: 'success', message: '推送成功' }) this.$message({ showClose: true, type: 'success', message: '推送成功' })
this.getList() this.getList()
} else {
loading.close()
} }
}).catch(() => {
loading.close()
}) })
} }
}, },

Loading…
Cancel
Save