模糊搜索

pull/1/head
lilu 2 years ago
parent 4d92fcec49
commit e71d69d2f1

@ -477,7 +477,10 @@ import {
DjyCustomerpage,
GetCtn,
GetPackage,
Codeissuetypelist
Codeissuetypelist,
GetFrt,
GetService,
GetForwarderlist
} from '@/api/modular/main/BookingLedger'
import columnSetting from '@/components/tableColumnSetting'
import formLabel from './modules/formLabel'
@ -1365,7 +1368,7 @@ export default {
//
getCompleteListFun ({ form, value }) {
let query = {}
if (['VESSEL', 'PORTDISCHARGE', 'PORTLOAD', 'PLACERECEIPT', 'DESTINATION', 'PLACEDELIVERY'].includes(form.label)) {
if (['VESSEL', 'PORTDISCHARGE', 'PORTLOAD', 'PLACERECEIPT', 'DESTINATION', 'PLACEDELIVERY', 'PAYABLEAT', 'BLFRT', 'ISSUEPLACE', 'PREPARDAT', 'SERVICE', 'SHIPAGENCY'].includes(form.label)) {
//
query = {
KeyWord: value
@ -1393,12 +1396,22 @@ export default {
SearchValue: value,
PropString: 'customs_broker'
}
} else if (form.label === 'AGENTID') {
query = {
SearchValue: value,
PropString: 'out_agent'
}
} else if (form.label === 'TRUCKER') {
query = {
SearchValue: value,
PropString: 'fleet'
}
}
const fun = this.emnuCompleteApi(form.label)
if (fun) {
this.getFromSelectData(this.emnuCompleteApi(form.label), query).then((data) => {
console.log(data)
if (['CUSTOMERNAME', 'FORWARDER', 'CUSTOMSER'].includes(form.label)) {
if (['CUSTOMERNAME', 'FORWARDER', 'CUSTOMSER', 'AGENTID', 'TRUCKER'].includes(form.label)) {
this.$refs[`fromlabel-${form.label}`][0].$data.dataSourceList = data.rows
} else {
this.$refs[`fromlabel-${form.label}`][0].$data.dataSourceList = data
@ -1437,6 +1450,22 @@ export default {
return GetSysUserPage
case 'CUSTOMSER':
return DjyCustomerpage
case 'PAYABLEAT':
return GetPortlist
case 'BLFRT':
return GetFrt
case 'ISSUEPLACE':
return GetPortloadlist
case 'PREPARDAT':
return GetPortloadlist
case 'SERVICE':
return GetService
case 'AGENTID':
return DjyCustomerpage
case 'TRUCKER':
return DjyCustomerpage
case 'SHIPAGENCY':
return GetForwarderlist
}
}

@ -160,38 +160,17 @@ export default {
{ title: '付款方', align: 'center', width: 160, label: 'FREIGHTPAYER', type: 'input' },
{ title: '唛头', align: 'center', width: 160, label: 'MARKS', type: 'input' },
{ title: '危险品编号', align: 'center', width: 160, label: 'DUNNO', type: 'input' },
// 东胜添加
{ title: '箱号', align: 'center', width: 160, label: 'CNTRNO', type: 'input' },
{ title: '封号', align: 'center', width: 160, label: 'SEALNO', type: 'input' },
{ title: '创建人', align: 'center', width: 160, label: 'CreatedUserName', type: 'input' },
// 以下需要加模糊搜索
// { title: '箱型', align: 'center', width: 160, label: 'CNTRTOTAL', type: 'input' },
// { title: '包装', align: 'center', width: 160, label: 'KINDPKGS', type: 'input' },
// { title: '到付地点', align: 'center', width: 160, label: 'PAYABLEAT', type: 'input' },
// { title: '付费方式', align: 'center', width: 160, label: 'BLFRT', type: 'input' },
// { title: '签单地点', align: 'center', width: 160, label: 'ISSUEPLACE', type: 'input' },
// { title: '预付地点', align: 'center', width: 160, label: 'PREPARDAT', type: 'input' },
// { title: '运输条款', align: 'center', width: 160, label: 'SERVICE', type: 'input' },
// { title: '国外代理', align: 'center', width: 160, label: 'AGENTID', type: 'input' },
// { title: '车队', align: 'center', width: 160, label: 'TRUCKER', type: 'input' },
// { title: '船代', align: 'center', width: 160, label: 'SHIPAGENCY', type: 'input' },
// 以下需要加模糊搜索
{ title: '到付地点', align: 'center', width: 160, label: 'PAYABLEAT', type: 'input' },
{ title: '付费方式', align: 'center', width: 160, label: 'BLFRT', type: 'input' },
{ title: '签单地点', align: 'center', width: 160, label: 'ISSUEPLACE', type: 'input' },
{ title: '预付地点', align: 'center', width: 160, label: 'PREPARDAT', type: 'input' },
{ title: '运输条款', align: 'center', width: 160, label: 'SERVICE', type: 'input' },
{ title: '国外代理', align: 'center', width: 160, label: 'AGENTID', type: 'input' },
{ title: '车队', align: 'center', width: 160, label: 'TRUCKER', type: 'input' },
{ title: '船代', align: 'center', width: 160, label: 'SHIPAGENCY', type: 'input' },
// 以下为下拉加载
// { title: '箱型', align: 'center', width: 160, label: 'CNTRTOTAL', type: 'input' },
// { title: '包装', align: 'center', width: 160, label: 'KINDPKGS', type: 'input' },
// { title: '签单方式', align: 'center', width: 160, label: 'ISSUETYPE', type: 'input' },
// { title: '提单份数', align: 'center', width: 160, label: 'NOBILL', type: 'input' },
// { title: '货物标识', align: 'center', width: 160, label: 'CARGOID', type: 'input' },
{ title: '到付地点', align: 'center', width: 160, label: 'PAYABLEAT', type: 'complete', showLabel: 'enName' },
{ title: '付费方式', align: 'center', width: 160, label: 'BLFRT', type: 'complete', showLabel: 'enName' },
{ title: '签单地点', align: 'center', width: 160, label: 'ISSUEPLACE', type: 'complete', showLabel: 'enName' },
{ title: '预付地点', align: 'center', width: 160, label: 'PREPARDAT', type: 'complete', showLabel: 'enName' },
{ title: '运输条款', align: 'center', width: 160, label: 'SERVICE', type: 'complete', showLabel: 'name' },
{ title: '国外代理', align: 'center', width: 160, label: 'AGENTID', type: 'complete', showLabel: 'shortName' },
{ title: '车队', align: 'center', width: 160, label: 'TRUCKER', type: 'complete', showLabel: 'shortName' },
{ title: '船代', align: 'center', width: 160, label: 'SHIPAGENCY', type: 'complete', showLabel: 'name' },
{ title: '箱型', align: 'center', width: 120, label: 'CNTRTOTAL', type: 'select', showLabel: 'name' },
{ title: '包装', align: 'center', width: 120, label: 'KINDPKGS', type: 'select', showLabel: 'name' },
@ -231,8 +210,6 @@ export default {
{ code: 'O', name: '超限箱' }
]
},
// 以下为日期区间
{ title: '签单日期', align: 'center', width: 160, label: 'ISSUEDATE', type: 'dateRange', resLabel: ['BISSUEDATE', 'EISSUEDATE'] }
]
}

Loading…
Cancel
Save