refactor(scheduling): rewrite terminology to match core business logic

Core story: 里程高的车换下来,里程少的车换上去。

- Summary cards: "里程高·需换下" / "里程低·需换走" / "替换建议"
- List tags: "换下" (amber) / "换走" (blue) with matching color bars
- Detail modal title: "里程高·换下此车" / "里程低·换走此车"
- Candidate section: explains WHY these vehicles are recommended
  - 换下: "以下车辆里程缺口大,换到该高里程客户处可加速达标"
  - 换走: "以下车辆里程已充足,可调给当前客户,将此车换走给高里程客户冲刺"
- Reason text: states current situation + clear action recommendation
  with specific numbers (已跑, 缺口, 日均, 完成率)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
kkfluous
2026-04-16 21:23:35 +08:00
parent 1a5a1c1514
commit 48fa3bc73f
4 changed files with 33 additions and 16 deletions

View File

@@ -183,12 +183,12 @@ export default function SchedulingModule() {
: 'bg-amber-50 border border-amber-100'
}`}
>
<div className="text-[10px] font-bold text-amber-700 mb-1"></div>
<div className="text-[10px] font-bold text-amber-700 mb-1">·</div>
<div className="text-2xl font-black text-amber-800">
{loading && !data ? '-' : summary?.qualifiedCount ?? 0}
<span className="text-xs font-normal text-amber-600 ml-1"></span>
</div>
<div className="text-[9px] text-amber-600 mt-1"> 120%</div>
<div className="text-[9px] text-amber-600 mt-1"></div>
</button>
<button
@@ -199,12 +199,12 @@ export default function SchedulingModule() {
: 'bg-blue-50 border border-blue-100'
}`}
>
<div className="text-[10px] font-bold text-blue-700 mb-1"></div>
<div className="text-[10px] font-bold text-blue-700 mb-1">·</div>
<div className="text-2xl font-black text-blue-800">
{loading && !data ? '-' : summary?.hopelessCount ?? 0}
<span className="text-xs font-normal text-blue-600 ml-1"></span>
</div>
<div className="text-[9px] text-blue-600 mt-1"> &lt; 60%</div>
<div className="text-[9px] text-blue-600 mt-1"></div>
</button>
<button
@@ -215,13 +215,13 @@ export default function SchedulingModule() {
: 'bg-emerald-50 border border-emerald-100'
}`}
>
<div className="text-[10px] font-bold text-emerald-700 mb-1"></div>
<div className="text-[10px] font-bold text-emerald-700 mb-1"></div>
<div className="text-2xl font-black text-emerald-800">
{loading && !data ? '-' : summary?.suggestionCount ?? 0}
<span className="text-xs font-normal text-emerald-600 ml-1"></span>
</div>
<div className="text-[9px] text-emerald-600 mt-1">
+{summary?.estimatedGain ?? 0}
+{summary?.estimatedGain ?? 0}
</div>
</button>
</div>