From 33b79edd18a1c7eb6e366af478ca82bcb4876481 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Thu, 10 Sep 2026 14:15:44 +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 --- .../container-loading/api/platformContainerCustoms.ts | 5 +++-- .../container-loading/components/ContainerCustomsPanel.vue | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/container-loading/api/platformContainerCustoms.ts b/src/modules/container-loading/api/platformContainerCustoms.ts index 9f38c679..ccfaa157 100644 --- a/src/modules/container-loading/api/platformContainerCustoms.ts +++ b/src/modules/container-loading/api/platformContainerCustoms.ts @@ -75,8 +75,9 @@ function normalize(value: RawContainerCustomsView): ContainerCustomsView { } export async function getContainerCustoms(loadingPlanId: string) { - const response = await http.get, ApiEnvelope>(`${basePath}/${encodeURIComponent(loadingPlanId)}`) - return normalize(unwrapApiResponse(response)) + const response = await http.get, ApiEnvelope>(`${basePath}/${encodeURIComponent(loadingPlanId)}`) + const value = unwrapApiResponse(response) + return value ? normalize(value) : null } export function downloadContainerCustomsDocument(documentId: string) { diff --git a/src/modules/container-loading/components/ContainerCustomsPanel.vue b/src/modules/container-loading/components/ContainerCustomsPanel.vue index 89590a80..4e1c137f 100644 --- a/src/modules/container-loading/components/ContainerCustomsPanel.vue +++ b/src/modules/container-loading/components/ContainerCustomsPanel.vue @@ -187,6 +187,7 @@ onMounted(load)
国内离仓状态:{{ departureState === 'DEPARTED' ? '已自动离仓' : '报关已完成,待其他离仓条件' }}
+