feat(credit): 添加历史数据导入功能和操作人字段

- 在多个信用模块API中新增历史数据导入功能,包括行政许可、破产重整、失信被执行人、开庭公告、终本案件等
- 为信用相关页面表格增加操作人(realName)字段显示
- 新增历史数据导入弹窗组件,支持Excel文件上传和模板下载
- 实现导入历史数据的API接口函数,支持文件和公司ID参数
- 优化信用模块页面UI布局,添加历史导入按钮和相关组件引用
This commit is contained in:
2026-01-20 02:17:36 +08:00
parent 7890ec07d8
commit 183967ea4a
47 changed files with 1372 additions and 21 deletions

View File

@@ -127,3 +127,27 @@ export async function importCreditXgxf(file: File, companyId?: number) {
}
return Promise.reject(new Error(res.data.message));
}
/**
* 导入历史限制高消费
*/
export async function importCreditXgxfHistory(file: File, companyId?: number) {
const formData = new FormData();
formData.append('file', file);
if (companyId != null) {
formData.append('companyId', String(companyId));
}
const res = await request.post<ApiResult<unknown>>(
'/credit/credit-xgxf/import/history',
formData,
{
headers: {
'Content-Type': 'multipart/form-data'
}
}
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}