fix(admin): expose canonical booking link from container detail

This commit is contained in:
2026-08-31 12:40:01 +08:00
parent 6ec0a0a028
commit 66ea73e766
4 changed files with 46 additions and 4 deletions
@@ -51,4 +51,12 @@ describe('ContainerDetailView customs integration', () => {
expect(overviewSource).not.toContain(retired)
}
})
it('offers the released-booking link workflow only for an eligible unlinked simulation container', () => {
expect(source).toContain("detail.value?.sourceType === 'SIMULATION'")
expect(source).toContain("!detail.value.oceanBookingId")
expect(source).toContain("['WAIT_LOADING', 'EDITING'].includes(detail.value.planStatus)")
expect(source).toContain('关联已放舱订舱')
expect(source).toContain("query: { linkContainerId: detail.value.id }")
})
})