feat: 客商档案列表风险列与表单客商名称风险提示
列表新增客商风险列(批量查询,标签按后端 riskLevelName 转义,悬浮显示风险项明细);客商档案表单名称框下高风险/黑名单红字提示(失焦/回显/OCR/金蝶回填触发,查询失败静默)
This commit is contained in:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user