From 7b75f40e287041aa151269c1865f8810e40b7741 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Wed, 9 Sep 2026 11:55:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ContainerLastLegFeesPanel.vue | 4 +- ...nerDetailView.emptyReturn.behavior.test.ts | 20 +++++++++- .../pages/ContainerDetailView.test.ts | 10 ++--- .../pages/ContainerDetailView.vue | 38 +++++++++++++++---- 4 files changed, 56 insertions(+), 16 deletions(-) diff --git a/src/modules/container-loading/components/ContainerLastLegFeesPanel.vue b/src/modules/container-loading/components/ContainerLastLegFeesPanel.vue index 8a18b6e8..2d9450c2 100644 --- a/src/modules/container-loading/components/ContainerLastLegFeesPanel.vue +++ b/src/modules/container-loading/components/ContainerLastLegFeesPanel.vue @@ -56,7 +56,7 @@ function saveRequest(row?: OverseasContainerFeeSource): OverseasContainerFeeSave async function load() { if (!canView.value) return loading.value = true; error.value = null - try { [rows.value, customers.value, suppliers.value] = await Promise.all([listOverseasContainerFees(props.containerBookingId), listOverseasContainerCustomers(props.containerBookingId), props.readonly ? Promise.resolve([]) : listContainerFeeSupplierOptions(null)]) } + try { [rows.value, customers.value, suppliers.value] = await Promise.all([listOverseasContainerFees(props.containerBookingId), listOverseasContainerCustomers(props.containerBookingId), canEdit.value && access.can('platform:supplier:list') ? listContainerFeeSupplierOptions(null) : Promise.resolve([])]) } catch (cause) { error.value = getApiErrorDetails(cause, '尾程计费加载失败') } finally { loading.value = false } } @@ -108,7 +108,7 @@ onMounted(load)