fix: 修改信用代码时同步清空客商名称下风险提示
This commit is contained in:
@@ -2509,6 +2509,7 @@ export default {
|
|||||||
handleKingdeeCreditCodeChange(val) {
|
handleKingdeeCreditCodeChange(val) {
|
||||||
this.kingdeeBlocked = false;
|
this.kingdeeBlocked = false;
|
||||||
if (this.readonly || this.archiveForm.id) return;
|
if (this.readonly || this.archiveForm.id) return;
|
||||||
|
this.clearArchiveNameRisk();
|
||||||
if (this.archiveForm.kingdeeStatus === 'exist') {
|
if (this.archiveForm.kingdeeStatus === 'exist') {
|
||||||
this.resetKingdeeBackfill();
|
this.resetKingdeeBackfill();
|
||||||
}
|
}
|
||||||
@@ -5605,17 +5606,21 @@ export default {
|
|||||||
},
|
},
|
||||||
// 客商名称风险校验(C101-1,仅展示不作为安全边界):名称失焦/回显时查询,
|
// 客商名称风险校验(C101-1,仅展示不作为安全边界):名称失焦/回显时查询,
|
||||||
// risky 在名称框下展示红色提示,悬浮见风险项明细;查询失败静默不阻断填写,提交链路由后端强校验兜底
|
// risky 在名称框下展示红色提示,悬浮见风险项明细;查询失败静默不阻断填写,提交链路由后端强校验兜底
|
||||||
checkArchiveNameRisk() {
|
// 清空客商名称下风险提示(信用代码变化后原按旧编号+信用代码查询的结果失效)
|
||||||
|
clearArchiveNameRisk() {
|
||||||
this.archiveNameRisky = false;
|
this.archiveNameRisky = false;
|
||||||
this.archiveNameRiskTip = '';
|
this.archiveNameRiskTip = '';
|
||||||
this.archiveNameRiskLabel = '';
|
this.archiveNameRiskLabel = '';
|
||||||
|
},
|
||||||
|
checkArchiveNameRisk() {
|
||||||
|
this.clearArchiveNameRisk();
|
||||||
const customerName = String(this.archiveForm.fullName || '').trim();
|
const customerName = String(this.archiveForm.fullName || '').trim();
|
||||||
if (!customerName) return;
|
if (!customerName) return;
|
||||||
// 新增客商档案本地反查不到编号:金蝶带出后表单已有客商编号,优先按编号查 C101-1,
|
// 新增客商档案本地反查不到编号:金蝶带出后表单已有客商编号,优先按编号查 C101-1,
|
||||||
// 并传信用代码供金蝶黑名单(A801-5)兜底;无编号时按名称反查档案
|
// 并传信用代码供金蝶黑名单(A801-5)兜底;无编号时按名称反查档案
|
||||||
const customerCode = String(this.archiveForm.customerCode || '').trim();
|
const customerCode = String(this.archiveForm.customerCode || '').trim();
|
||||||
const request = customerCode
|
const request = customerCode
|
||||||
? getRisk(customerCode, String(this.archiveForm.unifiedCreditCode || '').trim())
|
? getRisk(customerCode, String(this.archiveForm.unifiedCreditCode || '').trim(), customerName)
|
||||||
: getRiskByName(customerName);
|
: getRiskByName(customerName);
|
||||||
request
|
request
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user