feat(credit): 添加被执行人企业归属修正功能和历史行政许可导入功能

- 新增 refreshCreditJudgmentDebtorCompanyId API 接口用于修正被执行人主体企业归属
- 在信用判断债务人页面添加修正主体企业归属按钮功能
- 修改行政许可历史导入组件支持传入企业ID参数
- 移除重复的历史行政许可导入按钮和弹窗组件
- 在企业详情页面的行政许可标签页添加历史行政许可导入按钮
- 更新多个信用模块的搜索工具栏引用路径
- 隐藏司法相关搜索组件中的导入按钮
This commit is contained in:
2026-01-20 17:25:08 +08:00
parent c711c3dfe6
commit 4ee9a90ab3
12 changed files with 101 additions and 37 deletions

View File

@@ -125,7 +125,8 @@
pageCreditJudgmentDebtor,
listCreditJudgmentDebtor,
removeCreditJudgmentDebtor,
removeBatchCreditJudgmentDebtor
removeBatchCreditJudgmentDebtor,
refreshCreditJudgmentDebtorCompanyId
} from '@/api/credit/creditJudgmentDebtor';
import type {
CreditJudgmentDebtor,
@@ -359,6 +360,30 @@
});
};
/* 修正主体企业归属(按企业名称匹配回填 companyId */
const belongToCompany = () => {
Modal.confirm({
title: '提示',
content:
'将按被执行人名称匹配企业名称并回填 companyId默认仅更新 companyId 为0的数据确定要执行吗',
icon: createVNode(ExclamationCircleOutlined),
maskClosable: true,
onOk: () => {
const hide = message.loading('请求中..', 0);
return refreshCreditJudgmentDebtorCompanyId({ onlyNull: true })
.then((msg) => {
hide();
message.success(msg || '操作成功');
reload();
})
.catch((e) => {
hide();
message.error(e.message);
});
}
});
};
/* 查询 */
const query = () => {
loading.value = true;