fix: limit dispatch vehicle choices

This commit is contained in:
2026-09-15 12:17:20 +08:00
parent 785194209b
commit ca90b0bc75
6 changed files with 25 additions and 39 deletions
@@ -0,0 +1,9 @@
export const dispatchVehicleSpecs = [
{ value: 'LARGE_30', label: '大车(30托)', capacity: 30, maxWeightLb: 40000 },
{ value: 'SMALL_15', label: '小车(15托)', capacity: 15, maxWeightLb: 10000 },
] as const
export const dispatchVehicleSizeOptions = dispatchVehicleSpecs.map(({ capacity }) => ({
label: `${capacity}托`,
value: `${capacity}托`,
}))