From b76ada9d6cb0d9f16bc08a4a88b51613a99f20ff 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 20:53:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E4=BF=A1=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=97=B6=E5=90=8C=E6=AD=A5=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E5=AE=A2=E5=95=86=E5=90=8D=E7=A7=B0=E4=B8=8B=E9=A3=8E=E9=99=A9?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/vehicle/customer-archive.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/vehicle/customer-archive.vue b/src/views/vehicle/customer-archive.vue index 8f918e7..0c701e5 100644 --- a/src/views/vehicle/customer-archive.vue +++ b/src/views/vehicle/customer-archive.vue @@ -2509,6 +2509,7 @@ export default { handleKingdeeCreditCodeChange(val) { this.kingdeeBlocked = false; if (this.readonly || this.archiveForm.id) return; + this.clearArchiveNameRisk(); if (this.archiveForm.kingdeeStatus === 'exist') { this.resetKingdeeBackfill(); } @@ -5605,17 +5606,21 @@ export default { }, // 客商名称风险校验(C101-1,仅展示不作为安全边界):名称失焦/回显时查询, // risky 在名称框下展示红色提示,悬浮见风险项明细;查询失败静默不阻断填写,提交链路由后端强校验兜底 - checkArchiveNameRisk() { + // 清空客商名称下风险提示(信用代码变化后原按旧编号+信用代码查询的结果失效) + clearArchiveNameRisk() { this.archiveNameRisky = false; this.archiveNameRiskTip = ''; this.archiveNameRiskLabel = ''; + }, + checkArchiveNameRisk() { + this.clearArchiveNameRisk(); const customerName = String(this.archiveForm.fullName || '').trim(); if (!customerName) return; // 新增客商档案本地反查不到编号:金蝶带出后表单已有客商编号,优先按编号查 C101-1, // 并传信用代码供金蝶黑名单(A801-5)兜底;无编号时按名称反查档案 const customerCode = String(this.archiveForm.customerCode || '').trim(); const request = customerCode - ? getRisk(customerCode, String(this.archiveForm.unifiedCreditCode || '').trim()) + ? getRisk(customerCode, String(this.archiveForm.unifiedCreditCode || '').trim(), customerName) : getRiskByName(customerName); request .then(res => {