From 6150236abc277156ccec29b5e6d4b71b2c82ee49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Thu, 7 Nov 2024 10:50:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E8=A7=A3=E5=86=B3=20?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=20=E4=BE=9B=E5=BA=94=E5=95=86=20formatParams?= =?UTF-8?q?=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/baseinfo/infoclient/index.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/views/baseinfo/infoclient/index.vue b/src/views/baseinfo/infoclient/index.vue index fb070713..dcce582c 100644 --- a/src/views/baseinfo/infoclient/index.vue +++ b/src/views/baseinfo/infoclient/index.vue @@ -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')