优化
This commit is contained in:
@@ -30,7 +30,11 @@ describe('platform inbound query API', () => {
|
||||
it('uses the implemented non-v1 list path and normalizes page values and IDs', async () => {
|
||||
vi.mocked(http.get).mockResolvedValue({
|
||||
code: '200', message: 'success', data: {
|
||||
records: [{ id: 19001, tenantId: 10002, orderId: 18001, customerId: 10001, totalPackageCount: '6', holdFlag: 'false' }],
|
||||
records: [{
|
||||
id: 19001, tenantId: 10002, orderId: 18001, customerId: 10001,
|
||||
totalPackageCount: '6', palletCount: '2', actualGrossWeightKg: '21.5',
|
||||
actualNetWeightKg: '18.25', actualVolumeCbm: '0.456', holdFlag: 'false',
|
||||
}],
|
||||
page: '1', size: '20', total: '1', pages: '1',
|
||||
},
|
||||
})
|
||||
@@ -38,7 +42,11 @@ describe('platform inbound query API', () => {
|
||||
await expect(listPlatformInbounds('10001', {
|
||||
page: 1, size: 20, tab: 'WAIT_MEASURE', inboundCode: 'RK', holdFlag: false,
|
||||
})).resolves.toMatchObject({
|
||||
records: [{ id: '19001', tenantId: '10002', orderId: '18001', customerId: '10001', totalPackageCount: 6, holdFlag: false }],
|
||||
records: [{
|
||||
id: '19001', tenantId: '10002', orderId: '18001', customerId: '10001',
|
||||
totalPackageCount: 6, palletCount: 2, actualGrossWeightKg: 21.5,
|
||||
actualNetWeightKg: 18.25, actualVolumeCbm: 0.456, holdFlag: false,
|
||||
}],
|
||||
total: 1, pages: 1,
|
||||
})
|
||||
expect(http.get).toHaveBeenCalledWith('/platform/inbounds', {
|
||||
|
||||
Reference in New Issue
Block a user