From ccc9a1beb3767beda7e838c4091f1fbf5fa4ab02 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Tue, 2 Jan 2024 14:28:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=BA=A6=E5=B8=82=E9=85=8D=E8=BD=AC?= =?UTF-8?q?=E5=A4=87=E8=B4=A7=E6=B7=BB=E5=8A=A0loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../distribution/reservation/reservation.vue | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) 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) {