From a954fb90f6232a0e44f02963ab06b0405ef4e8c3 Mon Sep 17 00:00:00 2001 From: kkfluous Date: Fri, 17 Apr 2026 11:04:08 +0800 Subject: [PATCH] =?UTF-8?q?refactor(scheduling):=20=E8=80=83=E6=A0=B8?= =?UTF-8?q?=E5=89=A9=E4=BD=99=20=E2=86=92=20=E5=B9=B4=E5=BA=A6=E8=80=83?= =?UTF-8?q?=E6=A0=B8=E5=89=A9=E4=BD=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- src/modules/scheduling/SwapPreview.tsx | 1 + src/server/routes/scheduling/algorithm.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/scheduling/SwapPreview.tsx b/src/modules/scheduling/SwapPreview.tsx index 470d4cb..5871e95 100644 --- a/src/modules/scheduling/SwapPreview.tsx +++ b/src/modules/scheduling/SwapPreview.tsx @@ -78,6 +78,7 @@ export default function SwapPreview({ suggestion: s, candidate: c, onClose, onSu
{fmtKm(v.currentYearMileage)}km
考核 {fmtKm(v.yearTarget)} km
+
年度考核剩余 {v.daysLeft}
diff --git a/src/server/routes/scheduling/algorithm.ts b/src/server/routes/scheduling/algorithm.ts index a08831f..b4a6c1e 100644 --- a/src/server/routes/scheduling/algorithm.ts +++ b/src/server/routes/scheduling/algorithm.ts @@ -140,7 +140,7 @@ export function generateSuggestions( const reason: ReasonBlock = { lines: [ { label: '客户日均', value: `${Math.round(vehicle.customerAvgDaily)} km` }, - { label: '考核剩余', value: `${vehicle.daysLeft} 天` }, + { label: '年度考核剩余', value: `${vehicle.daysLeft} 天` }, { label: '日均需', value: `${fmtKmSimple(dailyReq)} km` }, ], conclusion: '预估无法达标,需替换', @@ -215,7 +215,7 @@ export function generateSuggestions( lines: [ { label: '客户日均', value: `${Math.round(vehicle.customerAvgDaily)} km` }, { label: '年度完成率', value: `${yearRate}%` }, - { label: '考核剩余', value: `${vehicle.daysLeft} 天` }, + { label: '年度考核剩余', value: `${vehicle.daysLeft} 天` }, { label: '可为新车贡献', value: `约 ${fmtKmSimple(Math.round(canAddKm))} km` }, ], conclusion: '已达标,建议换上未达标车辆',