diff --git a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue index d32fe49..93a97ac 100644 --- a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue @@ -35,6 +35,7 @@
{ - if (!arr.includes(item.title)) { + if (item.title && !arr.includes(item.title)) { arr.push(item.title) } }) @@ -740,7 +746,7 @@ export default { if (this.consigneeData) { const arr = [] this.consigneeData.map((item, index) => { - if (!arr.includes(item.title)) { + if (item.title && !arr.includes(item.title)) { arr.push(item.title) } }) @@ -753,7 +759,7 @@ export default { if (this.notifyData) { const arr = [] this.notifyData.map((item, index) => { - if (!arr.includes(item.title)) { + if (item.title && !arr.includes(item.title)) { arr.push(item.title) } }) @@ -983,6 +989,8 @@ export default { this.shippername = value const index = this.shipperDataArr.indexOf(value) this.details.shipper = this.shipperData[index].content + this.showShipper = this.details.shipper + this.$forceUpdate() }, shipperChange(value) { this.getTemplate(value, 'shipper') @@ -992,6 +1000,7 @@ export default { this.consigneename = value const index = this.consigneeDataArr.indexOf(value) this.details.consignee = this.consigneeData[index].content + this.showConsignee = this.details.consignee }, consigneeChange(value) { this.getTemplate(value, 'consignee') @@ -1001,6 +1010,7 @@ export default { this.notifypartyname = value const index = this.notifyDataArr.indexOf(value) this.details.notifyparty = this.notifyData[index].content + this.showNotifier = this.details.notifyparty }, notifyChange(value) { this.getTemplate(value, 'notify')