修改提交
This commit is contained in:
@@ -96,7 +96,12 @@ export function packageDifferenceText(value: number | '—' | null | undefined)
|
||||
return value > 0 ? `+${value}` : String(value)
|
||||
}
|
||||
|
||||
// 认领后显示处理中,可出库节点统一显示换标完成。
|
||||
export function relabelApplicationStatusLabel(value: unknown) {
|
||||
const code = String(value ?? '').trim()
|
||||
return ({ PENDING_REVIEW: '待审核', PENDING_PROCESSING: '待处理', PROCESSING: '处理中', CUSTOMER_CONFIRM_PENDING: '待客户确认', READY_FOR_OUTBOUND: '待出库', COMPLETED: '已完成', REJECTED: '已驳回', CANCELLED: '已取消' } as Record<string, string>)[code] || text(code)
|
||||
}
|
||||
|
||||
// 兼容原有单张换标单的汇总展示;子单使用完整业务状态。
|
||||
export function relabelBusinessStatusLabel(value: unknown) {
|
||||
const code = String(value ?? '').trim()
|
||||
if (code === 'PROCESSING') return '处理中'
|
||||
@@ -185,6 +190,7 @@ export function toLastMileOrderListItem(dto: LastMileOrderSummaryDto): LastMileO
|
||||
outboundOrderNo: text(dto.outboundOrderNo),
|
||||
dispatchOrderNo: text(dto.deliveryOrderNo),
|
||||
relabelOrderNo: text(dto.relabelOrderNo),
|
||||
relabelApplications: (dto.relabelApplications || []).map(application => ({ ...application, statusLabel: relabelApplicationStatusLabel(application.status) })),
|
||||
relabelStatusCode: String(dto.relabelStatus ?? '').trim(),
|
||||
relabelStatus: relabelBusinessStatusLabel(dto.relabelStatus),
|
||||
consolidated: palletMergeLabel(dto.palletMergeFlag),
|
||||
|
||||
Reference in New Issue
Block a user