fix: 客商列表风险列黑名单与任意等级组合展示(如低风险、黑名单)

This commit is contained in:
刘泉佳
2026-10-30 11:44:55 +08:00
parent c6c7c80d97
commit 4d78466824
+5 -6
View File
@@ -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) {