feat(overseas): manage last-mile order controls

This commit is contained in:
2026-09-08 10:54:36 +08:00
parent 74d883a443
commit 463b054a0a
7 changed files with 73 additions and 33 deletions
@@ -52,6 +52,17 @@ describe('last-mile order presentation adapter', () => {
}).owner).toBe('—')
})
it('preserves the frozen overseas receiving warehouse id and code as strings', () => {
const row = toLastMileOrderListItem({
id: '190000000000000099', customerId: '190000000000000001', orderNo: 'LMO-260908-0001',
overseasWarehouseId: '190000000000000123', overseasWarehouseCode: 'LAX01', overseasWarehouseName: '洛杉矶接柜仓',
})
expect(row.overseasWarehouseId).toBe('190000000000000123')
expect(row.overseasWarehouseCode).toBe('LAX01')
expect(row.warehouse).toBe('洛杉矶接柜仓')
})
it('preserves the exact server LMO short number without padding, prefixing or deriving it from id', () => {
const serverOrderNo = 'LMO-9A7'
const row = toLastMileOrderListItem({ id: '2092873463568596994', customerId: '100', orderNo: serverOrderNo })