From c3de4ebaf52b3605591334897ca94c75db6e63af Mon Sep 17 00:00:00 2001 From: kkfluous Date: Thu, 16 Apr 2026 23:00:22 +0800 Subject: [PATCH] refactor(scheduling): redesign current vehicle card to match candidate card style --- src/modules/scheduling/SuggestionDetail.tsx | 68 +++++++++++---------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/src/modules/scheduling/SuggestionDetail.tsx b/src/modules/scheduling/SuggestionDetail.tsx index 96f6ff3..91c6144 100644 --- a/src/modules/scheduling/SuggestionDetail.tsx +++ b/src/modules/scheduling/SuggestionDetail.tsx @@ -85,40 +85,42 @@ export default function SuggestionDetail({ suggestion: s, onClose, onNotifySucce {/* Body */}
- {/* Current Vehicle */} -
-
-
- {v.plateNumber} - {v.vehicleType} + {/* Current Vehicle — same format as candidate cards */} +
+
+ {/* Header — same style as candidate header */} +
+
+ {v.plateNumber} + {v.region} + {v.vehicleType} + {v.targetName} + 剩余{v.daysLeft}天 +
+ = 1 ? 'text-emerald-600' : 'text-rose-500'}`}> + {fmtRate(v.completionRate)} +
- = 1 ? 'text-emerald-600' : v.completionRate >= 0.5 ? 'text-amber-600' : 'text-rose-600'}`}> - {fmtRate(v.completionRate)} - -
- -
- {v.targetName} - {v.region} - | - 客户 {v.customer || '-'} - 日均 {Math.round(v.customerAvgDaily)} km -
- - {/* Metrics row */} -
-
-
-
当前
-
{fmtKm(v.currentYearMileage)}
-
-
-
考核期结束预估
-
= 1 ? 'text-emerald-600' : 'text-rose-500'}`}>{fmtKm(v.currentYearMileage + v.customerAvgDaily * v.daysLeft)}
-
-
-
考核
-
{fmtKm(v.yearTarget)}
+ {/* Customer info */} +
+ 客户 {v.customer || '-'} + 日均 {Math.round(v.customerAvgDaily)} km +
+ {/* Metrics */} +
+
+
+
当前
+
{fmtKm(v.currentYearMileage)}
+
+
+
考核期结束预估
+
= 1 ? 'text-emerald-600' : 'text-rose-500'}`}>{fmtKm(v.currentYearMileage + v.customerAvgDaily * v.daysLeft)}
+
+
+
考核
+
{fmtKm(v.yearTarget)}
+