diff --git a/src/modules/container-loading/pages/ContainerDetailView.test.ts b/src/modules/container-loading/pages/ContainerDetailView.test.ts index b5bf2e55..6506f05d 100644 --- a/src/modules/container-loading/pages/ContainerDetailView.test.ts +++ b/src/modules/container-loading/pages/ContainerDetailView.test.ts @@ -49,6 +49,12 @@ describe('ContainerDetailView customs integration', () => { expect(source).toContain(':can-edit="false"') }) + it('keeps the loaded overview mounted while switching fee tabs', () => { + expect(source).toContain("v-show=\"activeTab === 'overview'\" class=\"detail-section surface-panel\" aria-labelledby=\"container-voyage-heading\"") + expect(source).toContain("v-if=\"isOverseas\" v-show=\"activeTab === 'overview'\"") + expect(source).not.toContain("v-if=\"activeTab === 'overview'\" class=\"detail-section surface-panel\"") + }) + it('separates domestic first-leg fees and connects the overseas fee lifecycle lazily', () => { expect(source).toContain('label="头程计费" name="first-leg-fees"') expect(source).toContain('label="尾程计费" name="last-leg-fees"') diff --git a/src/modules/container-loading/pages/ContainerDetailView.vue b/src/modules/container-loading/pages/ContainerDetailView.vue index bf1d8e43..9d4f9b90 100644 --- a/src/modules/container-loading/pages/ContainerDetailView.vue +++ b/src/modules/container-loading/pages/ContainerDetailView.vue @@ -409,26 +409,26 @@ onMounted(async () => { await load(); if (isOverseas.value && route.query.action