feat(credit): 信用模块历史数据导入功能优化
- 为所有信用模块的导入组件添加companyId参数支持 - 在企业详情页面为各信用分类标签页添加历史数据导入按钮 - 移除独立的历史导入按钮,整合到企业详情页的对应标签页中 - 更新导入功能的API调用以传递关联企业ID - 修复法院公告相关组件的命名一致性问题 - 重构导入完成后的数据刷新逻辑以匹配新的标签页结构
This commit is contained in:
@@ -58,6 +58,94 @@
|
||||
>
|
||||
导入(多)
|
||||
</a-button>
|
||||
<a-button
|
||||
v-if="tab.key === '被执行人'"
|
||||
type="dashed"
|
||||
:disabled="!form.id"
|
||||
@click="openJudgmentDebtorHistoryImport"
|
||||
>
|
||||
<template #icon>
|
||||
<CloudUploadOutlined />
|
||||
</template>
|
||||
导入历史被执行人
|
||||
</a-button>
|
||||
<a-button
|
||||
v-if="tab.key === '限制高消费'"
|
||||
type="dashed"
|
||||
:disabled="!form.id"
|
||||
@click="openXgxfHistoryImport"
|
||||
>
|
||||
<template #icon>
|
||||
<CloudUploadOutlined />
|
||||
</template>
|
||||
导入历史限制高消费
|
||||
</a-button>
|
||||
<a-button
|
||||
v-if="tab.key === '终本案件'"
|
||||
type="dashed"
|
||||
:disabled="!form.id"
|
||||
@click="openFinalVersionHistoryImport"
|
||||
>
|
||||
<template #icon>
|
||||
<CloudUploadOutlined />
|
||||
</template>
|
||||
导入历史终本案件
|
||||
</a-button>
|
||||
<a-button
|
||||
v-if="tab.key === '开庭公告'"
|
||||
type="dashed"
|
||||
:disabled="!form.id"
|
||||
@click="openCourtSessionHistoryImport"
|
||||
>
|
||||
<template #icon>
|
||||
<CloudUploadOutlined />
|
||||
</template>
|
||||
导入历史开庭公告
|
||||
</a-button>
|
||||
<a-button
|
||||
v-if="tab.key === '法院公告'"
|
||||
type="dashed"
|
||||
:disabled="!form.id"
|
||||
@click="openCourtAnnouncementHistoryImport"
|
||||
>
|
||||
<template #icon>
|
||||
<CloudUploadOutlined />
|
||||
</template>
|
||||
导入历史法院公告
|
||||
</a-button>
|
||||
<a-button
|
||||
v-if="tab.key === '失信被执行人'"
|
||||
type="dashed"
|
||||
:disabled="!form.id"
|
||||
@click="openBreachOfTrustHistoryImport"
|
||||
>
|
||||
<template #icon>
|
||||
<CloudUploadOutlined />
|
||||
</template>
|
||||
导入历史失信被执行人
|
||||
</a-button>
|
||||
<a-button
|
||||
v-if="tab.key === '裁判文书'"
|
||||
type="dashed"
|
||||
:disabled="!form.id"
|
||||
@click="openJudicialDocumentHistoryImport"
|
||||
>
|
||||
<template #icon>
|
||||
<CloudUploadOutlined />
|
||||
</template>
|
||||
导入历史裁判文书
|
||||
</a-button>
|
||||
<a-button
|
||||
v-if="tab.key === '股权冻结'"
|
||||
type="dashed"
|
||||
:disabled="!form.id"
|
||||
@click="openGqdjHistoryImport"
|
||||
>
|
||||
<template #icon>
|
||||
<CloudUploadOutlined />
|
||||
</template>
|
||||
导入历史股权冻结
|
||||
</a-button>
|
||||
<a-button
|
||||
v-if="tab.key === '破产重整'"
|
||||
type="dashed"
|
||||
@@ -127,6 +215,62 @@
|
||||
:companyId="form.id"
|
||||
@done="handleBankruptcyHistoryImportDone"
|
||||
/>
|
||||
|
||||
<!-- 历史被执行人导入(企业详情-被执行人tab) -->
|
||||
<CreditJudgmentDebtorHistoryImport
|
||||
v-model:visible="showJudgmentDebtorHistoryImport"
|
||||
:companyId="form.id"
|
||||
@done="handleJudgmentDebtorHistoryImportDone"
|
||||
/>
|
||||
|
||||
<!-- 历史限制高消费导入(企业详情-限制高消费tab) -->
|
||||
<CreditXgxfHistoryImport
|
||||
v-model:visible="showXgxfHistoryImport"
|
||||
:companyId="form.id"
|
||||
@done="handleXgxfHistoryImportDone"
|
||||
/>
|
||||
|
||||
<!-- 历史终本案件导入(企业详情-终本案件tab) -->
|
||||
<CreditFinalVersionHistoryImport
|
||||
v-model:visible="showFinalVersionHistoryImport"
|
||||
:companyId="form.id"
|
||||
@done="handleFinalVersionHistoryImportDone"
|
||||
/>
|
||||
|
||||
<!-- 历史开庭公告导入(企业详情-开庭公告tab) -->
|
||||
<CreditCourtSessionHistoryImport
|
||||
v-model:visible="showCourtSessionHistoryImport"
|
||||
:companyId="form.id"
|
||||
@done="handleCourtSessionHistoryImportDone"
|
||||
/>
|
||||
|
||||
<!-- 历史法院公告导入(企业详情-法院公告tab) -->
|
||||
<CreditCourtAnnouncementHistoryImport
|
||||
v-model:visible="showCourtAnnouncementHistoryImport"
|
||||
:companyId="form.id"
|
||||
@done="handleCourtAnnouncementHistoryImportDone"
|
||||
/>
|
||||
|
||||
<!-- 历史失信被执行人导入(企业详情-失信被执行人tab) -->
|
||||
<CreditBreachOfTrustHistoryImport
|
||||
v-model:visible="showBreachOfTrustHistoryImport"
|
||||
:companyId="form.id"
|
||||
@done="handleBreachOfTrustHistoryImportDone"
|
||||
/>
|
||||
|
||||
<!-- 历史裁判文书导入(企业详情-裁判文书tab) -->
|
||||
<CreditJudicialDocumentHistoryImport
|
||||
v-model:visible="showJudicialDocumentHistoryImport"
|
||||
:companyId="form.id"
|
||||
@done="handleJudicialDocumentHistoryImportDone"
|
||||
/>
|
||||
|
||||
<!-- 历史股权冻结导入(企业详情-股权冻结tab) -->
|
||||
<CreditGqdjHistoryImport
|
||||
v-model:visible="showGqdjHistoryImport"
|
||||
:companyId="form.id"
|
||||
@done="handleGqdjHistoryImportDone"
|
||||
/>
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
@@ -141,6 +285,14 @@
|
||||
import CreditCompanyRelatedImport from './credit-company-related-import.vue';
|
||||
import CreditAdministrativeLicenseHistoryImport from '@/views/credit/creditAdministrativeLicense/components/credit-administrative-license-history-import.vue';
|
||||
import CreditBankruptcyHistoryImport from '@/views/credit/creditBankruptcy/components/credit-bankruptcy-history-import.vue';
|
||||
import CreditJudgmentDebtorHistoryImport from '@/views/credit/creditJudgmentDebtor/components/credit-judgment-debtor-history-import.vue';
|
||||
import CreditXgxfHistoryImport from '@/views/credit/creditXgxf/components/credit-xgxf-history-import.vue';
|
||||
import CreditFinalVersionHistoryImport from '@/views/credit/creditFinalVersion/components/credit-final-version-history-import.vue';
|
||||
import CreditCourtSessionHistoryImport from '@/views/credit/creditCourtSession/components/credit-court-session-history-import.vue';
|
||||
import CreditCourtAnnouncementHistoryImport from '@/views/credit/creditCourtAnnouncement/components/credit-court-announcement-history-import.vue';
|
||||
import CreditBreachOfTrustHistoryImport from '@/views/credit/creditBreachOfTrust/components/credit-breach-of-trust-history-import.vue';
|
||||
import CreditJudicialDocumentHistoryImport from '@/views/credit/creditJudicialDocument/components/credit-judicial-document-history-import.vue';
|
||||
import CreditGqdjHistoryImport from '@/views/credit/creditGqdj/components/credit-gqdj-history-import.vue';
|
||||
import {
|
||||
pageCreditAdministrativeLicense,
|
||||
importCreditAdministrativeLicense
|
||||
@@ -1351,6 +1503,134 @@
|
||||
reloadTab('破产重整');
|
||||
};
|
||||
|
||||
// 历史被执行人导入弹窗(企业详情-被执行人tab)
|
||||
const showJudgmentDebtorHistoryImport = ref(false);
|
||||
|
||||
const openJudgmentDebtorHistoryImport = () => {
|
||||
if (!form.id) {
|
||||
message.error('缺少企业ID,无法导入');
|
||||
return;
|
||||
}
|
||||
showJudgmentDebtorHistoryImport.value = true;
|
||||
};
|
||||
|
||||
const handleJudgmentDebtorHistoryImportDone = () => {
|
||||
resetTabPagination('被执行人');
|
||||
reloadTab('被执行人');
|
||||
};
|
||||
|
||||
// 历史限制高消费导入弹窗(企业详情-限制高消费tab)
|
||||
const showXgxfHistoryImport = ref(false);
|
||||
|
||||
const openXgxfHistoryImport = () => {
|
||||
if (!form.id) {
|
||||
message.error('缺少企业ID,无法导入');
|
||||
return;
|
||||
}
|
||||
showXgxfHistoryImport.value = true;
|
||||
};
|
||||
|
||||
const handleXgxfHistoryImportDone = () => {
|
||||
resetTabPagination('限制高消费');
|
||||
reloadTab('限制高消费');
|
||||
};
|
||||
|
||||
// 历史终本案件导入弹窗(企业详情-终本案件tab)
|
||||
const showFinalVersionHistoryImport = ref(false);
|
||||
|
||||
const openFinalVersionHistoryImport = () => {
|
||||
if (!form.id) {
|
||||
message.error('缺少企业ID,无法导入');
|
||||
return;
|
||||
}
|
||||
showFinalVersionHistoryImport.value = true;
|
||||
};
|
||||
|
||||
const handleFinalVersionHistoryImportDone = () => {
|
||||
resetTabPagination('终本案件');
|
||||
reloadTab('终本案件');
|
||||
};
|
||||
|
||||
// 历史开庭公告导入弹窗(企业详情-开庭公告tab)
|
||||
const showCourtSessionHistoryImport = ref(false);
|
||||
|
||||
const openCourtSessionHistoryImport = () => {
|
||||
if (!form.id) {
|
||||
message.error('缺少企业ID,无法导入');
|
||||
return;
|
||||
}
|
||||
showCourtSessionHistoryImport.value = true;
|
||||
};
|
||||
|
||||
const handleCourtSessionHistoryImportDone = () => {
|
||||
resetTabPagination('开庭公告');
|
||||
reloadTab('开庭公告');
|
||||
};
|
||||
|
||||
// 历史法院公告导入弹窗(企业详情-法院公告tab)
|
||||
const showCourtAnnouncementHistoryImport = ref(false);
|
||||
|
||||
const openCourtAnnouncementHistoryImport = () => {
|
||||
if (!form.id) {
|
||||
message.error('缺少企业ID,无法导入');
|
||||
return;
|
||||
}
|
||||
showCourtAnnouncementHistoryImport.value = true;
|
||||
};
|
||||
|
||||
const handleCourtAnnouncementHistoryImportDone = () => {
|
||||
resetTabPagination('法院公告');
|
||||
reloadTab('法院公告');
|
||||
};
|
||||
|
||||
// 历史失信被执行人导入弹窗(企业详情-失信被执行人tab)
|
||||
const showBreachOfTrustHistoryImport = ref(false);
|
||||
|
||||
const openBreachOfTrustHistoryImport = () => {
|
||||
if (!form.id) {
|
||||
message.error('缺少企业ID,无法导入');
|
||||
return;
|
||||
}
|
||||
showBreachOfTrustHistoryImport.value = true;
|
||||
};
|
||||
|
||||
const handleBreachOfTrustHistoryImportDone = () => {
|
||||
resetTabPagination('失信被执行人');
|
||||
reloadTab('失信被执行人');
|
||||
};
|
||||
|
||||
// 历史裁判文书导入弹窗(企业详情-裁判文书tab)
|
||||
const showJudicialDocumentHistoryImport = ref(false);
|
||||
|
||||
const openJudicialDocumentHistoryImport = () => {
|
||||
if (!form.id) {
|
||||
message.error('缺少企业ID,无法导入');
|
||||
return;
|
||||
}
|
||||
showJudicialDocumentHistoryImport.value = true;
|
||||
};
|
||||
|
||||
const handleJudicialDocumentHistoryImportDone = () => {
|
||||
resetTabPagination('裁判文书');
|
||||
reloadTab('裁判文书');
|
||||
};
|
||||
|
||||
// 历史股权冻结导入弹窗(企业详情-股权冻结tab)
|
||||
const showGqdjHistoryImport = ref(false);
|
||||
|
||||
const openGqdjHistoryImport = () => {
|
||||
if (!form.id) {
|
||||
message.error('缺少企业ID,无法导入');
|
||||
return;
|
||||
}
|
||||
showGqdjHistoryImport.value = true;
|
||||
};
|
||||
|
||||
const handleGqdjHistoryImportDone = () => {
|
||||
resetTabPagination('股权冻结');
|
||||
reloadTab('股权冻结');
|
||||
};
|
||||
|
||||
const defaultForm: CreditCompany = {
|
||||
id: undefined,
|
||||
name: undefined,
|
||||
|
||||
Reference in New Issue
Block a user