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) {