This commit is contained in:
2026-09-10 11:17:45 +08:00
parent 6a038c89ca
commit 9b5b324fe8
5 changed files with 79 additions and 8 deletions
@@ -521,6 +521,14 @@ describe('UnifiedOrdersView contract', () => {
expect(source).not.toContain('title="更多操作"')
})
it('batch prints stable carton labels from the list toolbar instead of adding another row action', () => {
expect(source).toContain('downloadInboundCartonLabelsBatch')
expect(source).toContain('const selectedCartonLabelOrders = computed')
expect(source).toContain('@click="printSelectedCartonLabels"')
expect(source).toContain('批量箱唛-${selectedCartonLabelOrders.value.length}单.pdf')
expect(source).not.toContain("type UnifiedOrderRowAction = 'note' | 'approve' | 'printCartonLabels'")
})
it('renders order detail as a routed full page instead of a drawer', () => {
expect(source).toContain('<template v-if="isDetailRoute">')
expect(source).toContain('class="order-detail-header"')