This commit is contained in:
2026-10-20 23:34:11 +08:00
parent f155976f52
commit 13e4aa56ec
321 changed files with 6756 additions and 2110 deletions
@@ -16,6 +16,18 @@ function activeCustomer(id: string, tenantName: string, legalName: string | null
}
describe('InboundTaskList measurement scope', () => {
it('uses supplied order status tabs in the toolbar and keeps standalone mode titles as fallback', () => {
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
const toolbar = source.match(/<template #toolbar-start>([\s\S]*?)<\/template>/)?.[1]
const filters = source.match(/<template #filters>([\s\S]*?)<\/template>/)?.[1]
expect(toolbar).toContain('<slot name="status-tabs"><h1>')
expect(toolbar).toContain("title || (isReview ? '测量数据审核' : '订单测量')")
expect(toolbar).toContain('</h1></slot>')
expect(filters).toContain('<QueryToolbar')
expect(filters).not.toContain('name="status-tabs"')
expect(source).toContain('<template v-if="isReview && access.can(actionPermission)" #toolbar-actions>')
})
it('supports selecting only pending measurement reviews for batch approval', () => {
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')