|
|
|
@ -60,7 +60,8 @@ import {
|
|
|
|
|
GetSysUserPage,
|
|
|
|
|
GetService,
|
|
|
|
|
getGoodsname,
|
|
|
|
|
BookingSourcePage
|
|
|
|
|
BookingSourcePage,
|
|
|
|
|
CodeCountryList
|
|
|
|
|
} from '@/api/modular/main/BookingLedger'
|
|
|
|
|
import { mapGetters, mapActions } from 'vuex'
|
|
|
|
|
let timer
|
|
|
|
@ -113,7 +114,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
...mapGetters(['carrierList', 'yardList', 'packageList', 'issuetypeList', 'blfrtList', 'lineList', 'bookingInitData', 'sourceList'])
|
|
|
|
|
...mapGetters(['carrierList', 'yardList', 'packageList', 'issuetypeList', 'blfrtList', 'lineList', 'bookingInitData', 'sourceList', 'countryList'])
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
defaultVal(nval, oval) {
|
|
|
|
@ -339,6 +340,12 @@ export default {
|
|
|
|
|
return arr
|
|
|
|
|
case 'sourceName':
|
|
|
|
|
return this.sourceList
|
|
|
|
|
case 'notifypartycountry':
|
|
|
|
|
return this.countryList
|
|
|
|
|
case 'consigneecountry':
|
|
|
|
|
return this.countryList
|
|
|
|
|
case 'shippercountry':
|
|
|
|
|
return this.countryList
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
filterOption(input, option) {
|
|
|
|
@ -391,7 +398,7 @@ export default {
|
|
|
|
|
this.$refs.selectView.$refs.vcSelect.focus()
|
|
|
|
|
}
|
|
|
|
|
this.open = true
|
|
|
|
|
if (['cargoid', 'nobill', 'copynobill', 'carrierid', 'yard', 'kindpkgs', 'issuetype', 'blfrt', 'masterBolIndicator', 'salerCode', 'shippingMethod', 'sourceName'].includes(this.type)) {
|
|
|
|
|
if (['cargoid', 'nobill', 'copynobill', 'carrierid', 'yard', 'kindpkgs', 'issuetype', 'blfrt', 'masterBolIndicator', 'salerCode', 'shippingMethod', 'sourceName', 'notifypartycountry', 'consigneecountry', 'shippercountry'].includes(this.type)) {
|
|
|
|
|
this.selectList = this.emnuData(this.type)
|
|
|
|
|
this.inLoading = false
|
|
|
|
|
return false
|
|
|
|
@ -405,7 +412,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
if (!e) {
|
|
|
|
|
console.log('首次搜索内容', e, this.type, this.bookingInitData)
|
|
|
|
|
if (!['vessel', 'lineName'].includes(this.type) && this.bookingInitData[`${this.type}InitList`].length > 0) {
|
|
|
|
|
if (!['vessel', 'lineName', 'notifypartycountry', 'consigneecountry', 'shippercountry'].includes(this.type) && this.bookingInitData[`${this.type}InitList`].length > 0) {
|
|
|
|
|
console.log(this.bookingInitData[`${this.type}InitList`])
|
|
|
|
|
this.selectList = this.bookingInitData[`${this.type}InitList`]
|
|
|
|
|
return false
|
|
|
|
|