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
+21
View File
@@ -0,0 +1,21 @@
import type { InboundListQuery } from './core/types'
export type InboundTaskMode = 'measurement' | 'review'
export function buildInboundTaskQuery(
mode: InboundTaskMode,
query: Omit<InboundListQuery, 'tab' | 'processStatus' | 'measureReviewStatus'>,
): InboundListQuery {
if (mode === 'review') {
return {
...query,
tab: 'WAIT_REVIEW',
measureReviewStatus: 'PENDING',
}
}
return {
...query,
tab: 'WAIT_MEASURE',
}
}