This commit is contained in:
2026-08-17 19:13:25 +08:00
parent 28f2cd4cc5
commit d618683467
22 changed files with 263 additions and 50 deletions
+10 -2
View File
@@ -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', {