From 0187f81fa5edb3358ee71d7931e0072bb299e008 Mon Sep 17 00:00:00 2001 From: "BOOL\\25024" Date: Wed, 13 Sep 2023 09:09:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=8A=A8=E7=BB=93=E7=AE=97=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E9=87=8D=E5=A4=8D=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsowell-ui/src/views/order/order/orderDetail.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/jsowell-ui/src/views/order/order/orderDetail.vue b/jsowell-ui/src/views/order/order/orderDetail.vue index d387d1374..5070a29bf 100644 --- a/jsowell-ui/src/views/order/order/orderDetail.vue +++ b/jsowell-ui/src/views/order/order/orderDetail.vue @@ -301,6 +301,7 @@ export default { chargingDegree: null, }, tableData: [], + isRequesting: false, // 手动结算请求状态 }; }, created() { @@ -308,7 +309,7 @@ export default { }, methods: { getSummaries(param) { - console.log(param, '添加调试输出'); + console.log(param, '添加调试输出'); const { columns, data } = param; // console.log(data, 'data'); const sums = []; @@ -349,6 +350,16 @@ export default { }); }, confirmManualSettlement() { + if (this.isRequesting) { + this.$message({ + showClose: true, + message: '手动结算订单已经提交,请勿重复操作', + type: 'warning' + }); + return; // 如果正在请求中,则不再继续发送请求 + } + this.isRequesting = true; + console.log('点击了手动结算按钮'); if (this.manualSettlementParam.chargingAmount == null) { return false; }