国内海外高级检索查询

This commit is contained in:
宋伟佳
2022-03-30 17:54:23 +08:00
parent dfa2794a9e
commit c7fce8b958
2 changed files with 58 additions and 10 deletions
@@ -4617,14 +4617,16 @@ export default {
}); });
} }
} }
if(item.advanceSearchVOStr){ if(item){
advanceSearchVOList.push({ if(item.advanceSearchVOStr.length){
connect: item.advanceSearchVOStr[0].connect, advanceSearchVOList.push({
field: item.advanceSearchVOStr[0].field, connect: item.advanceSearchVOStr[0].connect,
type: item.advanceSearchVOStr[0].type, field: item.advanceSearchVOStr[0].field,
value: item.advanceSearchVOStr[0].value, type: item.advanceSearchVOStr[0].type,
}) value: item.advanceSearchVOStr[0].value,
} })
}
}
formData.advanceSearchVOStr = JSON.stringify(advanceSearchVOList) formData.advanceSearchVOStr = JSON.stringify(advanceSearchVOList)
this.SarExportSearchEo = formData this.SarExportSearchEo = formData
formData.startIssueTime = formData.issueTime ? formData.issueTime[0] : null formData.startIssueTime = formData.issueTime ? formData.issueTime[0] : null
@@ -3150,6 +3150,43 @@ export default {
}, },
// 搜索 // 搜索
getDomesticStandardTableBtn(item) { getDomesticStandardTableBtn(item) {
// // 自定义属性字段高级搜索处理
//advanceSearchVOStr
const advanceSearchVOList = [];
for (let key in this.advanceSearchMapping) {
const value = this.advanceSearchMapping[key];
if (value !== null && value !== '' && (key === 'NYLX' || key === 'SYRZ' || key === 'SYCPX' || (item.CLLX && item.CLLX.length > 0))) {
advanceSearchVOList.push({
connect: "and",
field: key || '',
type: 'regexp',
value: value.join(',')
});
} else if (value !== null && value !== '' && (key === 'SSRQ' || key === 'XCXSSRQ' || key === 'ZCCSSRQ')) {
advanceSearchVOList.push({
connect: "and",
field: key || '',
type: 'between',
value: value.join(',')
});
} else if (value !== null && value !== '' && (key === 'BARQ')) {
advanceSearchVOList.push({
connect: "and",
field: key || '',
type: 'equals',
value: value
});
} else if (value !== null && value !== '') {
advanceSearchVOList.push({
connect: "and",
field: key || '',
type: 'like',
value: value
});
}
}
item.advanceSearchVOStr = advanceSearchVOList
sessionStorage.setItem('tableFlag', JSON.stringify(item))
item.page = 1 item.page = 1
this.standCommonlySearch.page = 1 this.standCommonlySearch.page = 1
this.standCommonlySearch.sarStandardsSearch = JSON.stringify(item) || '' this.standCommonlySearch.sarStandardsSearch = JSON.stringify(item) || ''
@@ -3860,7 +3897,6 @@ export default {
* 1、空:普通检索 2:高级检索 * 1、空:普通检索 2:高级检索
* */ * */
getDomesticStandardTable(item) { getDomesticStandardTable(item) {
// if (item === 2) { // if (item === 2) {
// data.standSort = '' // data.standSort = ''
// data.standNumber = '' // data.standNumber = ''
@@ -3939,7 +3975,17 @@ export default {
} }
} }
formData.advanceSearchVOStr = JSON.stringify(advanceSearchVOList); if(item){
if(item.advanceSearchVOStr.length){
advanceSearchVOList.push({
connect: item.advanceSearchVOStr[0].connect,
field: item.advanceSearchVOStr[0].field,
type: item.advanceSearchVOStr[0].type,
value: item.advanceSearchVOStr[0].value,
})
}
}
formData.advanceSearchVOStr = JSON.stringify(advanceSearchVOList)
this.SarExportSearchEo = formData this.SarExportSearchEo = formData
formData.startIssueTime = formData.issueTime ? formData.issueTime[0] : null formData.startIssueTime = formData.issueTime ? formData.issueTime[0] : null
formData.endIssueTime = formData.issueTime ? formData.issueTime[1] : null formData.endIssueTime = formData.issueTime ? formData.issueTime[1] : null