diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue index ed32a64..89c69fd 100644 --- a/src/layouts/BasicLayout.vue +++ b/src/layouts/BasicLayout.vue @@ -165,7 +165,7 @@ export default { this.setBlfrtList() this.setCtnallList() this.setLineList() - // this.setBookingInitData() + this.setBookingInitData() } } } diff --git a/src/store/modules/booking.js b/src/store/modules/booking.js index 78b1985..33066a9 100644 --- a/src/store/modules/booking.js +++ b/src/store/modules/booking.js @@ -306,24 +306,14 @@ const booking = { case 'service': allData['serviceInitList'] = $data break - case 'template': - const shippernameInitList = [] - const consigneenameInitList = [] - const notifypartynameInitList = [] - $data.map((tempalte, cindex) => { - if (tempalte.type.includes('10')) { - shippernameInitList.push(tempalte) - } - if (tempalte.type.includes('20')) { - consigneenameInitList.push(tempalte) - } - if (tempalte.type.includes('30')) { - notifypartynameInitList.push(tempalte) - } - }) - allData['shippernameInitList'] = shippernameInitList - allData['consigneenameInitList'] = consigneenameInitList - allData['notifypartynameInitList'] = notifypartynameInitList + case 'sTemplate': + allData['shippernameInitList'] = $data + break + case 'fTemplate': + allData['consigneenameInitList'] = $data + break + case 'tTemplate': + allData['notifypartynameInitList'] = $data break } }) diff --git a/src/views/main/BookingLedger/detail/components/selectView.vue b/src/views/main/BookingLedger/detail/components/selectView.vue index 4e28a21..64d02e8 100644 --- a/src/views/main/BookingLedger/detail/components/selectView.vue +++ b/src/views/main/BookingLedger/detail/components/selectView.vue @@ -1,50 +1,61 @@