This commit is contained in:
2026-08-13 11:57:44 +08:00
parent 7beca3f985
commit 835ac0ad12
87 changed files with 3721 additions and 295 deletions
+23
View File
@@ -0,0 +1,23 @@
import { describe, expect, it } from 'vitest'
import { buildInboundTaskQuery } from './task-list'
describe('inbound task list query', () => {
it('limits the measurement page to currently measurable inbound orders', () => {
expect(buildInboundTaskQuery('measurement', { page: 1, size: 20, inboundCode: 'RK-1' })).toEqual({
page: 1,
size: 20,
inboundCode: 'RK-1',
tab: 'WAIT_MEASURE',
})
})
it('limits the review page to pending and reviewable measurement data', () => {
expect(buildInboundTaskQuery('review', { page: 2, size: 50, warehouseId: '20001' })).toEqual({
page: 2,
size: 50,
warehouseId: '20001',
tab: 'WAIT_REVIEW',
measureReviewStatus: 'PENDING',
})
})
})