fix: 修改获取订单状态接口,修改数据统计充值统计增加充值退款金额

This commit is contained in:
2025-03-19 11:33:34 +08:00
parent 4a4a9b7ed6
commit 35cfc10e81
4 changed files with 62 additions and 21 deletions

View File

@@ -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 @@
<el-icon class="icon el-icon-caret-right" />
<div class="info">
<span class="l_t">{{ formatDecimal(trade.rechargeAmount || 0) }}</span>
<span class="l_r">退{{ formatDecimal(0) }}</span>
<span class="l_r">
退{{ formatDecimal(trade.rechargeRefundAmount || 0) }}
</span>
</div>
</div>
</div>