diff --git a/src/views/distribution/reservation/reservation.vue b/src/views/distribution/reservation/reservation.vue index b4a42da0..edd4ad46 100644 --- a/src/views/distribution/reservation/reservation.vue +++ b/src/views/distribution/reservation/reservation.vue @@ -270,7 +270,7 @@ :drawerShow="drawerShow" :columnList="columnList" > - + @@ -302,7 +302,9 @@ 取消 - 确定 + + 确定 + @@ -847,6 +849,10 @@ export default { orderStatus: 'all', unconfirmedList: null, confirmedList: null, + /** loading */ + loadingObj: { + submitLoading: false, + }, }; }, watch: { @@ -1393,6 +1399,7 @@ export default { }, //确定指派 callFordelivery() { + this.loadingObj.submitLoading = true; this.info.ids = this.ids; this.goodsAreaIdData.forEach(item => { console.log(item); @@ -1400,14 +1407,18 @@ export default { this.info.goodsAreaName = item.dictValue; } }); - confirms(this.info).then(res => { - this.$message({ - type: 'success', - message: '操作成功!', + confirms(this.info) + .then(res => { + this.$message({ + type: 'success', + message: '操作成功!', + }); + this.onLoad(this.page); + this.dialogFormCustomer = false; + }) + .finally(() => { + this.loadingObj.submitLoading = false; }); - this.onLoad(this.page); - this.dialogFormCustomer = false; - }); }, handleDelete() { if (this.selectionList.length === 0) {