feat(credit): 添加被执行人企业归属修正功能和历史行政许可导入功能
- 新增 refreshCreditJudgmentDebtorCompanyId API 接口用于修正被执行人主体企业归属 - 在信用判断债务人页面添加修正主体企业归属按钮功能 - 修改行政许可历史导入组件支持传入企业ID参数 - 移除重复的历史行政许可导入按钮和弹窗组件 - 在企业详情页面的行政许可标签页添加历史行政许可导入按钮 - 更新多个信用模块的搜索工具栏引用路径 - 隐藏司法相关搜索组件中的导入按钮
This commit is contained in:
@@ -49,6 +49,16 @@
|
||||
>
|
||||
导入(多)
|
||||
</a-button>
|
||||
<a-button
|
||||
v-if="tab.key === '行政许可'"
|
||||
:disabled="!form.id"
|
||||
@click="openAdministrativeLicenseHistoryImport"
|
||||
>
|
||||
<template #icon>
|
||||
<CloudUploadOutlined />
|
||||
</template>
|
||||
导入历史行政许可
|
||||
</a-button>
|
||||
<a-button
|
||||
:loading="tabState[tab.key].loading"
|
||||
@click="reloadTab(tab.key)"
|
||||
@@ -82,17 +92,26 @@
|
||||
:importFn="relatedImportFn"
|
||||
@done="handleRelatedImportDone"
|
||||
/>
|
||||
|
||||
<!-- 历史行政许可导入(企业详情-行政许可tab) -->
|
||||
<CreditAdministrativeLicenseHistoryImport
|
||||
v-model:visible="showAdministrativeLicenseHistoryImport"
|
||||
:companyId="form.id"
|
||||
@done="handleAdministrativeLicenseHistoryImportDone"
|
||||
/>
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed, h, reactive, ref, watch } from 'vue';
|
||||
import { message } from 'ant-design-vue';
|
||||
import { CloudUploadOutlined } from '@ant-design/icons-vue';
|
||||
import { assignObject } from 'ele-admin-pro';
|
||||
import { CreditCompany } from '@/api/credit/creditCompany/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import CreditCompanyRelatedImport from './credit-company-related-import.vue';
|
||||
import CreditAdministrativeLicenseHistoryImport from '@/views/credit/creditAdministrativeLicense/components/credit-administrative-license-history-import.vue';
|
||||
import {
|
||||
pageCreditAdministrativeLicense,
|
||||
importCreditAdministrativeLicense
|
||||
@@ -951,6 +970,22 @@
|
||||
reloadTab(activeTab.value);
|
||||
};
|
||||
|
||||
// 历史行政许可导入弹窗(企业详情-行政许可tab)
|
||||
const showAdministrativeLicenseHistoryImport = ref(false);
|
||||
|
||||
const openAdministrativeLicenseHistoryImport = () => {
|
||||
if (!form.id) {
|
||||
message.error('缺少企业ID,无法导入');
|
||||
return;
|
||||
}
|
||||
showAdministrativeLicenseHistoryImport.value = true;
|
||||
};
|
||||
|
||||
const handleAdministrativeLicenseHistoryImportDone = () => {
|
||||
resetTabPagination('行政许可');
|
||||
reloadTab('行政许可');
|
||||
};
|
||||
|
||||
const defaultForm: CreditCompany = {
|
||||
id: undefined,
|
||||
name: undefined,
|
||||
|
||||
Reference in New Issue
Block a user