From 58720430400337c0722e9387579120de0d570b1f Mon Sep 17 00:00:00 2001 From: gxwebsoft <170083662@qq.com> Date: Wed, 17 Dec 2025 10:57:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(credit):=20=E9=87=8D=E6=9E=84=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E4=BF=A1=E6=81=AF=E5=B1=95=E7=A4=BA=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=B8=BA=E5=8F=AA=E8=AF=BB=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将原有的表单编辑模式改为只读的描述列表展示 - 新增多个企业相关字段的展示支持 - 集成Tabs组件展示企业相关的多维度信息 - 实现企业关联信息的异步加载与展示 - 添加数据格式化处理函数提升展示效果 - 移除原有表单提交相关逻辑和验证规则 - 新增企业相关信息接口调用方法 - 优化组件结构与数据流管理逻辑 --- src/api/credit/creditCompany/index.ts | 19 + .../components/creditCompanyInfo.vue | 816 +++++++----------- 2 files changed, 348 insertions(+), 487 deletions(-) diff --git a/src/api/credit/creditCompany/index.ts b/src/api/credit/creditCompany/index.ts index 5d3306e..a51eec1 100644 --- a/src/api/credit/creditCompany/index.ts +++ b/src/api/credit/creditCompany/index.ts @@ -124,3 +124,22 @@ export async function importCreditCompany(file: File) { } return Promise.reject(new Error(res.data.message)); } + +/** + * 根据企业匹配名称查询关联信息 + */ +export async function getCompanyRelatedInfo(params: { + type: string; + keywords: string; +}) { + const res = await request.get[]>>( + '/credit/credit-company/related', + { + params + } + ); + if (res.data.code === 0) { + return res.data.data ?? []; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/src/views/credit/creditCompany/components/creditCompanyInfo.vue b/src/views/credit/creditCompany/components/creditCompanyInfo.vue index c57233f..cf2f720 100644 --- a/src/views/credit/creditCompany/components/creditCompanyInfo.vue +++ b/src/views/credit/creditCompany/components/creditCompanyInfo.vue @@ -8,442 +8,205 @@ :title="data?.name" :body-style="{ paddingBottom: '28px' }" @update:visible="updateVisible" - @ok="save" > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {{ formatValue(form.name) }} + + + {{ formatValue(form.matchName) }} + + + {{ formatValue(form.code) }} + + + {{ formatValue(form.registrationStatus) }} + + + {{ formatValue(form.legalPerson) }} + + + {{ formatValue(form.registeredCapital) }} + + + {{ formatValue(form.paidinCapital) }} + + + {{ formatValue(form.establishDate) }} + + + {{ formatValue(form.address) }} + + + {{ formatValue(form.tel) }} + + + {{ formatValue(form.moreTel) }} + + + {{ formatValue(form.email) }} + + + {{ formatValue(form.moreEmail) }} + + + {{ formatValue(form.country) }} + + + {{ formatValue(form.province) }} + + + {{ formatValue(form.city) }} + + + {{ formatValue(form.region) }} + + + {{ formatValue(form.institutionType) }} + + + {{ formatValue(form.taxpayerCode) }} + + + {{ formatValue(form.registrationNumber) }} + + + {{ formatValue(form.organizationalCode) }} + + + {{ formatValue(form.numberOfInsuredPersons) }} + + + {{ formatValue(form.annualReport) }} + + + {{ formatValue(form.businessTerm) }} + + + {{ formatValue(form.nationalStandardIndustryCategories) }} + + + {{ formatValue(form.nationalStandardIndustryCategories2) }} + + + {{ formatValue(form.nationalStandardIndustryCategories3) }} + + + {{ formatValue(form.nationalStandardIndustryCategories4) }} + + + {{ formatValue(form.nationalStandardIndustryCategories5) }} + + + {{ formatValue(form.nationalStandardIndustryCategories6) }} + + + {{ formatValue(form.nationalStandardIndustryCategories7) }} + + + {{ formatValue(form.nationalStandardIndustryCategories8) }} + + + {{ formatValue(form.companySize) }} + + + {{ formatValue(form.formerName) }} + + + {{ formatValue(form.englishName) }} + + + {{ formatValue(form.domain) }} + + + {{ formatValue(form.mailingAddress) }} + + + {{ formatValue(form.companyProfile) }} + + + {{ formatValue(form.natureOfBusiness) }} + + + {{ formatValue(form.registrationAuthority) }} + + + {{ formatValue(form.taxpayerQualification) }} + + + {{ formatValue(form.latestAnnualReportYear) }} + + + {{ formatValue(form.latestAnnualReportOnOperatingRevenue) }} + + + {{ formatValue(form.enterpriseScoreCheck) }} + + + {{ formatValue(form.creditRating) }} + + + {{ formatValue(form.cechnologyScore) }} + + + {{ formatValue(form.cechnologyLevel) }} + + + {{ formatValue(form.smallEnterprise) }} + + + {{ formatValue(form.comments) }} + + + {{ formatValue(form.sortNumber) }} + + + {{ formatStatus(form.status) }} + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 显示 - 隐藏 - - - + +