fix: display measurements throughout overseas fulfillment
This commit is contained in:
@@ -14,7 +14,7 @@ describe('LastMileOrderDetailView domestic detail alignment', () => {
|
||||
beforeEach(() => {
|
||||
push.mockReset()
|
||||
vi.mocked(getLastMileOrder).mockResolvedValue({
|
||||
order: { id: 'internal-order-id', customerId: 'customer-1', orderNo: 'FL-WH-001', currentStatus: 'PENDING_ASSIGNMENT', customerName: '示例客户', overseasWarehouseName: '洛杉矶仓', packageCount: 0, palletCount: 2, volumeCbm: 6.374, inboundCode: 'IN-001', containerNo: 'CONT-001', customerRemark: '完整保留客户备注', updatedAt: '2026-09-14T10:00:00' },
|
||||
order: { id: 'internal-order-id', customerId: 'customer-1', orderNo: 'FL-WH-001', currentStatus: 'PENDING_ASSIGNMENT', customerName: '示例客户', overseasWarehouseName: '洛杉矶仓', packageCount: 0, palletCount: 2, grossWeightKg: 30, netWeightKg: 22, volumeCbm: 6.374, inboundCode: 'IN-001', containerNo: 'CONT-001', customerRemark: '完整保留客户备注', updatedAt: '2026-09-14T10:00:00' },
|
||||
cargo: [{ id: 'cargo-1', skuCode: 'SKU-001', productNameZh: '测试货物' }], fees: [], statusHistory: [], operationHistory: [],
|
||||
})
|
||||
})
|
||||
@@ -30,9 +30,11 @@ describe('LastMileOrderDetailView domestic detail alignment', () => {
|
||||
expect(header.get('.status-badge').classes()).toContain('is-warning')
|
||||
expect(header.get('.order-reference-text__copy').classes()).toContain('is-text')
|
||||
const summary = wrapper.get('[aria-label="尾程订单概览"]')
|
||||
expect(summary.findAll('dd').map(item => item.text())).toEqual(['示例客户', '洛杉矶仓', '0 箱', '2 托', '6.374 m³', expect.stringContaining('2026-09-14')])
|
||||
expect(summary.findAll('dd').map(item => item.text())).toEqual(['示例客户', '洛杉矶仓', '0 箱', '2 托', '30 kg', '22 kg', '6.374 m³', expect.stringContaining('2026-09-14')])
|
||||
const fields = wrapper.get('dl[aria-label="基本信息"]')
|
||||
expect(fields.findAll('dt')).toHaveLength(20)
|
||||
expect(fields.findAll('dt')).toHaveLength(22)
|
||||
expect(fields.text()).toContain('货物毛重(kg)30')
|
||||
expect(fields.text()).toContain('货物净重(kg)22')
|
||||
expect(fields.text()).toContain('CONT-001')
|
||||
expect(fields.text()).toContain('完整保留客户备注')
|
||||
expect(fields.findAll('.wide')).toHaveLength(3)
|
||||
@@ -68,7 +70,7 @@ describe('LastMileOrderDetailView domestic detail alignment', () => {
|
||||
expect(fields.text()).toContain('实收箱数12')
|
||||
expect(fields.text()).toContain('箱数差异+2')
|
||||
expect(fields.get('.package-difference--nonzero').text()).toBe('+2')
|
||||
expect(wrapper.get('.status-badge').text()).toBe('入库测量中')
|
||||
expect(wrapper.get('.status-badge').text()).toBe('待客户确认实测')
|
||||
const overview = wrapper.get('[aria-label="尾程订单概览"]')
|
||||
expect(overview.text()).toContain('实收总箱数12 箱')
|
||||
expect(overview.text()).not.toContain('客户预报总箱数')
|
||||
|
||||
Reference in New Issue
Block a user