张同海 2 years ago
parent ec259fd0bb
commit 100f462939

@ -898,10 +898,13 @@ export default {
console.log(value) console.log(value)
// this.getCarrier(value) // this.getCarrier(value)
}, },
handleCarrierChange(index) { handleCarrierChange(data) {
this.details.carrier = this.carrierSelectData[index].cnName this.carrierSelectData.forEach(item => {
this.details.carrierid = this.carrierSelectData[index].code if (item.code == data) {
console.log(this.details.carrier, this.details.carrierid) console.log(item)
this.details.carrier = item.cnName
}
})
}, },
filterOption(input, option) { filterOption(input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0

@ -3,7 +3,7 @@ export default {
{ type: 'checkbox', width: 60, noDraggable: true }, { type: 'checkbox', width: 60, noDraggable: true },
{ field: 'carrier', title: '船公司', showHeaderOverflow: true, sortable: true }, { field: 'carrier', title: '船公司', showHeaderOverflow: true, sortable: true },
{ field: 'yard', 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' } }, { title: '船名航次', showHeaderOverflow: true, sortable: true, slots: { default: 'vessel' } },
{ field: 'etd', title: '开船日期', showHeaderOverflow: true, sortable: true }, { field: 'etd', title: '开船日期', showHeaderOverflow: true, sortable: true },
{ field: 'voyno', title: '海关航次', showHeaderOverflow: true }, { field: 'voyno', title: '海关航次', showHeaderOverflow: true },

Loading…
Cancel
Save