feat(credit): 新增客户导入与数据导出功能
- 在信用客户模块中添加了导入客户的功能,支持通过文件上传方式导入客户数据 - 实现了多个信用相关模块的数据导出功能,包括企业、司法案件、风险关系、供应商及用户模块 - 更新了搜索组件以支持导出事件,并在各模块中实现了具体的导出逻辑 - 简化了部分表单项的标签显示并移除了冗余字段,优化了用户体验 - 修复了一些潜在的代码格式问题和不必要的注释块
This commit is contained in:
@@ -8,7 +8,20 @@ export async function stopReplace(data: any) {
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
const data = res.data.data;
|
||||
return data || [];
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function numberReplace(data: any) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/led/bme/number-sources',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
const data = res.data.data;
|
||||
return data || [];
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user