This commit is contained in:
2026-08-17 18:00:42 +08:00
parent c7334b2cf8
commit ec3dbb3fe4
23 changed files with 407 additions and 999 deletions
@@ -16,6 +16,18 @@ function activeCustomer(id: string, tenantName: string, legalName: string | null
}
describe('InboundTaskList measurement scope', () => {
it('supports selecting only pending measurement reviews for batch approval', () => {
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
expect(source).toContain("key: 'selection', type: 'selection'")
expect(source).toContain("row.measureReviewStatus === 'PENDING'")
expect(source).toContain('@selection-change="handleReviewSelectionChange"')
expect(source).toContain('batchApproveMeasurements')
expect(source).toContain('批量审核通过')
expect(source).toContain('getMeasurementReviewDetail')
expect(source).toContain('approveMeasurement')
})
it('uses the inbound tenant isolation key for measurement and review requests', () => {
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')