From df1ab64c97fa0f3cac8c44a50bdfe9c186f1500d Mon Sep 17 00:00:00 2001 From: kkfluous Date: Fri, 27 Mar 2026 19:36:41 +0800 Subject: [PATCH] fix: match prototype UI 1:1 for dept/region/customer sections Co-Authored-By: Claude Opus 4.6 (1M context) --- src/App.tsx | 58 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 36 insertions(+), 22 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 2615c1c..752019a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -861,7 +861,7 @@ export default function App() { {/* Department Operations Statistics */} -
+
@@ -875,7 +875,7 @@ export default function App() {
{/* Overall Total Summary (Compact) */}
-
+
总资产 {deptData.reduce((s, d) => s + d.totalAssets, 0)} @@ -892,6 +892,10 @@ export default function App() { {deptData.reduce((acc, d) => acc + d.idleCount, 0)}
+
+ 平均出勤 + +
@@ -939,16 +943,17 @@ export default function App() { {deptViewMode === 'department' ? '部门名称' : '业务员'} {deptViewMode === 'manager' && 所属部门} + {deptViewMode === 'department' ? '出勤率' : '合计资产'} {deptViewMode === 'department' && ( <> 资产总数 + 日均里程 运营中 闲置中 )} {deptViewMode === 'manager' && ( <> - 合计资产 4.5T 冷链 18T @@ -975,9 +980,11 @@ export default function App() { {dept.department} + {dept.totalAssets} +
{dept.operatingCount} @@ -990,7 +997,7 @@ export default function App() { {isExpanded && ( - +
{dept.managers.map(m => { const isManagerExpanded = expandedManagerDetails.has(m.manager); @@ -1007,7 +1014,7 @@ export default function App() {
{/* Region - Vehicle - Customer Section */} -
+
@@ -1467,7 +1481,7 @@ export default function App() { 区域 / 车型 / 客户 资产总数 运营中 - 库存 + 待交车 主要客户 @@ -1501,7 +1515,7 @@ export default function App() { className="p-2 text-center text-orange-600 font-bold cursor-pointer hover:bg-orange-50" onClick={(e) => { e.stopPropagation(); - setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', category: 'Inventory' }); + setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', category: 'Pending' }); }} > {r.inventoryCount} @@ -1530,7 +1544,7 @@ export default function App() { setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', vehicleType, category: 'Inventory' })} + onClick={() => setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', vehicleType, category: 'Pending' })} > {tb.inventory} @@ -1579,9 +1593,9 @@ export default function App() {
setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', category: 'Inventory' })} + onClick={() => setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', category: 'Pending' })} > -
库存
+
待交车
{r.inventoryCount}
@@ -1601,9 +1615,9 @@ export default function App() { setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', vehicleType, category: 'Inventory' })} + onClick={() => setShowPlateNumbers({ batch: 'All', model: 'All', location: 'All', vehicleType, category: 'Pending' })} > - 库:{tb.inventory} + 待:{tb.inventory} @@ -1620,7 +1634,7 @@ export default function App() {
{/* Customer Operations Statistics Section */} -
+