|
|
|
@ -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')
|
|
|
|
|