feat(credit): 新增企业信用管理模块
- 添加企业信息模型定义,包含企业基本信息、联系方式、行业分类等字段 - 实现企业信息的增删改查接口,支持分页查询和批量操作 - 开发企业信息管理页面,包含表格展示、搜索筛选功能 - 添加企业信息编辑弹窗,支持新增和修改企业信息 - 实现企业信息导入功能,支持Excel文件批量导入 - 添加企业信息导入模板下载功能 - 实现企业信息的状态管理和排序功能 - 添加企业信息的详情展示和操作按钮 - 实现企业信息的批量删除功能 - 添加企业信息的搜索功能,支持关键词模糊查询
This commit is contained in:
@@ -30,32 +30,32 @@
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-button type="primary">详情</a-button>
|
||||
<!-- <a-dropdown-button @click="handleButtonClick">-->
|
||||
<!-- 操作-->
|
||||
<!-- <template #overlay>-->
|
||||
<!-- <a-menu @click="handleMenuClick">-->
|
||||
<!-- <a-menu-item key="1">招投标</a-menu-item>-->
|
||||
<!-- <a-menu-item key="2">对外投资</a-menu-item>-->
|
||||
<!-- <a-menu-item key="3">风险关系</a-menu-item>-->
|
||||
<!-- <a-menu-item key="4">竞争对手</a-menu-item>-->
|
||||
<!-- <a-menu-item key="5">供应商</a-menu-item>-->
|
||||
<!-- <a-menu-item key="6">客户</a-menu-item>-->
|
||||
<!-- <a-menu-item key="7">立案信息</a-menu-item>-->
|
||||
<!-- <a-menu-item key="8">诉前调解</a-menu-item>-->
|
||||
<!-- <a-menu-item key="9">开庭公告</a-menu-item>-->
|
||||
<!-- <a-menu-item key="10">法院公告</a-menu-item>-->
|
||||
<!-- <a-menu-item key="11">送达公告</a-menu-item>-->
|
||||
<!-- <a-menu-item key="12">裁判文书</a-menu-item>-->
|
||||
<!-- <a-menu-item key="13">被执行人</a-menu-item>-->
|
||||
<!-- <a-menu-item key="14">失信被执行人</a-menu-item>-->
|
||||
<!-- <a-menu-item key="15">终本案件</a-menu-item>-->
|
||||
<!-- <a-menu-item key="16">限制高消费</a-menu-item>-->
|
||||
<!-- <a-menu-item key="17">股权冻结</a-menu-item>-->
|
||||
<!-- <a-menu-item key="18">司法案件</a-menu-item>-->
|
||||
<!-- </a-menu>-->
|
||||
<!-- </template>-->
|
||||
<!-- </a-dropdown-button>-->
|
||||
<a-button type="primary" @click="openInfo(record)">详情</a-button>
|
||||
<!-- <a-dropdown-button @click="handleButtonClick">-->
|
||||
<!-- 操作-->
|
||||
<!-- <template #overlay>-->
|
||||
<!-- <a-menu @click="handleMenuClick">-->
|
||||
<!-- <a-menu-item key="1">招投标</a-menu-item>-->
|
||||
<!-- <a-menu-item key="2">对外投资</a-menu-item>-->
|
||||
<!-- <a-menu-item key="3">风险关系</a-menu-item>-->
|
||||
<!-- <a-menu-item key="4">竞争对手</a-menu-item>-->
|
||||
<!-- <a-menu-item key="5">供应商</a-menu-item>-->
|
||||
<!-- <a-menu-item key="6">客户</a-menu-item>-->
|
||||
<!-- <a-menu-item key="7">立案信息</a-menu-item>-->
|
||||
<!-- <a-menu-item key="8">诉前调解</a-menu-item>-->
|
||||
<!-- <a-menu-item key="9">开庭公告</a-menu-item>-->
|
||||
<!-- <a-menu-item key="10">法院公告</a-menu-item>-->
|
||||
<!-- <a-menu-item key="11">送达公告</a-menu-item>-->
|
||||
<!-- <a-menu-item key="12">裁判文书</a-menu-item>-->
|
||||
<!-- <a-menu-item key="13">被执行人</a-menu-item>-->
|
||||
<!-- <a-menu-item key="14">失信被执行人</a-menu-item>-->
|
||||
<!-- <a-menu-item key="15">终本案件</a-menu-item>-->
|
||||
<!-- <a-menu-item key="16">限制高消费</a-menu-item>-->
|
||||
<!-- <a-menu-item key="17">股权冻结</a-menu-item>-->
|
||||
<!-- <a-menu-item key="18">司法案件</a-menu-item>-->
|
||||
<!-- </a-menu>-->
|
||||
<!-- </template>-->
|
||||
<!-- </a-dropdown-button>-->
|
||||
|
||||
<!-- <a @click="openEdit(record)">修改</a>-->
|
||||
<!-- <a-divider type="vertical" />-->
|
||||
@@ -78,6 +78,12 @@
|
||||
/>
|
||||
<!-- 导入弹窗 -->
|
||||
<CreditCompanyImport v-model:visible="showImport" @done="reload" />
|
||||
<!-- 企业详情 -->
|
||||
<CreditCompanyInfo
|
||||
v-model:visible="showInfo"
|
||||
:data="current"
|
||||
@done="reload"
|
||||
/>
|
||||
</a-page-header>
|
||||
</template>
|
||||
|
||||
@@ -104,6 +110,7 @@
|
||||
CreditCompanyParam
|
||||
} from '@/api/credit/creditCompany/model';
|
||||
import CreditCompanyImport from './components/credit-company-import.vue';
|
||||
import CreditCompanyInfo from './components/creditCompanyInfo.vue';
|
||||
|
||||
// 表格实例
|
||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||
@@ -118,6 +125,8 @@
|
||||
const showMove = ref(false);
|
||||
// 是否显示导入弹窗
|
||||
const showImport = ref(false);
|
||||
// 是否显示详情弹窗
|
||||
const showInfo = ref(false);
|
||||
// 加载状态
|
||||
const loading = ref(true);
|
||||
|
||||
@@ -143,11 +152,18 @@
|
||||
// 完整的列配置(包含所有字段)
|
||||
const columns = ref<ColumnItem[]>([
|
||||
{
|
||||
title: 'ID',
|
||||
dataIndex: 'id',
|
||||
key: 'id',
|
||||
width: 90
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
width: 120,
|
||||
fixed: 'left',
|
||||
align: 'center'
|
||||
},
|
||||
// {
|
||||
// title: 'ID',
|
||||
// dataIndex: 'id',
|
||||
// key: 'id',
|
||||
// width: 90
|
||||
// },
|
||||
{
|
||||
title: '原文件导入名称',
|
||||
dataIndex: 'name',
|
||||
@@ -488,7 +504,7 @@
|
||||
key: 'smallEnterprise',
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
},
|
||||
}
|
||||
// {
|
||||
// title: '备注',
|
||||
// dataIndex: 'comments',
|
||||
@@ -522,15 +538,7 @@
|
||||
// sorter: true,
|
||||
// ellipsis: true,
|
||||
// customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
|
||||
// },
|
||||
{
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
width: 120,
|
||||
fixed: 'right',
|
||||
align: 'center',
|
||||
hideInSetting: true
|
||||
}
|
||||
// }
|
||||
]);
|
||||
|
||||
/* 搜索 */
|
||||
@@ -554,6 +562,11 @@
|
||||
const openImport = () => {
|
||||
showImport.value = true;
|
||||
};
|
||||
/* 打开企业详情 */
|
||||
const openInfo = (row?: CreditCompany) => {
|
||||
current.value = row ?? null;
|
||||
showInfo.value = true;
|
||||
};
|
||||
|
||||
/* 删除单个 */
|
||||
const remove = (row: CreditCompany) => {
|
||||
|
||||
Reference in New Issue
Block a user