This commit is contained in:
wujinliang
2026-08-27 21:48:15 +08:00
parent 550d8add97
commit b47323edf3
53 changed files with 624 additions and 82 deletions
@@ -47,6 +47,16 @@ describe('TruckAppointmentForm interaction contract', () => {
expect(source).not.toContain('const relationText = computed')
})
it('loads readonly detail options and preserves relation snapshots outside the first page', () => {
expect(source).toContain('onMounted(() => { void loadOptions() })')
expect(source).toContain('const selectedContainerFallback = computed')
expect(source).toContain('const selectedBookingFallback = computed')
expect(source).toContain('const selectedWarehouseFallback = computed')
expect(source).toContain('v-if="selectedContainerFallback"')
expect(source).toContain('v-if="selectedBookingFallback"')
expect(source).toContain('v-if="selectedWarehouseFallback"')
})
it('keeps booking, cabinet and loading plan optional and only uses them for completion hints', () => {
expect(source).toContain('订舱、柜次和装柜计划均为可选关联,不影响独立开立拖车预约')
expect(source).toContain('class="relation-note"')