fix: 客商列表黑名单标签判定改为仅金蝶黑名单命中(与后端口径一致)
This commit is contained in:
@@ -5556,9 +5556,13 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 黑名单判定:仅以金蝶黑名单(A801-5)命中为准(失信类别/列入事由任一非空);C101-1 的 hcsBlackStatus 不作为黑名单依据
|
||||||
|
customerRowIsBlack(row) {
|
||||||
|
return !!(row.kingdeeBlackCategory || row.kingdeeBlackReason);
|
||||||
|
},
|
||||||
// 客商风险名称(每日定时刷新落库字段):等级与黑名单组合展示(如"低风险、黑名单");内部组织默认无风险;未查询显示"-"
|
// 客商风险名称(每日定时刷新落库字段):等级与黑名单组合展示(如"低风险、黑名单");内部组织默认无风险;未查询显示"-"
|
||||||
customerRowRiskName(row) {
|
customerRowRiskName(row) {
|
||||||
const isBlack = row.hcsBlackStatus === 'yes';
|
const isBlack = this.customerRowIsBlack(row);
|
||||||
const levelName = { 2: '高风险', 1: '中风险', 0: '低风险' }[row.hcsRiskLevel] || '';
|
const levelName = { 2: '高风险', 1: '中风险', 0: '低风险' }[row.hcsRiskLevel] || '';
|
||||||
if (isBlack) return levelName ? `${levelName}、黑名单` : '黑名单';
|
if (isBlack) return levelName ? `${levelName}、黑名单` : '黑名单';
|
||||||
if (levelName) return levelName;
|
if (levelName) return levelName;
|
||||||
@@ -5567,7 +5571,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 高风险/黑名单判定(与列表筛选口径一致,命中显示红色标签)
|
// 高风险/黑名单判定(与列表筛选口径一致,命中显示红色标签)
|
||||||
customerRowRisky(row) {
|
customerRowRisky(row) {
|
||||||
return row.hcsBlackStatus === 'yes' || row.hcsRiskLevel === '2';
|
return this.customerRowIsBlack(row) || row.hcsRiskLevel === '2';
|
||||||
},
|
},
|
||||||
// 客商名称风险校验(C101-1,仅展示不作为安全边界):名称失焦/回显时查询,
|
// 客商名称风险校验(C101-1,仅展示不作为安全边界):名称失焦/回显时查询,
|
||||||
// risky 在名称框下展示红色提示,悬浮见风险项明细;查询失败静默不阻断填写,提交链路由后端强校验兜底
|
// risky 在名称框下展示红色提示,悬浮见风险项明细;查询失败静默不阻断填写,提交链路由后端强校验兜底
|
||||||
|
|||||||
Reference in New Issue
Block a user