From 48b3f4bbb0d5b8daf25033162c0f0b11db8a21e5 Mon Sep 17 00:00:00 2001 From: lilu Date: Mon, 10 Apr 2023 16:12:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/BookingLedger/detail/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 4d679b5..be623dc 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -779,13 +779,13 @@ export default { console.log('initData ----', label) if (Object.keys(initDetail).includes(label)) { initDetail[label] = item.code - this.bookingDetails[label] = this.bookingDetails[label] ? this.bookingDetails[label] : item.code + this.bookingDetails[label] = this.bookingDetails[label] && this.bookingDetails[label] !== '' ? this.bookingDetails[label] : item.code } } else if (field[0] === 'ctn') { if (['CTNALL', 'CTNNUM', 'CNTRNO', 'SEALNO', 'PKGS', 'KINDPKGS', 'KGS', 'CBM', 'TAREWEIGHT', 'WEIGHTYPE', 'WEIGHKGS'].includes(field[1])) { this.ctnDefaultData[label] = item.code this.bookingDetails.ctnInputs.map((citem, cindex) => { - this.bookingDetails.ctnInputs[cindex][label] = citem[label] ? citem[label] : item.code + this.bookingDetails.ctnInputs[cindex][label] = citem[label] && citem[label] !== '' ? citem[label] : item.code }) } } else if (field[0] === 'edi') { @@ -806,7 +806,7 @@ export default { console.log('edi --- ', label) initDetail.bookingEDIExt[label] = item.code bookingEDIExt[label] = item.code - this.bookingDetails.bookingEDIExt[label] = this.bookingDetails.bookingEDIExt[label] ? this.bookingDetails.bookingEDIExt[label] : item.code + this.bookingDetails.bookingEDIExt[label] = this.bookingDetails.bookingEDIExt[label] && this.bookingDetails.bookingEDIExt[label] !== '' ? this.bookingDetails.bookingEDIExt[label] : item.code } }) }).catch(err => {