fix(订单中心):首页统计问题再次优化

This commit is contained in:
2025-08-06 13:08:32 +08:00
parent c571b7b894
commit 72f949fc83
3 changed files with 45 additions and 32 deletions
@@ -212,6 +212,9 @@ const Welcome: React.FC = () => {
// 根据时间筛选状态动态显示标题
const getOrderTitle = () => {
if (hasTimeRange) {
return '区间收款数量';
}
return '总收款数量';
};
@@ -574,11 +577,11 @@ const Welcome: React.FC = () => {
value={orderStats.totalOrders || 0}
/>
<Statistic
title="总净收款数量"
value={orderStats.totalPaidOrders || 0}
title={hasTimeRange ? "区间净收款数量" : "总净收款数量"}
value={(orderStats.totalOrders || 0) - (orderStats.refundedOrders || 0)}
/>
<Statistic
title="总退款订单数"
title={hasTimeRange ? "区间退款订单数" : "总退款订单数"}
value={orderStats.refundedOrders || 0}
/>
</div>
@@ -603,7 +606,7 @@ const Welcome: React.FC = () => {
<span>收入统计</span>
</div>
<Statistic
title="订单总金额 (完成+退款)"
title="订单总金额 (有效订单)"
value={(orderStats.totalAmount || 0) / 100}
precision={2}
prefix="¥"
@@ -622,6 +625,7 @@ const Welcome: React.FC = () => {
prefix="¥"
/>
</div>
</Card>
</Col>