feat: complete phase three admin loading workflow

This commit is contained in:
2026-08-10 12:05:20 +08:00
parent bbe93ca235
commit 2915e6d599
7 changed files with 191 additions and 80 deletions
@@ -148,8 +148,8 @@ describe('UnifiedOrdersView contract', () => {
it('mounts downstream progress inside the existing order detail without opening unsafe writes', () => {
expect(source).toContain('UnifiedOrderWorkflowPanel')
expect(source).toContain("{ key: 'workflow', label: '后半程作业'")
expect(source).toContain(':read-only="true"')
expect(source).toContain(':show-delivery="false"')
expect(source).toContain(':order-id="String(detail.summary.orderId)"')
expect(source).not.toContain(':show-delivery=')
expect(source).toContain("detail.value?.summary.inboundId")
expect(routeSource).not.toContain('unified-order-workflow')
})
@@ -931,12 +931,10 @@ onMounted(() => {
<UnifiedOrderWorkflowPanel
:tenant-id="String(detail.summary.tenantId)"
:inbound-id="String(detail.summary.inboundId)"
:order-id="String(detail.summary.orderId)"
:main-status="detail.summary.mainStatus"
:inbound-version="detail.summary.inboundVersion"
:picking-version="detail.summary.loading?.pickingVersion"
:delivery-tracking-no="detail.summary.delivery?.trackingNo"
:read-only="true"
:show-delivery="false"
@updated="loadDetail(true)"
/>
</template>