查询bug修复

zth
lijingjia 3 weeks ago
parent 2f08edf724
commit 77f4916d6b

@ -194,8 +194,19 @@ export function formatParams(params = {}, equal: any = [], otherQuery: any = [])
const orKeys = key.split(':')
const ConditionalList = { ConditionalList: [] }
if (params[key]) {
orKeys.forEach((item) => {
let obj = {
orKeys.forEach((item, index) => {
let obj = []
if (index == 0) {
obj = {
Key: 0,
Value: {
FieldName: item,
FieldValue: params[key],
ConditionalType: 1,
},
}
} else {
obj = {
Key: 1,
Value: {
FieldName: item,
@ -203,13 +214,13 @@ export function formatParams(params = {}, equal: any = [], otherQuery: any = [])
ConditionalType: 1,
},
}
}
ConditionalList.ConditionalList.push(obj)
})
conditions.push(ConditionalList)
}
} else {
let isEqual = false
if (equal.length) {
isEqual = equal.includes(key)
}

@ -139,7 +139,7 @@
//
const allApprove = () => {
OneClickAudit({
status: 1,
result: 1,
remark: '通过'
}).then(res => {
props.reload()

@ -585,7 +585,7 @@ export const searchFormSchema: FormSchema[] = [
{
field: 'accountDate',
label: '会计期间',
component: 'DatePicker',
component: 'RangePicker',
colProps: { span: 4 },
componentProps: {
allowClear: true,
@ -595,7 +595,7 @@ export const searchFormSchema: FormSchema[] = [
{
field: 'etd',
label: '开船日期',
component: 'DatePicker',
component: 'RangePicker',
required: false,
dynamicDisabled: false,
colProps: { span: 4 },

Loading…
Cancel
Save