From 8445a3c1cee1fb4e9dc3a2a6bccb98876611fbed Mon Sep 17 00:00:00 2001 From: sunzehua Date: Fri, 12 May 2023 10:15:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B2=A1=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/BookingLedger/detail/modules/preOrder.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/main/BookingLedger/detail/modules/preOrder.vue b/src/views/main/BookingLedger/detail/modules/preOrder.vue index 98b5e5a..e5a325f 100644 --- a/src/views/main/BookingLedger/detail/modules/preOrder.vue +++ b/src/views/main/BookingLedger/detail/modules/preOrder.vue @@ -2020,7 +2020,7 @@ export default { }, getNoDataInit(isHBL = false, type) { console.log(this.details, 'this.details') - let $details = JSON.parse(JSON.stringify(this.details)) + const $details = JSON.parse(JSON.stringify(this.details)) const $data = { bookingId: $details.id, id: 0, @@ -2030,7 +2030,6 @@ export default { etd: $details.etd, forwarder: $details.shipagency || '', vessel: $details.vessel, - voyno: $details.voyno, // 要改 carrier: $details.carrier || '', carrierid: $details.carrierid || '', @@ -2048,6 +2047,7 @@ export default { notifypartyname: '', notifypartyaddR1: '', notifypartycountry: '', + voyno: '', notifypartycountryName: '', notifypartytel: '', portload: $details.portload || 'QINGDAO,CHINA', @@ -2088,7 +2088,7 @@ export default { ] } console.log(type, 'type') - if (isHBL || type == 'enter') { + if (isHBL || type === 'enter') { $details.ctnInputs.forEach((item) => { $data.ediCtn.push({ ctnall: item.ctnall, @@ -2113,6 +2113,7 @@ export default { $data.shippercountryName = item.shippercountryName $data.shippertel = item.shippertel $data.marks = item.marks + $data.voyno = item.voyno $data.description = item.description $data.consigneename = item.consigneename $data.consigneeaddR1 = item.consigneeaddR1 @@ -2145,7 +2146,7 @@ export default { // $data.notifypartycountryName = res.data[0].country // }) // } - if ($data.portdischargeid) { + if ($data.portdischargeid && !isHBL) { GetPortlist({ KeyWord: $data.portdischargeid }).then((res) => { if (res.data) { $data.consigneecountry = res.data[0].countryCode