1
This commit is contained in:
@@ -14,8 +14,9 @@ const transportModeLabels = new Map<FirstLegTransportMode, string>(
|
||||
FIRST_LEG_TRANSPORT_MODES.map((item) => [item.code, item.label]),
|
||||
)
|
||||
|
||||
export function getFirstLegStatusLabel(status: FirstLegOrderStatus) {
|
||||
return statusLabels.get(status) ?? '未知状态'
|
||||
export function getFirstLegStatusLabel(status: string) {
|
||||
const canonicalStatus = status === 'SUBMITTED' ? 'PENDING_REVIEW' : status
|
||||
return statusLabels.get(canonicalStatus as FirstLegOrderStatus) ?? '未知状态'
|
||||
}
|
||||
|
||||
export function getFirstLegTransportModeLabel(mode: FirstLegTransportMode | null) {
|
||||
|
||||
Reference in New Issue
Block a user