From 35cfc10e816ed878f93acf8e854bb07c13e9c8b4 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Wed, 19 Mar 2025 11:33:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=8A=B6=E6=80=81=E6=8E=A5=E5=8F=A3,?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1=E5=85=85?= =?UTF-8?q?=E5=80=BC=E7=BB=9F=E8=AE=A1=E5=A2=9E=E5=8A=A0=E5=85=85=E5=80=BC?= =?UTF-8?q?=E9=80=80=E6=AC=BE=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/order/pay.ts | 8 +++ src/views/data/index.vue | 20 +++++--- src/views/order/index/index.vue | 51 ++++++++++++++----- .../tool/Instead/components/scan-pay.vue | 4 +- 4 files changed, 62 insertions(+), 21 deletions(-) diff --git a/src/api/order/pay.ts b/src/api/order/pay.ts index 81cbbed..0f3faa5 100644 --- a/src/api/order/pay.ts +++ b/src/api/order/pay.ts @@ -59,6 +59,14 @@ const Api = { data }); }, + //查询订单状态 + queryOrderStatus(params: any) { + return request({ + url: `${baseURL}/queryOrderStatus`, + method: "get", + params + }); + }, }; diff --git a/src/views/data/index.vue b/src/views/data/index.vue index 824242a..5240352 100644 --- a/src/views/data/index.vue +++ b/src/views/data/index.vue @@ -143,7 +143,8 @@ :style="{ width: `${ trade.saleAmount - ? (trade.saleAmount / (trade.saleAmount * 1 + trade.refundAmount)) * 100 + ? (trade.saleAmount / (trade.saleAmount * 1 + trade.refundAmount * 1)) * + 100 : 0 }%`, }" @@ -153,7 +154,8 @@ :style="{ width: `${ trade.refundAmount - ? (trade.refundAmount / (trade.saleAmount * 1 + trade.refundAmount)) * 100 + ? (trade.refundAmount / (trade.saleAmount * 1 + trade.refundAmount * 1)) * + 100 : 0 }%`, }" @@ -178,7 +180,9 @@ :style="{ width: `${ trade.rechargeAmount - ? (trade.rechargeAmount / trade.memberPayAmount) * 100 + ? (trade.rechargeAmount / + (trade.memberPayAmount + trade.rechargeRefundAmount * 1)) * + 100 : 0 }%`, }" @@ -187,8 +191,10 @@ class="gropress r" :style="{ width: `${ - trade.rechargeAmount - ? (trade.rechargeAmount / trade.memberPayAmount) * 100 + trade.rechargeRefundAmount + ? (trade.rechargeRefundAmount / + (trade.memberPayAmount + trade.rechargeRefundAmount * 1)) * + 100 : 0 }%`, }" @@ -198,7 +204,9 @@
收:{{ formatDecimal(trade.rechargeAmount || 0) }} - 退:{{ formatDecimal(0) }} + + 退:{{ formatDecimal(trade.rechargeRefundAmount || 0) }} +
diff --git a/src/views/order/index/index.vue b/src/views/order/index/index.vue index 13dc1e8..de2ba88 100644 --- a/src/views/order/index/index.vue +++ b/src/views/order/index/index.vue @@ -2,12 +2,24 @@
- + - + @@ -52,13 +64,21 @@