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' ? '已自动离仓' : '报关已完成,待其他离仓条件' }}
+