From b15d0010adc41aec853998e0beabde218fe60f93 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com>
Date: Wed, 17 Dec 2025 09:48:11 +0800
Subject: [PATCH] =?UTF-8?q?feat(credit):=20=E6=96=B0=E5=A2=9E=E4=BC=81?=
=?UTF-8?q?=E4=B8=9A=E4=BF=A1=E7=94=A8=E7=AE=A1=E7=90=86=E6=A8=A1=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 添加企业信息模型定义,包含企业基本信息、联系方式、行业分类等字段
- 实现企业信息的增删改查接口,支持分页查询和批量操作
- 开发企业信息管理页面,包含表格展示、搜索筛选功能
- 添加企业信息编辑弹窗,支持新增和修改企业信息
- 实现企业信息导入功能,支持Excel文件批量导入
- 添加企业信息导入模板下载功能
- 实现企业信息的状态管理和排序功能
- 添加企业信息的详情展示和操作按钮
- 实现企业信息的批量删除功能
- 添加企业信息的搜索功能,支持关键词模糊查询
---
.../components/creditCompanyInfo.vue | 612 ++++++++++++++++++
src/views/credit/creditCompany/index.vue | 93 +--
2 files changed, 665 insertions(+), 40 deletions(-)
create mode 100644 src/views/credit/creditCompany/components/creditCompanyInfo.vue
diff --git a/src/views/credit/creditCompany/components/creditCompanyInfo.vue b/src/views/credit/creditCompany/components/creditCompanyInfo.vue
new file mode 100644
index 0000000..c57233f
--- /dev/null
+++ b/src/views/credit/creditCompany/components/creditCompanyInfo.vue
@@ -0,0 +1,612 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 显示
+ 隐藏
+
+
+
+
+
+
+
diff --git a/src/views/credit/creditCompany/index.vue b/src/views/credit/creditCompany/index.vue
index f533719..d7053a3 100644
--- a/src/views/credit/creditCompany/index.vue
+++ b/src/views/credit/creditCompany/index.vue
@@ -30,32 +30,32 @@
隐藏
- 详情
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ 详情
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -78,6 +78,12 @@
/>
+
+
@@ -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 | 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([
{
- 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) => {