临时解决 客户 供应商 formatParams 问题

zth
张同海 3 weeks ago
parent 30112fb9a1
commit 6150236abc

@ -132,13 +132,25 @@
} else if (route.path == '/Supplierinfoclient') {
p.isSupplier = 1
}
console.log(p)
let Rdata = formatParams(
p,
['isCustomer', 'isSupplier', 'isFrozen'],
['contactInfo', 'isContractExpired', 'clientTag'],
)
// ----------------------- formatParams --------------------
// console.log(, 111111111)
Rdata.queryCondition = JSON.parse(Rdata.queryCondition)
Rdata.queryCondition.forEach((e) => {
if (
e.FieldName == 'isCustomer' ||
e.FieldName == 'isSupplier' ||
e.FieldName == 'isFrozen'
) {
e.ConditionalType = 0
}
})
Rdata.queryCondition = JSON.stringify(Rdata.queryCondition)
// -------------------------------------------
if (p.etd) {
const now = dayjs()
const MonthsLater = now.add(p.etd, 'month')

Loading…
Cancel
Save