From 0509bb643148be44d3f9850c548727e62d5e5e97 Mon Sep 17 00:00:00 2001 From: freedakgmail Date: Thu, 30 Jul 2026 10:14:21 +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=E8=AE=A1=E7=AE=97=E5=85=AC=E5=BC=8F?= 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 4df11bc..b52727a 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))}。建议值:实际成本率 ≤ 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% 需整改`} /> + + + 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))}。公式:成本率 = 食材成本 ÷ 实收 × 100%。建议值:实际成本率 ≤ 32%,与理论差异 ≤ 3% 为正常`} /> + 50 ? 'bad' : Number(ex.overall_expense_rate_pct) > 40 ? 'warn' : 'good'} description={`费用率 ${formatPercent(ex.overall_expense_rate_pct)} · 公式:费用率 = 经营费用 ÷ 实收 × 100%。人工 ${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)}。建议值:人工费率 ≤ 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)}`} /> + 30 ? 'bad' : Number(ex.overall_wage_rate_pct) > 25 ? 'warn' : 'good'} description={`占实收 ${formatPercent(ex.overall_wage_rate_pct)} · 公式:人工费率 = 人工费用 ÷ 实收 × 100%。建议值:≤ 22% 为优秀,22-28% 为合理,> 30% 需优化人效`} /> + 20 ? 'bad' : Number(ex.overall_rent_rate_pct) > 15 ? 'warn' : 'good'} description={`占实收 ${formatPercent(ex.overall_rent_rate_pct)} · 公式:房租费率 = 房租费用 ÷ 实收 × 100%。建议值:≤ 12% 为优秀,12-15% 为合理,> 18% 需考虑选址或涨租谈判`} /> + 8 ? 'warn' : 'good'} description={`占实收 ${formatPercent(ex.overall_utility_rate_pct)} · 公式:水电费率 = 水电费用 ÷ 实收 × 100%。建议值:≤ 5% 为优秀,5-7% 为合理,> 8% 需排查节能`} /> + 4000000 ? 'warn' : 'good'} description={`外卖平台佣金合计 · 公式:佣金费率 = 佣金 ÷ 实收 × 100%。建议值:≤ 5% 为健康,当前占实收 ${formatPercent(Number(ex.total_commission) / Number(ex.total_received) * 100)}`} />
)}