From f37852997d39cf71910d67425e3904cc16ea4826 Mon Sep 17 00:00:00 2001 From: sunzehua Date: Thu, 11 May 2023 17:24:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/BookingLedger/detail/modules/preOrder.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/main/BookingLedger/detail/modules/preOrder.vue b/src/views/main/BookingLedger/detail/modules/preOrder.vue index b6fe193..d7c3ed0 100644 --- a/src/views/main/BookingLedger/detail/modules/preOrder.vue +++ b/src/views/main/BookingLedger/detail/modules/preOrder.vue @@ -2145,9 +2145,10 @@ export default { // } if ($data.portdischargeid) { GetPortlist({ KeyWord: $data.portdischargeid }).then((res) => { - console.log(res.data[0], 'res.data[0]') - $data.consigneecountry = res.data[0].countryCode - $data.consigneecountryName = `${res.data[0].countryCode}/${res.data[0].cnName}` + if (res.data) { + $data.consigneecountry = res.data[0].countryCode + $data.consigneecountryName = `${res.data[0].countryCode}/${res.data[0].cnName}` + } }) } if ($details.shipper) {