From 1a00c7c1709177dcc3fab98ce13a3d960921703e Mon Sep 17 00:00:00 2001 From: freedakgmail Date: Thu, 30 Jul 2026 10:13:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A9=E6=B6=A6=E4=B8=8E=E6=88=90?= =?UTF-8?q?=E6=9C=AC=E6=8C=87=E6=A0=87=E5=8D=A1=3F=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BB=BA=E8=AE=AE=E5=80=BC/=E8=A1=8C?= =?UTF-8?q?=E4=B8=9A=E5=9F=BA=E5=87=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/pages/DashboardPage.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/client/src/pages/DashboardPage.tsx b/client/src/pages/DashboardPage.tsx index 7a80446..4df11bc 100644 --- a/client/src/pages/DashboardPage.tsx +++ b/client/src/pages/DashboardPage.tsx @@ -192,16 +192,16 @@ export function DashboardPage() { {ex && (
- - - 10 ? 'bad' : Number(ex.actual_food_cost_rate_pct) - Number(ex.theoretical_food_cost_rate_pct) > 5 ? 'warn' : 'good'} description={`成本率 ${formatPercent(ex.actual_food_cost_rate_pct)} · 理论成本率 ${formatPercent(ex.theoretical_food_cost_rate_pct)} · 差异 ${formatPercent(Number(ex.actual_food_cost_rate_pct) - Number(ex.theoretical_food_cost_rate_pct))}`} /> - 50 ? 'bad' : Number(ex.overall_expense_rate_pct) > 40 ? 'warn' : 'good'} description={`费用率 ${formatPercent(ex.overall_expense_rate_pct)} · 人工 ${formatCurrency(ex.total_wage)} · 房租 ${formatCurrency(ex.total_rent)}`} /> + + + 10 ? 'bad' : Number(ex.actual_food_cost_rate_pct) - Number(ex.theoretical_food_cost_rate_pct) > 5 ? 'warn' : 'good'} description={`成本率 ${formatPercent(ex.actual_food_cost_rate_pct)} · 理论成本率 ${formatPercent(ex.theoretical_food_cost_rate_pct)} · 差异 ${formatPercent(Number(ex.actual_food_cost_rate_pct) - Number(ex.theoretical_food_cost_rate_pct))}。建议值:实际成本率 ≤ 32%,与理论差异 ≤ 3% 为正常`} /> + 50 ? 'bad' : Number(ex.overall_expense_rate_pct) > 40 ? 'warn' : 'good'} description={`费用率 ${formatPercent(ex.overall_expense_rate_pct)} · 人工 ${formatCurrency(ex.total_wage)} · 房租 ${formatCurrency(ex.total_rent)}。建议值:费用率 ≤ 40% 为健康,40-50% 需关注,> 50% 需整改`} />
- 30 ? 'bad' : Number(ex.overall_wage_rate_pct) > 25 ? 'warn' : 'good'} description={`占实收 ${formatPercent(ex.overall_wage_rate_pct)}`} /> - 20 ? 'bad' : Number(ex.overall_rent_rate_pct) > 15 ? 'warn' : 'good'} description={`占实收 ${formatPercent(ex.overall_rent_rate_pct)}`} /> - 8 ? 'warn' : 'good'} description={`占实收 ${formatPercent(ex.overall_utility_rate_pct)}`} /> - 4000000 ? 'warn' : 'good'} description="外卖平台佣金合计" /> + 30 ? 'bad' : Number(ex.overall_wage_rate_pct) > 25 ? 'warn' : 'good'} description={`占实收 ${formatPercent(ex.overall_wage_rate_pct)}。建议值:人工费率 ≤ 22% 为优秀,22-28% 为合理,> 30% 需优化人效`} /> + 20 ? 'bad' : Number(ex.overall_rent_rate_pct) > 15 ? 'warn' : 'good'} description={`占实收 ${formatPercent(ex.overall_rent_rate_pct)}。建议值:房租费率 ≤ 12% 为优秀,12-15% 为合理,> 18% 需考虑选址或涨租谈判`} /> + 8 ? 'warn' : 'good'} description={`占实收 ${formatPercent(ex.overall_utility_rate_pct)}。建议值:水电费率 ≤ 5% 为优秀,5-7% 为合理,> 8% 需排查节能`} /> + 4000000 ? 'warn' : 'good'} description={`外卖平台佣金合计。建议值:佣金占实收 ≤ 5% 为健康,当前占实收 ${formatPercent(Number(ex.total_commission) / Number(ex.total_received) * 100)}`} />
)}