Browse Source

新增干线提货操作Loading

dev-xx
qb 10 months ago
parent
commit
c1ab31299b
  1. 26
      src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue

26
src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue

@ -663,23 +663,29 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'success', type: 'success',
}) }).then(async () => {
.then(() => { try {
return postUpdateBillladingStatus({ this.loadingObj.pageLoading = true;
const res = await postUpdateBillladingStatus({
id: this.selectionList[0].id, id: this.selectionList[0].id,
type, type,
}); });
})
.then(() => { const { code, msg } = res.data;
if (code !== 200) return;
this.$message.success(msg);
// //
this.selectionClear(); this.selectionClear();
// //
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ } catch (error) {
type: 'success', console.log('error :>> ', error);
message: '操作成功!', } finally {
}); this.loadingObj.pageLoading = false;
}); }
});
}, },
/** 开启添加提货数据弹窗 */ /** 开启添加提货数据弹窗 */
handleAddDistrilbution() { handleAddDistrilbution() {

Loading…
Cancel
Save