This commit is contained in:
2026-08-22 12:24:15 +08:00
parent 76c71a3e5e
commit 866ea58cab
18 changed files with 59 additions and 32 deletions
@@ -3,7 +3,11 @@ import type { LastMileOrderListItem } from './types'
const orderTypeLabels: Record<string, string> = {
ONE_CLICK_DROPSHIP: '一件代发',
FIRST_LEG: '头程',
FIRST_LEG: '头程订单',
RELABEL_APPLICATION: '换标下单',
WAREHOUSE_TRANSFER: '仓储转运',
RETURN_RELABEL: '退货换标',
LOCAL_LOOSEBOARD: '本土散板',
REJECTED: '拒收订单',
EXPRESS: '快递订单',
}
@@ -54,7 +58,7 @@ export function toLastMileOrderListItem(dto: LastMileOrderSummaryDto): LastMileO
customerId: String(dto.customerId),
orderNo: text(dto.orderNo),
warning: dto.abnormal ? '异常' : '—',
orderType: lastMileOrderTypeLabel(dto.orderType),
orderType: text(dto.orderTypeName || lastMileOrderTypeLabel(dto.orderType)),
rejectedAt: '—',
inboundCode: text(dto.inboundCode),
owner: text(dto.customerName),
@@ -83,5 +87,6 @@ export function toLastMileOrderListItem(dto: LastMileOrderSummaryDto): LastMileO
internalRemark: text(dto.privateRemark),
customerRemark: text(dto.customerRemark),
warehouseRemark: text(dto.warehouseRemark),
createdAt: formatOverseasDateTime(dto.createdAt),
}
}