- getStats 的 inventory 统计包含 Inventory + Abnormal - 总计行所有列改为从各车型数据累加,不再使用 SUMMARY Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
d3c85a62e6
commit
e4ffd027be
@@ -320,9 +320,9 @@ function getStats(list: Vehicle[], weeklyIds?: WeeklyTruckIds) {
|
||||
const strIds = list.map((v) => String(v.id));
|
||||
return {
|
||||
total: list.length,
|
||||
inventory: list.filter((v) => v.status === 'Inventory').length,
|
||||
inventory: list.filter((v) => v.status === 'Inventory' || v.status === 'Abnormal').length,
|
||||
inventoryRegions: getRegionCounts(
|
||||
list.filter((v) => v.status === 'Inventory'),
|
||||
list.filter((v) => v.status === 'Inventory' || v.status === 'Abnormal'),
|
||||
REGIONS,
|
||||
),
|
||||
pending: list.filter((v) => v.status === 'Pending').length,
|
||||
|
||||
Reference in New Issue
Block a user