fix(admin): preserve tail-leg references
This commit is contained in:
@@ -45,6 +45,11 @@ export function lastMileOrderTypeLabel(value: unknown) {
|
||||
return orderTypeLabels[code] || text(code)
|
||||
}
|
||||
|
||||
export function lastMileOrderReference(value: unknown, emptyLabel = '—') {
|
||||
const serverValue = value == null ? '' : String(value)
|
||||
return serverValue || emptyLabel
|
||||
}
|
||||
|
||||
export function formatOverseasDateTime(value: unknown) {
|
||||
const raw = String(value ?? '').trim()
|
||||
if (!raw) return '—'
|
||||
@@ -57,7 +62,7 @@ export function toLastMileOrderListItem(dto: LastMileOrderSummaryDto): LastMileO
|
||||
id: String(dto.id),
|
||||
customerId: String(dto.customerId),
|
||||
sourceContainerBookingId: String(dto.sourceContainerBookingId ?? '').trim(),
|
||||
orderNo: text(dto.orderNo),
|
||||
orderNo: lastMileOrderReference(dto.orderNo),
|
||||
warning: dto.abnormal ? '异常' : '—',
|
||||
orderType: text(dto.orderTypeName || lastMileOrderTypeLabel(dto.orderType)),
|
||||
rejectedAt: '—',
|
||||
|
||||
Reference in New Issue
Block a user