临时提交

szh_zidingyibiaoti
lilu 2 years ago
parent b60c099704
commit 48b3f4bbb0

@ -779,13 +779,13 @@ export default {
console.log('initData ----', label) console.log('initData ----', label)
if (Object.keys(initDetail).includes(label)) { if (Object.keys(initDetail).includes(label)) {
initDetail[label] = item.code 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') { } else if (field[0] === 'ctn') {
if (['CTNALL', 'CTNNUM', 'CNTRNO', 'SEALNO', 'PKGS', 'KINDPKGS', 'KGS', 'CBM', 'TAREWEIGHT', 'WEIGHTYPE', 'WEIGHKGS'].includes(field[1])) { if (['CTNALL', 'CTNNUM', 'CNTRNO', 'SEALNO', 'PKGS', 'KINDPKGS', 'KGS', 'CBM', 'TAREWEIGHT', 'WEIGHTYPE', 'WEIGHKGS'].includes(field[1])) {
this.ctnDefaultData[label] = item.code this.ctnDefaultData[label] = item.code
this.bookingDetails.ctnInputs.map((citem, cindex) => { 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') { } else if (field[0] === 'edi') {
@ -806,7 +806,7 @@ export default {
console.log('edi --- ', label) console.log('edi --- ', label)
initDetail.bookingEDIExt[label] = item.code initDetail.bookingEDIExt[label] = item.code
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 => { }).catch(err => {

Loading…
Cancel
Save