From 3f019c9ac5bfa68c0fb00276da8ed8148dffccc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com> Date: Wed, 21 Oct 2026 17:37:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=A2=E5=95=86=E6=A1=A3=E6=A1=88?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A3=8E=E9=99=A9=E5=88=97=E4=B8=8E=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E5=AE=A2=E5=95=86=E5=90=8D=E7=A7=B0=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 列表新增客商风险列(批量查询,标签按后端 riskLevelName 转义,悬浮显示风险项明细);客商档案表单名称框下高风险/黑名单红字提示(失焦/回显/OCR/金蝶回填触发,查询失败静默) --- src/api/business/hcs.js | 18 +++++ src/views/vehicle/customer-archive.vue | 103 +++++++++++++++++++++++++ 2 files changed, 121 insertions(+) diff --git a/src/api/business/hcs.js b/src/api/business/hcs.js index 8ccfd1b..47012a2 100644 --- a/src/api/business/hcs.js +++ b/src/api/business/hcs.js @@ -40,6 +40,24 @@ export const getRisk = customerCode => timeout: 30000, }); +// 客商风险批量查询(客商列表页展示用):入参编号数组,后端逐个查 C101-1,单个失败跳过 +export const getRiskBatch = customerCodes => + request({ + url: `${baseUrl}/risk/batch`, + method: 'get', + params: { customerCodes: (customerCodes || []).join(',') }, + timeout: 60000, + }); + +// 客商风险按名称查询(客商档案表单展示用):名称反查编号后口径同编号查询 +export const getRiskByName = customerName => + request({ + url: `${baseUrl}/risk/by-name`, + method: 'get', + params: { customerName }, + timeout: 30000, + }); + export const uploadAttachment = formData => request({ url: `${baseUrl}/attachment/upload`, diff --git a/src/views/vehicle/customer-archive.vue b/src/views/vehicle/customer-archive.vue index 52ef5a6..6805c42 100644 --- a/src/views/vehicle/customer-archive.vue +++ b/src/views/vehicle/customer-archive.vue @@ -47,6 +47,29 @@ {{ row.customerCode }} +