diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue index 78d5752..b0afb82 100644 --- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue @@ -898,10 +898,13 @@ export default { console.log(value) // this.getCarrier(value) }, - handleCarrierChange(index) { - this.details.carrier = this.carrierSelectData[index].cnName - this.details.carrierid = this.carrierSelectData[index].code - console.log(this.details.carrier, this.details.carrierid) + handleCarrierChange(data) { + this.carrierSelectData.forEach(item => { + if (item.code == data) { + console.log(item) + this.details.carrier = item.cnName + } + }) }, filterOption(input, option) { return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 diff --git a/src/views/main/BookingLedger/list/modules/initData.js b/src/views/main/BookingLedger/list/modules/initData.js index 025cb5d..121cc41 100644 --- a/src/views/main/BookingLedger/list/modules/initData.js +++ b/src/views/main/BookingLedger/list/modules/initData.js @@ -3,7 +3,7 @@ export default { { type: 'checkbox', width: 60, noDraggable: true }, { field: 'carrier', title: '船公司', showHeaderOverflow: true, sortable: true }, { field: 'yard', title: '场站', showHeaderOverflow: true, sortable: true }, - { title: '提单号', showHeaderOverflow: true, sortable: true, slots: { default: 'mblno' } }, + { title: '提单号', showHeaderOverflow: true, showOverflow: false, sortable: true, slots: { default: 'mblno' } }, { title: '船名航次', showHeaderOverflow: true, sortable: true, slots: { default: 'vessel' } }, { field: 'etd', title: '开船日期', showHeaderOverflow: true, sortable: true }, { field: 'voyno', title: '海关航次', showHeaderOverflow: true },