From 8664317852025233f255f98380a6dbaa61caf0ce Mon Sep 17 00:00:00 2001 From: kkfluous Date: Thu, 16 Apr 2026 23:02:03 +0800 Subject: [PATCH] feat(scheduling): show department and manager in list items and detail card --- src/modules/scheduling/SuggestionDetail.tsx | 7 +++++-- src/modules/scheduling/SuggestionList.tsx | 6 ++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/modules/scheduling/SuggestionDetail.tsx b/src/modules/scheduling/SuggestionDetail.tsx index 91c6144..f4b544b 100644 --- a/src/modules/scheduling/SuggestionDetail.tsx +++ b/src/modules/scheduling/SuggestionDetail.tsx @@ -101,8 +101,11 @@ export default function SuggestionDetail({ suggestion: s, onClose, onNotifySucce {fmtRate(v.completionRate)} - {/* Customer info */} -
+ {/* Customer + dept/manager info */} +
+ {v.department && {v.department}} + {v.manager && {v.manager}} + {(v.department || v.manager) && |} 客户 {v.customer || '-'} 日均 {Math.round(v.customerAvgDaily)} km
diff --git a/src/modules/scheduling/SuggestionList.tsx b/src/modules/scheduling/SuggestionList.tsx index 95a384b..620e943 100644 --- a/src/modules/scheduling/SuggestionList.tsx +++ b/src/modules/scheduling/SuggestionList.tsx @@ -56,8 +56,10 @@ export default function SuggestionList({ suggestions, onSelect }: Props) { {v.region}
- {v.customer || '-'} - 日均 {Math.round(v.customerAvgDaily)} km + {v.department && {v.department}} + {v.manager && {v.manager}} + {v.customer || '-'} + 日均 {Math.round(v.customerAvgDaily)} 完成 = 1 ? 'text-emerald-600' : v.completionRate >= 0.5 ? 'text-amber-600' : 'text-rose-500'}`}>{fmtRate(v.completionRate)}