张同海 2 years ago
parent ec259fd0bb
commit 100f462939

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

@ -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 },

Loading…
Cancel
Save