feat(credit): 重构企业信息展示组件为只读详情页
- 将原有的表单编辑模式改为只读的描述列表展示 - 新增多个企业相关字段的展示支持 - 集成Tabs组件展示企业相关的多维度信息 - 实现企业关联信息的异步加载与展示 - 添加数据格式化处理函数提升展示效果 - 移除原有表单提交相关逻辑和验证规则 - 新增企业相关信息接口调用方法 - 优化组件结构与数据流管理逻辑
This commit is contained in:
@@ -124,3 +124,22 @@ export async function importCreditCompany(file: File) {
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据企业匹配名称查询关联信息
|
||||
*/
|
||||
export async function getCompanyRelatedInfo(params: {
|
||||
type: string;
|
||||
keywords: string;
|
||||
}) {
|
||||
const res = await request.get<ApiResult<Record<string, any>[]>>(
|
||||
'/credit/credit-company/related',
|
||||
{
|
||||
params
|
||||
}
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data ?? [];
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user