From 0430110926877e330ac0436a0db2152fbac58f62 Mon Sep 17 00:00:00 2001 From: "853931625@qq.com" Date: Fri, 14 Nov 2025 10:33:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/enterprise/index.js | 1 + .../Enterprise/CorpInfo/Info/index.js | 35 +++- .../Enterprise/CorpInfo/Update/index.js | 109 +++++++++++-- .../Enterprise/OrganizationStructure/index.js | 2 - .../Container/Enterprise/User/Add/index.js | 51 +++++- .../Container/Enterprise/User/List/index.js | 14 +- .../Container/Stakeholder/CorpInfo/index.js | 102 ++++++++++-- .../SecurityPersonnelInfo/index.js | 61 ++++++- .../SpecialOperationPersonnel/index.js | 63 +++++++- .../Container/Stakeholder/User/Add/index.js | 58 ++++++- .../Container/Stakeholder/User/List/index.js | 29 ++-- .../User/SecurityPersonnel/index.js | 112 +++++++++++-- .../User/SpecialPersonnel/index.js | 102 +++++++++++- .../BranchCompany/AccountManage/List/index.js | 2 +- .../BranchCompany/AccountManage/View/index.js | 4 +- .../DepartmentManage/View/index.js | 2 +- .../EnterpriseInfo/List/index.js | 30 +++- .../EnterpriseInfo/View/index.js | 59 ++++--- .../SubsidiaryUser/UserList/index.js | 2 +- .../EnterpriseMiddleground/UserList/index.js | 2 +- .../AccountManage/List/index.js | 2 +- .../AccountManage/View/index.js | 2 +- .../CertificateList/index.js | 149 +++++++++++++----- .../SpecialPersonnel/CertificateList/index.js | 109 +++++++++++-- .../StakeholderUnit/User/List/index.js | 2 +- .../StakeholderUnit/User/UserList/index.js | 2 +- .../StakeholderUnit/User/View/index.js | 2 +- .../Supervision/Supervision/User/Add/index.js | 54 ++++++- .../Supervision/User/List/index.js | 15 +- 29 files changed, 991 insertions(+), 186 deletions(-) diff --git a/src/api/enterprise/index.js b/src/api/enterprise/index.js index 0fbe148..fdd00bb 100644 --- a/src/api/enterprise/index.js +++ b/src/api/enterprise/index.js @@ -42,3 +42,4 @@ export const corpUserMiddlePage = declareRequest( "enterpriseLoading", "Post > @/basic-info/corpInfo/corpUserMiddlePage", ); + diff --git a/src/pages/Container/Enterprise/CorpInfo/Info/index.js b/src/pages/Container/Enterprise/CorpInfo/Info/index.js index 81ad0f5..a12d9ce 100644 --- a/src/pages/Container/Enterprise/CorpInfo/Info/index.js +++ b/src/pages/Container/Enterprise/CorpInfo/Info/index.js @@ -2,14 +2,38 @@ import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Button, Descriptions, Divider } from "antd"; import { useEffect, useState } from "react"; import TooltipPreviewImg from "zy-react-library/components/TooltipPreviewImg"; +import { UPLOAD_FILE_TYPE_ENUM } from "zy-react-library/enum/uploadFile/gwj"; +import useGetFile from "zy-react-library/hooks/useGetFile"; import { NS_ENTERPRISE } from "~/enumerate/namespace"; function Info(props) { const [info, setInfo] = useState({}); + const { loading: getFileLoading, getFile } = useGetFile(); + const getCorpTypeNamePath = (item) => { + const names = [ + item.corpTypeName, + item.corpType2Name, + item.corpType3Name, + item.corpType4Name, + ].filter(name => name != null && name !== ""); + + return names.join("/"); + }; + useEffect(() => { const fetchData = async () => { const res = await props.corpInfoRemoveDetails({ id: "1985906265017954306" }); + + const licenseFile = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["6"], eqForeignKey: res.data.corpinfoId }); + const imgArr = []; + + licenseFile.forEach((item) => { + imgArr.push(item.url); + }); + + res.data.licenseFile = imgArr; setInfo(res.data); + console.log(res.data); // 不要在这里 log info,它还是旧的 }; fetchData(); @@ -21,10 +45,11 @@ function Info(props) { labelStyle={{ width: 200 }} column={2} bordered + loading={getFileLoading} items={[ { label: "企业名称", children: info.corpName && info.corpName }, { label: "统一社会信用代码", children: info.code }, - { label: "所属区域", children: info.companyArea }, + { label: "所属区域", children: info.cityName }, { label: "邮政编码", children: info.postalCode }, { label: "成立时间", children: info.createDate }, { label: "规模", children: info.scaleName }, @@ -35,17 +60,17 @@ function Info(props) { { label: "资产总额(万元)", children: info.totalAssets }, { label: "注册资金(万元)", children: info.regcapital }, { label: "经济类型", children: info.ecoTypeName }, - { label: "所属行业", children: info.regcapital }, + { label: "所属行业", children:
{getCorpTypeNamePath(info)}
}, { label: "法定代表人", children: info.lrName }, { label: "法人手机号", children: info.lrMobile }, { label: "主要负责人", children: info.contacts }, { label: "主要负责人手机号", children: info.contactsPhone }, { label: "安全负责人", children: info.safetyName }, { label: "安全负责人手机号", children: info.safetyPhone }, - { label: "是否规模以上", children: {info.scaleType === 1 ? "是" : info.scaleType === 0 ? "否" : ""} }, + { label: "是否规模以上", children:
{info.scaleType === 1 ? "是" : info.scaleType === 0 ? "否" : ""}
}, { label: "企事业单位经营地址", children: info.addressBusiness }, { label: "企业状态", children: info.corpStateName }, - { label: "营业执照", children: "Zhou", render: }, + { label: "营业执照", children: }, { label: "营业执照有效期", children: `${info.licenseStart} 至 ${info.licenseEnd}` }, ]} /> @@ -75,7 +100,7 @@ function Info(props) {