11/20 审核盘点单加loading

lh_dev_ksck
wangwei 5 months ago
parent 212a013ff9
commit e7e4592b08

@ -603,30 +603,55 @@ export default {
closeOnClickModal: false,// closeOnClickModal: false,//
distinguishCancelAndClose: true,// distinguishCancelAndClose: true,//
}).then(() => { }).then(() => {
//
const loading = _this.$loading({
lock: true,
text: '审核中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
params.status = 2; // params.status = 2; //
updateCountOrderStatus(params).then((res) => { updateCountOrderStatus(params).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {
_this.$message.success("审核通过"); _this.$message.success("审核通过");
_this.getList(); _this.getList();
_this.onRestDetail(); _this.onRestDetail();
//
loading.close();
} else { } else {
//
loading.close();
_this.$message.error(res.message); _this.$message.error(res.message);
} }
}).catch(() => { }).catch(() => {
//
loading.close();
}); });
}).catch((action) => { }).catch((action) => {
if (action === 'cancel') { if (action === 'cancel') {
// //
params.status = 0; // params.status = 0; //
const loading = _this.$loading({
lock: true,
text: '驳回中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
updateCountOrderStatus(params).then((res) => { updateCountOrderStatus(params).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {
_this.$message.warning("已驳回"); _this.$message.warning("已驳回");
_this.getList(); _this.getList();
_this.onRestDetail(); _this.onRestDetail();
//
loading.close();
} else { } else {
//
loading.close();
_this.$message.error(res.message); _this.$message.error(res.message);
} }
}).catch(() => { }).catch(() => {
//
loading.close();
}); });
} else { } else {
// //

Loading…
Cancel
Save