refactor(credit): 优化企业信用模块数据结构和界面展示

- 将模型中的 companyName 字段统一重命名为 name
- 更新编辑页面标题为更准确的描述
- 调整多个表格列的宽度配置
- 移除冗余的表格滚动设置
- 为主企业名称字段添加空值显示处理
- 统一表格列配置中的样式属性
- 优化表格列的数据索引和键值配置
- 移除过多的表格列宽度和省略号设置
This commit is contained in:
2026-01-19 15:59:31 +08:00
parent 1031ed9199
commit 6f51efe47b
10 changed files with 80 additions and 120 deletions

View File

@@ -7,7 +7,7 @@ export interface CreditCompetitor {
// 序号 // 序号
id?: number; id?: number;
// 企业名称 // 企业名称
companyName?: string; name?: string;
// 法定代表人 // 法定代表人
legalRepresentative?: string; legalRepresentative?: string;
// 注册资本 // 注册资本

View File

@@ -5,7 +5,7 @@
:visible="visible" :visible="visible"
:maskClosable="false" :maskClosable="false"
:maxable="maxable" :maxable="maxable"
:title="isUpdate ? '编辑企业' : '添加企业'" :title="isUpdate ? '主体企业信息' : '添加企业'"
:body-style="{ paddingBottom: '28px' }" :body-style="{ paddingBottom: '28px' }"
@update:visible="updateVisible" @update:visible="updateVisible"
@ok="save" @ok="save"

View File

@@ -279,7 +279,7 @@
title: '企业(机构)类型', title: '企业(机构)类型',
dataIndex: 'institutionType', dataIndex: 'institutionType',
key: 'institutionType', key: 'institutionType',
width: 120 width: 140
}, },
{ {
title: '纳税人识别号', title: '纳税人识别号',
@@ -304,14 +304,11 @@
key: 'numberOfInsuredPersons', key: 'numberOfInsuredPersons',
width: 120 width: 120
}, },
{ {
title: '参保人数所属年报', title: '参保人数所属年报',
dataIndex: 'annualReport', dataIndex: 'annualReport',
key: 'annualReport', key: 'annualReport',
width: 120 width: 140
}, },
{ {
title: '营业期限', title: '营业期限',

View File

@@ -23,9 +23,20 @@
/> />
</template> </template>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'companyName'">
{{ record.companyName || '-' }}
</template>
<template v-if="column.key === 'image'"> <template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" /> <a-image :src="record.image" :width="50" />
</template> </template>
<template v-if="column.key === 'matchName'">
<template v-if="record.url">
<a :href="record.url" target="_blank">{{ record.matchName }}</a>
</template>
<template v-else>
{{ record.matchName }}
</template>
</template>
<template v-if="column.key === 'status'"> <template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag> <a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag> <a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
@@ -135,45 +146,37 @@
{ {
title: '主体企业', title: '主体企业',
dataIndex: 'companyName', dataIndex: 'companyName',
key: 'companyName', key: 'companyName'
width: 280
}, },
{ {
title: '企业名称', title: '企业名称',
dataIndex: 'companyName', dataIndex: 'name',
key: 'companyName', key: 'name'
ellipsis: true
}, },
{ {
title: '法定代表人', title: '法定代表人',
dataIndex: 'legalRepresentative', dataIndex: 'legalRepresentative',
key: 'legalRepresentative', key: 'legalRepresentative'
ellipsis: true,
width: 120
}, },
{ {
title: '注册资本', title: '注册资本',
dataIndex: 'registeredCapital', dataIndex: 'registeredCapital',
key: 'registeredCapital', key: 'registeredCapital'
width: 120
}, },
{ {
title: '成立日期', title: '成立日期',
dataIndex: 'establishmentDate', dataIndex: 'establishmentDate',
key: 'establishmentDate', key: 'establishmentDate'
width: 120
}, },
{ {
title: '所属行业', title: '所属行业',
dataIndex: 'industry', dataIndex: 'industry',
key: 'industry', key: 'industry'
ellipsis: true
}, },
{ {
title: '所属省份', title: '所属省份',
dataIndex: 'province', dataIndex: 'province',
key: 'province', key: 'province'
width: 120
}, },
{ {
title: '创建时间', title: '创建时间',

View File

@@ -8,7 +8,6 @@
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
v-model:selection="selection" v-model:selection="selection"
:scroll="{ x: 2000 }"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >

View File

@@ -23,6 +23,9 @@
/> />
</template> </template>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'companyName'">
{{ record.companyName || '-' }}
</template>
<template v-if="column.key === 'image'"> <template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" /> <a-image :src="record.image" :width="50" />
</template> </template>
@@ -140,40 +143,32 @@
{ {
title: '主体企业', title: '主体企业',
dataIndex: 'companyName', dataIndex: 'companyName',
key: 'companyName', key: 'companyName'
width: 280
}, },
{ {
title: '客户', title: '客户',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'name'
ellipsis: true
}, },
{ {
title: '状态', title: '状态',
dataIndex: 'statusTxt', dataIndex: 'statusTxt',
key: 'statusTxt', key: 'statusTxt'
ellipsis: true,
width: 120
}, },
{ {
title: '销售金额(万元)', title: '销售金额(万元)',
dataIndex: 'price', dataIndex: 'price',
key: 'price', key: 'price'
width: 120
}, },
{ {
title: '公开日期', title: '公开日期',
dataIndex: 'publicDate', dataIndex: 'publicDate',
key: 'publicDate', key: 'publicDate'
width: 120
}, },
{ {
title: '数据来源', title: '数据来源',
dataIndex: 'dataSource', dataIndex: 'dataSource',
key: 'dataSource', key: 'dataSource'
ellipsis: true,
width: 120
}, },
{ {
title: '创建时间', title: '创建时间',

View File

@@ -8,7 +8,7 @@
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
v-model:selection="selection" v-model:selection="selection"
:scroll="{ x: 2400 }" :scroll="{ x: 2800 }"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
> >
@@ -27,6 +27,9 @@
<template v-if="column.key === 'image'"> <template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" /> <a-image :src="record.image" :width="50" />
</template> </template>
<template v-if="column.key === 'companyName'">
{{ record.companyName || '-' }}
</template>
<template v-if="column.key === 'name'"> <template v-if="column.key === 'name'">
<template v-if="record.url"> <template v-if="record.url">
<a :href="record.url" target="_blank">{{ record.name }}</a> <a :href="record.url" target="_blank">{{ record.name }}</a>
@@ -144,84 +147,67 @@
{ {
title: '主体企业', title: '主体企业',
dataIndex: 'companyName', dataIndex: 'companyName',
key: 'companyName', key: 'companyName'
width: 280
}, },
{ {
title: '被投资企业名称', title: '被投资企业名称',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'name'
ellipsis: true
}, },
{ {
title: '状态', title: '状态',
dataIndex: 'statusTxt', dataIndex: 'statusTxt',
key: 'statusTxt', key: 'statusTxt'
ellipsis: true,
width: 90
}, },
{ {
title: '法定代表人', title: '法定代表人',
dataIndex: 'legalRepresentative', dataIndex: 'legalRepresentative',
key: 'legalRepresentative', key: 'legalRepresentative'
ellipsis: true,
width: 120
}, },
{ {
title: '注册资本', title: '注册资本',
dataIndex: 'registeredCapital', dataIndex: 'registeredCapital',
key: 'registeredCapital', key: 'registeredCapital'
width: 120
}, },
{ {
title: '成立日期', title: '成立日期',
dataIndex: 'establishmentDate', dataIndex: 'establishmentDate',
key: 'establishmentDate', key: 'establishmentDate'
width: 120
}, },
{ {
title: '持股比例', title: '持股比例',
dataIndex: 'shareholdingRatio', dataIndex: 'shareholdingRatio',
key: 'shareholdingRatio', key: 'shareholdingRatio'
width: 120
}, },
{ {
title: '认缴出资额', title: '认缴出资额',
dataIndex: 'subscribedInvestmentAmount', dataIndex: 'subscribedInvestmentAmount',
key: 'subscribedInvestmentAmount', key: 'subscribedInvestmentAmount'
ellipsis: true
}, },
{ {
title: '投资日期', title: '投资日期',
dataIndex: 'investmentDate', dataIndex: 'investmentDate',
key: 'investmentDate', key: 'investmentDate'
width: 120
}, },
{ {
title: '所属地区', title: '所属地区',
dataIndex: 'region', dataIndex: 'region',
key: 'region', key: 'region'
ellipsis: true
}, },
{ {
title: '所属行业', title: '所属行业',
dataIndex: 'industry', dataIndex: 'industry',
key: 'industry', key: 'industry'
ellipsis: true
}, },
{ {
title: '投资数量', title: '投资数量',
dataIndex: 'investmentCount', dataIndex: 'investmentCount',
key: 'investmentCount', key: 'investmentCount'
ellipsis: true,
width: 120
}, },
{ {
title: '关联产品/机构', title: '关联产品/机构',
dataIndex: 'relatedProductsInstitutions', dataIndex: 'relatedProductsInstitutions',
key: 'relatedProductsInstitutions', key: 'relatedProductsInstitutions'
ellipsis: true,
width: 120
}, },
{ {
title: '创建时间', title: '创建时间',

View File

@@ -23,6 +23,9 @@
/> />
</template> </template>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'companyName'">
{{ record.companyName || '-' }}
</template>
<template v-if="column.key === 'image'"> <template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" /> <a-image :src="record.image" :width="50" />
</template> </template>
@@ -135,8 +138,7 @@
{ {
title: '主体企业', title: '主体企业',
dataIndex: 'companyName', dataIndex: 'companyName',
key: 'companyName', key: 'companyName'
width: 280
}, },
{ {
title: '主体名称', title: '主体名称',
@@ -146,32 +148,27 @@
{ {
title: '登记状态', title: '登记状态',
dataIndex: 'registrationStatus', dataIndex: 'registrationStatus',
key: 'registrationStatus', key: 'registrationStatus'
ellipsis: true
}, },
{ {
title: '注册资本', title: '注册资本',
dataIndex: 'registeredCapital', dataIndex: 'registeredCapital',
key: 'registeredCapital', key: 'registeredCapital'
width: 120
}, },
{ {
title: '省份地区', title: '省份地区',
dataIndex: 'provinceRegion', dataIndex: 'provinceRegion',
key: 'provinceRegion', key: 'provinceRegion'
ellipsis: true
}, },
{ {
title: '关联关系', title: '关联关系',
dataIndex: 'associatedRelation', dataIndex: 'associatedRelation',
key: 'associatedRelation', key: 'associatedRelation'
ellipsis: true
}, },
{ {
title: '风险关系', title: '风险关系',
dataIndex: 'riskRelation', dataIndex: 'riskRelation',
key: 'riskRelation', key: 'riskRelation'
ellipsis: true
}, },
{ {
title: '创建时间', title: '创建时间',

View File

@@ -23,6 +23,9 @@
/> />
</template> </template>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'companyName'">
{{ record.companyName || '-' }}
</template>
<template v-if="column.key === 'image'"> <template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" /> <a-image :src="record.image" :width="50" />
</template> </template>
@@ -135,40 +138,32 @@
{ {
title: '主体企业', title: '主体企业',
dataIndex: 'companyName', dataIndex: 'companyName',
key: 'companyName', key: 'companyName'
width: 280
}, },
{ {
title: '供应商', title: '供应商',
dataIndex: 'supplier', dataIndex: 'supplier',
key: 'supplier', key: 'supplier'
ellipsis: true
}, },
{ {
title: '状态', title: '状态',
dataIndex: 'statusTxt', dataIndex: 'statusTxt',
key: 'statusTxt', key: 'statusTxt'
ellipsis: true,
width: 120
}, },
{ {
title: '采购金额(万元)', title: '采购金额(万元)',
dataIndex: 'purchaseAmount', dataIndex: 'purchaseAmount',
key: 'purchaseAmount', key: 'purchaseAmount'
width: 120
}, },
{ {
title: '公开日期', title: '公开日期',
dataIndex: 'publicDate', dataIndex: 'publicDate',
key: 'publicDate', key: 'publicDate'
width: 120
}, },
{ {
title: '数据来源', title: '数据来源',
dataIndex: 'dataSource', dataIndex: 'dataSource',
key: 'dataSource', key: 'dataSource'
ellipsis: true,
width: 120
}, },
{ {
title: '创建时间', title: '创建时间',

View File

@@ -7,7 +7,7 @@
:columns="columns" :columns="columns"
:datasource="datasource" :datasource="datasource"
:customRow="customRow" :customRow="customRow"
:scroll="{ x: 2800 }" :scroll="{ x: 2400 }"
tool-class="ele-toolbar-form" tool-class="ele-toolbar-form"
class="sys-org-table" class="sys-org-table"
v-model:selection="selection" v-model:selection="selection"
@@ -27,6 +27,9 @@
<template v-if="column.key === 'image'"> <template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" /> <a-image :src="record.image" :width="50" />
</template> </template>
<template v-if="column.key === 'companyName'">
{{ record.companyName || '-' }}
</template>
<template v-if="column.key === 'name'"> <template v-if="column.key === 'name'">
<template v-if="record.url"> <template v-if="record.url">
<a :href="record.url" target="_blank">{{ record.name }}</a> <a :href="record.url" target="_blank">{{ record.name }}</a>
@@ -137,20 +140,17 @@
{ {
title: '主体企业', title: '主体企业',
dataIndex: 'companyName', dataIndex: 'companyName',
key: 'companyName', key: 'companyName'
width: 280
}, },
{ {
title: '项目名称', title: '项目名称',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'name'
width: 280
}, },
{ {
title: '发布日期', title: '发布日期',
dataIndex: 'releaseDate', dataIndex: 'releaseDate',
key: 'releaseDate', key: 'releaseDate'
width: 220
}, },
// { // {
// title: '唯一标识', // title: '唯一标识',
@@ -167,16 +167,12 @@
{ {
title: '企业角色', title: '企业角色',
dataIndex: 'role', dataIndex: 'role',
key: 'role', key: 'role'
ellipsis: true,
width: 180
}, },
{ {
title: '信息类型', title: '信息类型',
dataIndex: 'infoType', dataIndex: 'infoType',
key: 'infoType', key: 'infoType'
ellipsis: true,
width: 170
}, },
// { // {
// title: '省份地区', // title: '省份地区',
@@ -200,30 +196,22 @@
{ {
title: '省份地区', title: '省份地区',
dataIndex: 'address', dataIndex: 'address',
key: 'address', key: 'address'
ellipsis: true,
width: 180
}, },
{ {
title: '招采单位', title: '招采单位',
dataIndex: 'procurementName', dataIndex: 'procurementName',
key: 'procurementName', key: 'procurementName'
ellipsis: true,
width: 280
}, },
{ {
title: '中标单位', title: '中标单位',
dataIndex: 'winningName', dataIndex: 'winningName',
key: 'winningName', key: 'winningName'
ellipsis: true,
width: 280
}, },
{ {
title: '中标金额', title: '中标金额',
dataIndex: 'winningPrice', dataIndex: 'winningPrice',
key: 'winningPrice', key: 'winningPrice'
ellipsis: true,
width: 280
}, },
// { // {
// title: '排序', // title: '排序',