From 4d784668241b4d7c13c5e549dbd527c5a9a52885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com> Date: Fri, 30 Oct 2026 11:44:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=A2=E5=95=86=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A3=8E=E9=99=A9=E5=88=97=E9=BB=91=E5=90=8D=E5=8D=95=E4=B8=8E?= =?UTF-8?q?=E4=BB=BB=E6=84=8F=E7=AD=89=E7=BA=A7=E7=BB=84=E5=90=88=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=EF=BC=88=E5=A6=82=E4=BD=8E=E9=A3=8E=E9=99=A9=E3=80=81?= =?UTF-8?q?=E9=BB=91=E5=90=8D=E5=8D=95=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/vehicle/customer-archive.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/vehicle/customer-archive.vue b/src/views/vehicle/customer-archive.vue index 5b2718b..fad6f46 100644 --- a/src/views/vehicle/customer-archive.vue +++ b/src/views/vehicle/customer-archive.vue @@ -5558,15 +5558,14 @@ export default { this.loading = false; }); }, - // 客商风险名称(每日定时刷新落库字段):内部组织客商默认无风险;黑名单与高风险组合展示;未查询显示"-" + // 客商风险名称(每日定时刷新落库字段):等级与黑名单组合展示(如"低风险、黑名单");内部组织默认无风险;未查询显示"-" customerRowRiskName(row) { const isBlack = row.hcsBlackStatus === 'yes'; - const isHigh = row.hcsRiskLevel === '2'; - if (isBlack && isHigh) return '高风险、黑名单'; - if (isHigh) return '高风险'; - if (isBlack) return '黑名单'; + const levelName = { 2: '高风险', 1: '中风险', 0: '低风险' }[row.hcsRiskLevel] || ''; + if (isBlack) return levelName ? `${levelName}、黑名单` : '黑名单'; + if (levelName) return levelName; if (row.customerKind === 'internal') return '无风险'; - return { 1: '中风险', 0: '低风险' }[row.hcsRiskLevel] || ''; + return ''; }, // 高风险/黑名单判定(与列表筛选口径一致,命中显示红色标签) customerRowRisky(row) {