From f501de0c075c70c4d64c6c38353d9a60d555ec35 Mon Sep 17 00:00:00 2001 From: lilu Date: Mon, 3 Apr 2023 16:54:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E5=88=B6=E5=8A=9F=E8=83=BD=20+=20?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E5=88=97=E8=A1=A8=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/BasicLayout.vue | 2 +- src/store/modules/booking.js | 26 +-- .../detail/components/selectView.vue | 176 ++++++++++++------ .../detail/modules/basicInfo.vue | 25 --- src/views/main/BookingLedger/list/index.vue | 7 + 5 files changed, 139 insertions(+), 97 deletions(-) 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 @@