formatParans

zth
lijingjia 2 weeks ago
parent 1f40b27971
commit 5efb1faa0b

@ -135,38 +135,23 @@
}) })
} }
const searchForm = otherParams.concat(searchFormSchema) const searchForm = otherParams.concat(searchFormSchema)
console.log(searchForm)
let Rdata = formatParams( let Rdata = formatParams(
p, p,
searchForm, searchForm,
['contactInfo', 'isContractExpired', 'attributes'], ['contactInfo', 'isContractExpired', 'attributes'],
) )
// ----------------------- formatParams -------------------- if (p.etd) {
const now = dayjs()
// Rdata.queryCondition = JSON.parse(Rdata.queryCondition) const MonthsLater = now.add(p.etd, 'month')
// Rdata.queryCondition.forEach((e) => { let etd = JSON.parse(Rdata.queryCondition)
// if ( etd.forEach((item) => {
// e.FieldName == 'isCustomer' || if (item.FieldName == 'etd') {
// e.FieldName == 'isSupplier' || item.FieldValue = MonthsLater.format('YYYY-MM-DD')
// e.FieldName == 'isFrozen' item.ConditionalType = 2
// ) { }
// e.ConditionalType = 0 })
// } Rdata.queryCondition = JSON.stringify(etd)
// }) }
// Rdata.queryCondition = JSON.stringify(Rdata.queryCondition)
// // -------------------------------------------
// if (p.etd) {
// const now = dayjs()
// const MonthsLater = now.add(p.etd, 'month')
// let etd = JSON.parse(Rdata.queryCondition)
// etd.forEach((item) => {
// if (item.FieldName == 'etd') {
// item.FieldValue = MonthsLater.format('YYYY-MM-DD')
// item.ConditionalType = 2
// }
// })
// Rdata.queryCondition = JSON.stringify(etd)
// }
return Rdata return Rdata
}, },
columns, columns,

Loading…
Cancel
Save