refactor(credit): 优化企业信用模块数据结构和界面展示
- 将模型中的 companyName 字段统一重命名为 name - 更新编辑页面标题为更准确的描述 - 调整多个表格列的宽度配置 - 移除冗余的表格滚动设置 - 为主企业名称字段添加空值显示处理 - 统一表格列配置中的样式属性 - 优化表格列的数据索引和键值配置 - 移除过多的表格列宽度和省略号设置
This commit is contained in:
@@ -7,7 +7,7 @@ export interface CreditCompetitor {
|
||||
// 序号
|
||||
id?: number;
|
||||
// 企业名称
|
||||
companyName?: string;
|
||||
name?: string;
|
||||
// 法定代表人
|
||||
legalRepresentative?: string;
|
||||
// 注册资本
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
:visible="visible"
|
||||
:maskClosable="false"
|
||||
:maxable="maxable"
|
||||
:title="isUpdate ? '编辑企业' : '添加企业'"
|
||||
:title="isUpdate ? '主体企业信息' : '添加企业'"
|
||||
:body-style="{ paddingBottom: '28px' }"
|
||||
@update:visible="updateVisible"
|
||||
@ok="save"
|
||||
|
||||
@@ -279,7 +279,7 @@
|
||||
title: '企业(机构)类型',
|
||||
dataIndex: 'institutionType',
|
||||
key: 'institutionType',
|
||||
width: 120
|
||||
width: 140
|
||||
},
|
||||
{
|
||||
title: '纳税人识别号',
|
||||
@@ -304,14 +304,11 @@
|
||||
key: 'numberOfInsuredPersons',
|
||||
width: 120
|
||||
},
|
||||
|
||||
|
||||
|
||||
{
|
||||
title: '参保人数所属年报',
|
||||
dataIndex: 'annualReport',
|
||||
key: 'annualReport',
|
||||
width: 120
|
||||
width: 140
|
||||
},
|
||||
{
|
||||
title: '营业期限',
|
||||
|
||||
@@ -23,9 +23,20 @@
|
||||
/>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'companyName'">
|
||||
{{ record.companyName || '-' }}
|
||||
</template>
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</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'">
|
||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||
@@ -135,45 +146,37 @@
|
||||
{
|
||||
title: '主体企业',
|
||||
dataIndex: 'companyName',
|
||||
key: 'companyName',
|
||||
width: 280
|
||||
key: 'companyName'
|
||||
},
|
||||
{
|
||||
title: '企业名称',
|
||||
dataIndex: 'companyName',
|
||||
key: 'companyName',
|
||||
ellipsis: true
|
||||
dataIndex: 'name',
|
||||
key: 'name'
|
||||
},
|
||||
{
|
||||
title: '法定代表人',
|
||||
dataIndex: 'legalRepresentative',
|
||||
key: 'legalRepresentative',
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
key: 'legalRepresentative'
|
||||
},
|
||||
{
|
||||
title: '注册资本',
|
||||
dataIndex: 'registeredCapital',
|
||||
key: 'registeredCapital',
|
||||
width: 120
|
||||
key: 'registeredCapital'
|
||||
},
|
||||
{
|
||||
title: '成立日期',
|
||||
dataIndex: 'establishmentDate',
|
||||
key: 'establishmentDate',
|
||||
width: 120
|
||||
key: 'establishmentDate'
|
||||
},
|
||||
{
|
||||
title: '所属行业',
|
||||
dataIndex: 'industry',
|
||||
key: 'industry',
|
||||
ellipsis: true
|
||||
key: 'industry'
|
||||
},
|
||||
{
|
||||
title: '所属省份',
|
||||
dataIndex: 'province',
|
||||
key: 'province',
|
||||
width: 120
|
||||
key: 'province'
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
v-model:selection="selection"
|
||||
:scroll="{ x: 2000 }"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
/>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'companyName'">
|
||||
{{ record.companyName || '-' }}
|
||||
</template>
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
@@ -140,40 +143,32 @@
|
||||
{
|
||||
title: '主体企业',
|
||||
dataIndex: 'companyName',
|
||||
key: 'companyName',
|
||||
width: 280
|
||||
key: 'companyName'
|
||||
},
|
||||
{
|
||||
title: '客户',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
ellipsis: true
|
||||
key: 'name'
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
dataIndex: 'statusTxt',
|
||||
key: 'statusTxt',
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
key: 'statusTxt'
|
||||
},
|
||||
{
|
||||
title: '销售金额(万元)',
|
||||
dataIndex: 'price',
|
||||
key: 'price',
|
||||
width: 120
|
||||
key: 'price'
|
||||
},
|
||||
{
|
||||
title: '公开日期',
|
||||
dataIndex: 'publicDate',
|
||||
key: 'publicDate',
|
||||
width: 120
|
||||
key: 'publicDate'
|
||||
},
|
||||
{
|
||||
title: '数据来源',
|
||||
dataIndex: 'dataSource',
|
||||
key: 'dataSource',
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
key: 'dataSource'
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
v-model:selection="selection"
|
||||
:scroll="{ x: 2400 }"
|
||||
:scroll="{ x: 2800 }"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
>
|
||||
@@ -27,6 +27,9 @@
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
<template v-if="column.key === 'companyName'">
|
||||
{{ record.companyName || '-' }}
|
||||
</template>
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
@@ -144,84 +147,67 @@
|
||||
{
|
||||
title: '主体企业',
|
||||
dataIndex: 'companyName',
|
||||
key: 'companyName',
|
||||
width: 280
|
||||
key: 'companyName'
|
||||
},
|
||||
{
|
||||
title: '被投资企业名称',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
ellipsis: true
|
||||
key: 'name'
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
dataIndex: 'statusTxt',
|
||||
key: 'statusTxt',
|
||||
ellipsis: true,
|
||||
width: 90
|
||||
key: 'statusTxt'
|
||||
},
|
||||
{
|
||||
title: '法定代表人',
|
||||
dataIndex: 'legalRepresentative',
|
||||
key: 'legalRepresentative',
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
key: 'legalRepresentative'
|
||||
},
|
||||
{
|
||||
title: '注册资本',
|
||||
dataIndex: 'registeredCapital',
|
||||
key: 'registeredCapital',
|
||||
width: 120
|
||||
key: 'registeredCapital'
|
||||
},
|
||||
{
|
||||
title: '成立日期',
|
||||
dataIndex: 'establishmentDate',
|
||||
key: 'establishmentDate',
|
||||
width: 120
|
||||
key: 'establishmentDate'
|
||||
},
|
||||
{
|
||||
title: '持股比例',
|
||||
dataIndex: 'shareholdingRatio',
|
||||
key: 'shareholdingRatio',
|
||||
width: 120
|
||||
key: 'shareholdingRatio'
|
||||
},
|
||||
{
|
||||
title: '认缴出资额',
|
||||
dataIndex: 'subscribedInvestmentAmount',
|
||||
key: 'subscribedInvestmentAmount',
|
||||
ellipsis: true
|
||||
key: 'subscribedInvestmentAmount'
|
||||
},
|
||||
{
|
||||
title: '投资日期',
|
||||
dataIndex: 'investmentDate',
|
||||
key: 'investmentDate',
|
||||
width: 120
|
||||
key: 'investmentDate'
|
||||
},
|
||||
{
|
||||
title: '所属地区',
|
||||
dataIndex: 'region',
|
||||
key: 'region',
|
||||
ellipsis: true
|
||||
key: 'region'
|
||||
},
|
||||
{
|
||||
title: '所属行业',
|
||||
dataIndex: 'industry',
|
||||
key: 'industry',
|
||||
ellipsis: true
|
||||
key: 'industry'
|
||||
},
|
||||
{
|
||||
title: '投资数量',
|
||||
dataIndex: 'investmentCount',
|
||||
key: 'investmentCount',
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
key: 'investmentCount'
|
||||
},
|
||||
{
|
||||
title: '关联产品/机构',
|
||||
dataIndex: 'relatedProductsInstitutions',
|
||||
key: 'relatedProductsInstitutions',
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
key: 'relatedProductsInstitutions'
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
/>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'companyName'">
|
||||
{{ record.companyName || '-' }}
|
||||
</template>
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
@@ -135,8 +138,7 @@
|
||||
{
|
||||
title: '主体企业',
|
||||
dataIndex: 'companyName',
|
||||
key: 'companyName',
|
||||
width: 280
|
||||
key: 'companyName'
|
||||
},
|
||||
{
|
||||
title: '主体名称',
|
||||
@@ -146,32 +148,27 @@
|
||||
{
|
||||
title: '登记状态',
|
||||
dataIndex: 'registrationStatus',
|
||||
key: 'registrationStatus',
|
||||
ellipsis: true
|
||||
key: 'registrationStatus'
|
||||
},
|
||||
{
|
||||
title: '注册资本',
|
||||
dataIndex: 'registeredCapital',
|
||||
key: 'registeredCapital',
|
||||
width: 120
|
||||
key: 'registeredCapital'
|
||||
},
|
||||
{
|
||||
title: '省份地区',
|
||||
dataIndex: 'provinceRegion',
|
||||
key: 'provinceRegion',
|
||||
ellipsis: true
|
||||
key: 'provinceRegion'
|
||||
},
|
||||
{
|
||||
title: '关联关系',
|
||||
dataIndex: 'associatedRelation',
|
||||
key: 'associatedRelation',
|
||||
ellipsis: true
|
||||
key: 'associatedRelation'
|
||||
},
|
||||
{
|
||||
title: '风险关系',
|
||||
dataIndex: 'riskRelation',
|
||||
key: 'riskRelation',
|
||||
ellipsis: true
|
||||
key: 'riskRelation'
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
/>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'companyName'">
|
||||
{{ record.companyName || '-' }}
|
||||
</template>
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
@@ -135,40 +138,32 @@
|
||||
{
|
||||
title: '主体企业',
|
||||
dataIndex: 'companyName',
|
||||
key: 'companyName',
|
||||
width: 280
|
||||
key: 'companyName'
|
||||
},
|
||||
{
|
||||
title: '供应商',
|
||||
dataIndex: 'supplier',
|
||||
key: 'supplier',
|
||||
ellipsis: true
|
||||
key: 'supplier'
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
dataIndex: 'statusTxt',
|
||||
key: 'statusTxt',
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
key: 'statusTxt'
|
||||
},
|
||||
{
|
||||
title: '采购金额(万元)',
|
||||
dataIndex: 'purchaseAmount',
|
||||
key: 'purchaseAmount',
|
||||
width: 120
|
||||
key: 'purchaseAmount'
|
||||
},
|
||||
{
|
||||
title: '公开日期',
|
||||
dataIndex: 'publicDate',
|
||||
key: 'publicDate',
|
||||
width: 120
|
||||
key: 'publicDate'
|
||||
},
|
||||
{
|
||||
title: '数据来源',
|
||||
dataIndex: 'dataSource',
|
||||
key: 'dataSource',
|
||||
ellipsis: true,
|
||||
width: 120
|
||||
key: 'dataSource'
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
:columns="columns"
|
||||
:datasource="datasource"
|
||||
:customRow="customRow"
|
||||
:scroll="{ x: 2800 }"
|
||||
:scroll="{ x: 2400 }"
|
||||
tool-class="ele-toolbar-form"
|
||||
class="sys-org-table"
|
||||
v-model:selection="selection"
|
||||
@@ -27,6 +27,9 @@
|
||||
<template v-if="column.key === 'image'">
|
||||
<a-image :src="record.image" :width="50" />
|
||||
</template>
|
||||
<template v-if="column.key === 'companyName'">
|
||||
{{ record.companyName || '-' }}
|
||||
</template>
|
||||
<template v-if="column.key === 'name'">
|
||||
<template v-if="record.url">
|
||||
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||
@@ -137,20 +140,17 @@
|
||||
{
|
||||
title: '主体企业',
|
||||
dataIndex: 'companyName',
|
||||
key: 'companyName',
|
||||
width: 280
|
||||
key: 'companyName'
|
||||
},
|
||||
{
|
||||
title: '项目名称',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
width: 280
|
||||
key: 'name'
|
||||
},
|
||||
{
|
||||
title: '发布日期',
|
||||
dataIndex: 'releaseDate',
|
||||
key: 'releaseDate',
|
||||
width: 220
|
||||
key: 'releaseDate'
|
||||
},
|
||||
// {
|
||||
// title: '唯一标识',
|
||||
@@ -167,16 +167,12 @@
|
||||
{
|
||||
title: '企业角色',
|
||||
dataIndex: 'role',
|
||||
key: 'role',
|
||||
ellipsis: true,
|
||||
width: 180
|
||||
key: 'role'
|
||||
},
|
||||
{
|
||||
title: '信息类型',
|
||||
dataIndex: 'infoType',
|
||||
key: 'infoType',
|
||||
ellipsis: true,
|
||||
width: 170
|
||||
key: 'infoType'
|
||||
},
|
||||
// {
|
||||
// title: '省份地区',
|
||||
@@ -200,30 +196,22 @@
|
||||
{
|
||||
title: '省份地区',
|
||||
dataIndex: 'address',
|
||||
key: 'address',
|
||||
ellipsis: true,
|
||||
width: 180
|
||||
key: 'address'
|
||||
},
|
||||
{
|
||||
title: '招采单位',
|
||||
dataIndex: 'procurementName',
|
||||
key: 'procurementName',
|
||||
ellipsis: true,
|
||||
width: 280
|
||||
key: 'procurementName'
|
||||
},
|
||||
{
|
||||
title: '中标单位',
|
||||
dataIndex: 'winningName',
|
||||
key: 'winningName',
|
||||
ellipsis: true,
|
||||
width: 280
|
||||
key: 'winningName'
|
||||
},
|
||||
{
|
||||
title: '中标金额',
|
||||
dataIndex: 'winningPrice',
|
||||
key: 'winningPrice',
|
||||
ellipsis: true,
|
||||
width: 280
|
||||
key: 'winningPrice'
|
||||
},
|
||||
// {
|
||||
// title: '排序',
|
||||
|
||||
Reference in New Issue
Block a user