This commit is contained in:
2026-10-21 17:08:59 +08:00
parent c510cc4e2e
commit 67acd02ea5
6 changed files with 82 additions and 11 deletions
@@ -51,7 +51,7 @@ const vehicleStatuses = [
{ value: 'DELIVERED', label: '已送达', type: 'success' },
] as const
function vehicleStatusForStage(value: DispatchStage) {
if (value === 'BEFORE_LOADING' || value === 'LOADING') return vehicleStatuses[0]
if (value === 'BEFORE_LOADING' || value === 'LOADING' || value === 'AFTER_LOADING') return vehicleStatuses[0]
return vehicleStatuses.find(item => item.value === value)
}
const operation = ref<'ROUTE' | undefined>()