|
|
|
@ -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 => {
|
|
|
|
|