优化
This commit is contained in:
@@ -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',
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user