feat: connect plan-level preload confirmation

This commit is contained in:
2026-08-15 17:04:00 +08:00
parent fc80d09faa
commit 835d1d0216
26 changed files with 398 additions and 267 deletions
@@ -83,6 +83,20 @@ describe('UnifiedOrderWorkflowPanel preload editor', () => {
expect(wrapper.find('button[aria-label="编辑第 1 条预装明细"]').exists()).toBe(true)
})
it('keeps single-order preload confirmation read-only and links to the plan list', async () => {
const wrapper = mountPanel(['firstleg:inbound:preload-view', 'platform:firstleg:preload:list'])
await flushPromises()
expect(wrapper.text()).toContain('计划级预装确认')
expect(wrapper.text()).toContain('从实际预装计划详情确认整份计划')
expect(wrapper.text()).toContain('前往预装清单')
expect(wrapper.text()).not.toContain('提交确认')
expect(wrapper.text()).not.toContain('确认预装清单')
const source = readFileSync(resolve(process.cwd(), 'src/modules/unified-orders/workflows/components/UnifiedOrderWorkflowPanel.vue'), 'utf8')
expect(source).toContain("router.push({ name: 'loading-plans' })")
})
it('does not query or expose editing controls without permission', async () => {
const wrapper = mountPanel([])
await flushPromises()