From b2cdf352db6e6079156aeb7207c5c2916554abd0 Mon Sep 17 00:00:00 2001 From: freedakgmail Date: Tue, 11 Aug 2026 19:58:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=80=81=E6=9D=BF?= =?UTF-8?q?=E9=A9=BE=E9=A9=B6=E8=88=B1=E4=B8=8E=E6=80=BB=E9=83=A8=E9=A9=BE?= =?UTF-8?q?=E9=A9=B6=E8=88=B1=E5=AE=9E=E6=94=B6=E6=95=B0=E6=8D=AE=E6=BA=90?= =?UTF-8?q?=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BossPage核心指标行的优惠和实收从/store-expense/overview改为/overview API - 优惠: ex.total_discount → od.discount - 实收总额: ex.total_received → od.received - totalRev(风险门店占比分母)同步改为od.received 现在两个驾驶舱的营业收入/优惠/实收完全一致 --- client/src/pages/BossPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/pages/BossPage.tsx b/client/src/pages/BossPage.tsx index c3994fc..711fa48 100644 --- a/client/src/pages/BossPage.tsx +++ b/client/src/pages/BossPage.tsx @@ -146,7 +146,7 @@ export function BossPage() { return acc }, {}) const totalStores = riskRows.length - const totalRev = Number(ex?.total_received || 0) + const totalRev = Number(od?.received || 0) // P0/P1门店 const p0Stores = priorityRows.filter((s: any) => s.action_priority?.startsWith('P0')) @@ -246,8 +246,8 @@ export function BossPage() { {/* ① 核心经营指标 */}
- - 0 ? '↑' : '↓'} ${Math.abs(trendReceived)}%`} /> + + 0 ? '↑' : '↓'} ${Math.abs(trendReceived)}%`} /> 0 ? sumKey(last7, 'received') / sumKey(last7, 'bill_count') : 0), (prev7.length > 0 ? sumKey(prev7, 'received') / sumKey(prev7, 'bill_count') : 0))} description={`账单 ${formatNumber(ex?.total_bills)} 笔`} />