feat(scheduling): enrich history records with customer/dept/manager + drill-in to swap plan

Each row in 调度记录 now shows 业务部门(简)/业务负责人/客户 beneath
the plate line, and is clickable to open the reusable SwapPreview
showing the full replacement plan (current mileage, 考核目标, 替换后预测).
Drill-in is only enabled when the suggestion is still in the active
scheduling view; the user can still 取消干预 from the preview.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
kkfluous
2026-04-17 09:30:07 +08:00
parent ba1e0e9f16
commit 9d1e8c4d30
2 changed files with 57 additions and 9 deletions

View File

@@ -532,6 +532,7 @@ export default function SchedulingModule() {
onClose={() => setShowHistory(false)}
onChange={loadData}
recentOnly={historyRecentOnly}
suggestions={data?.suggestions}
/>
)}