diff --git a/src/api/modular/main/BookingLedger.js b/src/api/modular/main/BookingLedger.js index b789076..4e35fd9 100644 --- a/src/api/modular/main/BookingLedger.js +++ b/src/api/modular/main/BookingLedger.js @@ -36,7 +36,17 @@ export function DjyCustomerpage(parameter) { params: parameter }) } - +/** + * 获取分页查询客户 + * @params keyword + */ +export function DjyCustomerSuggest(parameter) { + return axios({ + url: '/DjyCustomer/Suggest', + method: 'get', + params: parameter + }) +} /** * 获取船公司 * @params CnName diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue index 715564a..c67b025 100644 --- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue @@ -428,6 +428,7 @@ import { XCard } from '@/components' import { AutoComplete } from 'ant-design-vue' import { DjyCustomerpage, + DjyCustomerSuggest, GetCarrierlist, GetVessellist, GetSysUserPage, @@ -835,10 +836,10 @@ export default { }, // 客户 - start getDjyCustomerpage(name = '', type, key) { - DjyCustomerpage({ + DjyCustomerSuggest({ // SearchValue: name, // PropString: key, - ShortName: name + keyword: name }) .then(res => { if (res.code === 200) { diff --git a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue index e318735..a8a5f55 100644 --- a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue @@ -877,9 +877,11 @@ export default { }, mounted() { const shipperScroll = document.getElementById('shipper-scroll') - shipperScroll.addEventListener('scroll', () => { - document.getElementById('shipper-scroll-right').scrollTop = shipperScroll.scrollTop - }) + if (shipperScroll) { + shipperScroll.addEventListener('scroll', () => { + document.getElementById('shipper-scroll-right').scrollTop = shipperScroll.scrollTop + }) + } const consigneeScroll = document.getElementById('consignee-scroll') consigneeScroll.addEventListener('scroll', () => { document.getElementById('consignee-scroll-right').scrollTop = consigneeScroll.scrollTop diff --git a/src/views/main/BookingLedger/list/index.vue b/src/views/main/BookingLedger/list/index.vue index fb85997..d221233 100644 --- a/src/views/main/BookingLedger/list/index.vue +++ b/src/views/main/BookingLedger/list/index.vue @@ -346,8 +346,7 @@ export default { const arr = this.formRes.MBLNO.split(/-|,|,|[.]/) let val = `` arr.map((item, index) => { - val += `${item} -` + val += `${item}` }) this.moreNumVal = val this.moreNumVisible = !this.moreNumVisible