客户更换接口及取消保存

dev
张同海 2 years ago
parent ecdc31f4e0
commit 44d285b2a6

@ -36,7 +36,17 @@ export function DjyCustomerpage(parameter) {
params: parameter params: parameter
}) })
} }
/**
* 获取分页查询客户
* @params keyword
*/
export function DjyCustomerSuggest(parameter) {
return axios({
url: '/DjyCustomer/Suggest',
method: 'get',
params: parameter
})
}
/** /**
* 获取船公司 * 获取船公司
* @params CnName * @params CnName

@ -428,6 +428,7 @@ import { XCard } from '@/components'
import { AutoComplete } from 'ant-design-vue' import { AutoComplete } from 'ant-design-vue'
import { import {
DjyCustomerpage, DjyCustomerpage,
DjyCustomerSuggest,
GetCarrierlist, GetCarrierlist,
GetVessellist, GetVessellist,
GetSysUserPage, GetSysUserPage,
@ -835,10 +836,10 @@ export default {
}, },
// - start // - start
getDjyCustomerpage(name = '', type, key) { getDjyCustomerpage(name = '', type, key) {
DjyCustomerpage({ DjyCustomerSuggest({
// SearchValue: name, // SearchValue: name,
// PropString: key, // PropString: key,
ShortName: name keyword: name
}) })
.then(res => { .then(res => {
if (res.code === 200) { if (res.code === 200) {

@ -877,9 +877,11 @@ export default {
}, },
mounted() { mounted() {
const shipperScroll = document.getElementById('shipper-scroll') const shipperScroll = document.getElementById('shipper-scroll')
shipperScroll.addEventListener('scroll', () => { if (shipperScroll) {
document.getElementById('shipper-scroll-right').scrollTop = shipperScroll.scrollTop shipperScroll.addEventListener('scroll', () => {
}) document.getElementById('shipper-scroll-right').scrollTop = shipperScroll.scrollTop
})
}
const consigneeScroll = document.getElementById('consignee-scroll') const consigneeScroll = document.getElementById('consignee-scroll')
consigneeScroll.addEventListener('scroll', () => { consigneeScroll.addEventListener('scroll', () => {
document.getElementById('consignee-scroll-right').scrollTop = consigneeScroll.scrollTop document.getElementById('consignee-scroll-right').scrollTop = consigneeScroll.scrollTop

@ -346,8 +346,7 @@ export default {
const arr = this.formRes.MBLNO.split(/-||,|[.]/) const arr = this.formRes.MBLNO.split(/-||,|[.]/)
let val = `` let val = ``
arr.map((item, index) => { arr.map((item, index) => {
val += `${item} val += `${item}`
`
}) })
this.moreNumVal = val this.moreNumVal = val
this.moreNumVisible = !this.moreNumVisible this.moreNumVisible = !this.moreNumVisible

Loading…
Cancel
Save