From 7fc5b1d23854e48ccb963256b960d114c36d54c8 Mon Sep 17 00:00:00 2001 From: dearLin <1261008090@qq.com> Date: Fri, 9 Jan 2026 18:06:22 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=E9=83=A8=E5=88=86bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jjb.config.js | 9 ++-- package.json | 2 +- .../Qualification/Apply/Add/index.js | 43 ++++++++++++------- .../Qualification/Apply/List/index.js | 4 +- .../Qualification/Apply/View/index.js | 2 +- .../Qualification/Records/List/index.js | 4 +- .../Qualification/Review/List/index.js | 4 +- .../Local/Qualification/Review/List/index.js | 4 +- .../Qualification/Review/Review/index.js | 2 - .../Local/Qualification/ViewInfo/index.js | 4 +- .../Qualification/Apply/List/index.js | 6 +-- .../Qualification/Maintenance/Add/index.js | 43 +++++++++++++++---- .../Qualification/Maintenance/List/index.js | 7 +-- .../Qualification/Records/History/index.js | 2 +- .../Qualification/Records/List/index.js | 10 ++--- .../Qualification/Review/List/index.js | 4 +- .../Qualification/ViewInfo/index.js | 6 +-- 17 files changed, 96 insertions(+), 60 deletions(-) diff --git a/jjb.config.js b/jjb.config.js index 5f7f367..9202047 100644 --- a/jjb.config.js +++ b/jjb.config.js @@ -9,14 +9,13 @@ module.exports = { // 应用后端分支名称,部署上线需要 javaGitBranch: "", // 接口服务地址 - API_HOST: "http://192.168.20.100:30140", - // API_HOST: "http://192.168.10.41:81", + API_HOST: "https://gbs-gateway.qhdsafety.com", }, production: { // 应用后端分支名称,部署上线需要 javaGitBranch: "", // 接口服务地址 - API_HOST: "", + API_HOST: "https://gbs-gateway.qhdsafety.com", }, }, // 应用唯一标识符 @@ -25,8 +24,8 @@ module.exports = { contextInject: { // 应用Key appKey: "", - // fileUrl: "https://jpfz.qhdscom/gbsFileTest/", - fileUrl: "http://192.168.20.240:9787/mnt/", + fileUrl: "https://jpfz.qhdsafety.com/gbsFileTest/", + // fileUrl: "http://192.168.20.240:9787/mnt/", }, // public/index.html注入全局变量 windowInject: { diff --git a/package.json b/package.json index 1055706..afa8db5 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "lodash-es": "^4.17.21", "react": "^18.2.0", "react-dom": "^18.2.0", - "zy-react-library": "^1.1.22" + "zy-react-library": "^1.1.25" }, "devDependencies": { "@antfu/eslint-config": "^5.4.1", diff --git a/src/pages/Container/BranchCompany/Qualification/Apply/Add/index.js b/src/pages/Container/BranchCompany/Qualification/Apply/Add/index.js index dc27189..878af60 100644 --- a/src/pages/Container/BranchCompany/Qualification/Apply/Add/index.js +++ b/src/pages/Container/BranchCompany/Qualification/Apply/Add/index.js @@ -65,17 +65,18 @@ const StepOneComponent = (props) => { const stakeholderLevel = Form.useWatch("stakeholderLevel", form); const groupUnitId = Form.useWatch("groupUnitId", form); const groupUnitDept = Form.useWatch("groupUnitDept", form); + // const [corpTypeList, setCorpTypeList] = useState([2]); const [corpInfoList, setCorpInfoList] = useState([]); const [qualificationsListAll, setQualificationsListAll] = useState([]); const getQualificationsListAll = async () => { - const { data } = await props["qualificationsListAll"]({ qualificationsTypeId, stakeholderLevel }); + const { data } = await props["qualificationsListAll"]({ qualificationsTypeId, stakeholderLevel, status: 0 }); setQualificationsListAll(data); }; - const getCorpInfoList = async () => { - const { data } = await props["corpInfoList"]({ pageIndex: 1, pageSize: 1000 }); + const getCorpInfoList = async (type) => { + const { data } = await props["corpInfoList"]({ pageIndex: 1, pageSize: 1000, eqType: type || 1 }); setCorpInfoList(data); }; @@ -107,8 +108,15 @@ const StepOneComponent = (props) => { render: ( form.setFieldValue("qualificationsTypeName", label)} - onChange={() => { + onGetLabel={(label) => { + form.setFieldValue("qualificationsTypeName", label); + }} + onChange={async (value) => { + console.log(value); + if (value === "wzgll") { + await getCorpInfoList(6); + } + form.setFieldValue("groupUnitName", ""); form.setFieldValue("groupUnitName", ""); form.setFieldValue("groupUnitDeptName", ""); form.setFieldValue("groupUnitUserName", ""); @@ -120,7 +128,7 @@ const StepOneComponent = (props) => { { name: "qualificationsTypeName", label: "资质类别", onlyForLabel: true }, { name: "stakeholderLevel", - label: "资质级别", + label: "资质等级", render: ( { /> ), }, - { name: "stakeholderLevelName", label: "资质级别", onlyForLabel: true }, + { name: "stakeholderLevelName", label: "资质等级", onlyForLabel: true }, { name: "groupUnitId", - label: "集团单位", + label: "集团单位主管公司", dependencies: ["stakeholderLevel", "qualificationsTypeId"], - hidden: formValues => !(formValues.stakeholderLevel === "two-level" || formValues.qualificationsTypeId === "wzgll"), + hidden: formValues => !(formValues.stakeholderLevel === "two-level" + || formValues.stakeholderLevel === "other-level"), render: FORM_ITEM_RENDER_ENUM.SELECT, items: corpInfoList, itemsField: { valueKey: "id", labelKey: "corpName" }, @@ -153,25 +162,25 @@ const StepOneComponent = (props) => { })); form.setFieldValue("groupUnitDept", ""); form.setFieldValue("groupUnitDeptName", ""); - form.setFieldValue("groupUnitUser", ""); - form.setFieldValue("groupUnitUserName", ""); + form.setFieldValue("groupUnitUser", []); + form.setFieldValue("groupUnitUserName", []); }, }, }, - { name: "groupUnitName", label: "集团单位名称", onlyForLabel: true }, + { name: "groupUnitName", label: "集团单位主管公司名称", onlyForLabel: true }, { name: "groupUnitDept", label: "部门", dependencies: ["stakeholderLevel", "qualificationsTypeId"], - hidden: formValues => !(formValues.stakeholderLevel === "two-level" || formValues.qualificationsTypeId === "wzgll"), + hidden: formValues => !(formValues.stakeholderLevel === "two-level" || formValues.stakeholderLevel === "other-level"), render: ( form.setFieldValue("groupUnitDeptName", label)} onChange={() => { - form.setFieldValue("groupUnitUser", ""); - form.setFieldValue("groupUnitUserName", ""); + form.setFieldValue("groupUnitUser", []); + form.setFieldValue("groupUnitUserName", []); }} /> ), @@ -181,10 +190,12 @@ const StepOneComponent = (props) => { name: "groupUnitUser", label: "负责人", dependencies: ["stakeholderLevel", "qualificationsTypeId"], - hidden: formValues => !(formValues.stakeholderLevel === "two-level" || formValues.qualificationsTypeId === "wzgll"), + hidden: formValues => !(formValues.stakeholderLevel === "two-level" || formValues.stakeholderLevel === "other-level"), render: ( form.setFieldValue("groupUnitUserName", label)} /> ), diff --git a/src/pages/Container/BranchCompany/Qualification/Apply/List/index.js b/src/pages/Container/BranchCompany/Qualification/Apply/List/index.js index 1202005..7b2949e 100644 --- a/src/pages/Container/BranchCompany/Qualification/Apply/List/index.js +++ b/src/pages/Container/BranchCompany/Qualification/Apply/List/index.js @@ -33,7 +33,7 @@ function List(props) { options={[ { name: "qualificationsName", label: "资质名称" }, { name: "qualificationsTypeId", label: "资质类别", render: () }, - { name: "stakeholderLevel", label: "资质级别", render: () }, + { name: "stakeholderLevel", label: "资质等级", render: () }, ]} form={form} onFinish={getData} @@ -57,7 +57,7 @@ function List(props) { columns={[ { title: "资质名称", dataIndex: "qualificationsName" }, { title: "资质类别", dataIndex: "qualificationsTypeName" }, - { title: "资质级别", dataIndex: "stakeholderLevelName" }, + { title: "资质等级", dataIndex: "stakeholderLevelName" }, { title: "材料数量", dataIndex: "materialNum" }, { title: "审核公司", dataIndex: "groupUnitName" }, { title: "审核状态", dataIndex: "status", render: (_, record) => ( diff --git a/src/pages/Container/BranchCompany/Qualification/Apply/View/index.js b/src/pages/Container/BranchCompany/Qualification/Apply/View/index.js index 0dee0c9..8f07fea 100644 --- a/src/pages/Container/BranchCompany/Qualification/Apply/View/index.js +++ b/src/pages/Container/BranchCompany/Qualification/Apply/View/index.js @@ -61,7 +61,7 @@ function View(props) { styles={{ label: { width: 200 } }} items={[ { label: "资质类别", children: info.qualificationsTypeName }, - { label: "资质级别", children: info.stakeholderLevelName }, + { label: "资质等级", children: info.stakeholderLevelName }, ...(info.stakeholderLevel === "two-level" ? [ { label: "集团单位", children: info.groupUnitName }, diff --git a/src/pages/Container/BranchCompany/Qualification/Records/List/index.js b/src/pages/Container/BranchCompany/Qualification/Records/List/index.js index 18c92ab..b3ed0c2 100644 --- a/src/pages/Container/BranchCompany/Qualification/Records/List/index.js +++ b/src/pages/Container/BranchCompany/Qualification/Records/List/index.js @@ -39,7 +39,7 @@ function List(props) { label: "资质类别", render: (), }, - { name: "stakeholderLevel", label: "资质级别", render: () }, + { name: "stakeholderLevel", label: "资质等级", render: () }, { name: "auditStatus", label: "审核状态", @@ -59,7 +59,7 @@ function List(props) { { title: "相关方名称", dataIndex: "corpName" }, { title: "资质名称", dataIndex: "qualificationsName" }, { title: "资质类别", dataIndex: "qualificationsTypeName" }, - { title: "资质级别", dataIndex: "stakeholderLevelName" }, + { title: "资质等级", dataIndex: "stakeholderLevelName" }, { title: "时效属性", dataIndex: "isLongTerm", render: (_, record) => record.isLongTerm ? "长期" : "短期" }, { title: "材料数", dataIndex: "materialNum" }, { diff --git a/src/pages/Container/BranchCompany/Qualification/Review/List/index.js b/src/pages/Container/BranchCompany/Qualification/Review/List/index.js index 9aaeddb..d9a0d2a 100644 --- a/src/pages/Container/BranchCompany/Qualification/Review/List/index.js +++ b/src/pages/Container/BranchCompany/Qualification/Review/List/index.js @@ -25,7 +25,7 @@ function List(props) { label: "资质类别", render: (), }, - { name: "stakeholderLevel", label: "资质级别", render: () }, + { name: "stakeholderLevel", label: "资质等级", render: () }, ]} form={form} onFinish={getData} @@ -35,7 +35,7 @@ function List(props) { { title: "相关方名称", dataIndex: "corpName" }, { title: "资质名称", dataIndex: "qualificationsName" }, { title: "资质类别", dataIndex: "qualificationsTypeName" }, - { title: "资质级别", dataIndex: "stakeholderLevelName" }, + { title: "资质等级", dataIndex: "stakeholderLevelName" }, { title: "材料数", dataIndex: "materialNum" }, { title: "资质状态", diff --git a/src/pages/Container/Local/Qualification/Review/List/index.js b/src/pages/Container/Local/Qualification/Review/List/index.js index 1dc67e2..20722b8 100644 --- a/src/pages/Container/Local/Qualification/Review/List/index.js +++ b/src/pages/Container/Local/Qualification/Review/List/index.js @@ -25,7 +25,7 @@ function List(props) { label: "资质类别", render: (), }, - { name: "stakeholderLevel", label: "资质级别", render: () }, + { name: "stakeholderLevel", label: "资质等级", render: () }, ]} form={form} onFinish={getData} @@ -35,7 +35,7 @@ function List(props) { { title: "相关方名称", dataIndex: "corpName" }, { title: "资质名称", dataIndex: "qualificationsName" }, { title: "资质类别", dataIndex: "qualificationsTypeName" }, - { title: "资质级别", dataIndex: "stakeholderLevelName" }, + { title: "资质等级", dataIndex: "stakeholderLevelName" }, { title: "材料数", dataIndex: "materialNum" }, { title: "资质状态", diff --git a/src/pages/Container/Local/Qualification/Review/Review/index.js b/src/pages/Container/Local/Qualification/Review/Review/index.js index 68d26e0..ccb43f3 100644 --- a/src/pages/Container/Local/Qualification/Review/Review/index.js +++ b/src/pages/Container/Local/Qualification/Review/Review/index.js @@ -11,10 +11,8 @@ import ViewInfo from "../../ViewInfo"; function Review() { const query = useGetUrlQuery(); - const [rejectModalOpen, setRejectModalOpen] = useState(false); const [passModalOpen, setPassModalOpen] = useState(false); - return (
+ ); } diff --git a/src/pages/Container/Stakeholder/Qualification/Apply/List/index.js b/src/pages/Container/Stakeholder/Qualification/Apply/List/index.js index 664f9e1..bb8d343 100644 --- a/src/pages/Container/Stakeholder/Qualification/Apply/List/index.js +++ b/src/pages/Container/Stakeholder/Qualification/Apply/List/index.js @@ -33,7 +33,7 @@ function List(props) { options={[ { name: "qualificationsName", label: "资质名称" }, { name: "qualificationsTypeId", label: "资质类别", render: () }, - { name: "stakeholderLevel", label: "资质级别", render: () }, + { name: "stakeholderLevel", label: "资质等级", render: () }, ]} form={form} onFinish={getData} @@ -57,10 +57,10 @@ function List(props) { columns={[ { title: "资质名称", dataIndex: "qualificationsName" }, { title: "资质类别", dataIndex: "qualificationsTypeName" }, - { title: "资质级别", dataIndex: "stakeholderLevelName" }, + { title: "资质等级", dataIndex: "stakeholderLevelName" }, { title: "材料数量", dataIndex: "materialNum" }, { title: "直属审核公司", dataIndex: "groupUnitName" }, - { title: "备注", dataIndex: "remarks" }, + // { title: "备注", dataIndex: "remarks" }, { title: "审核状态", dataIndex: "status", render: (_, record) => ( <> {record.status === 200 && "审核中"} diff --git a/src/pages/Container/Supervision/Qualification/Maintenance/Add/index.js b/src/pages/Container/Supervision/Qualification/Maintenance/Add/index.js index a687519..11083c9 100644 --- a/src/pages/Container/Supervision/Qualification/Maintenance/Add/index.js +++ b/src/pages/Container/Supervision/Qualification/Maintenance/Add/index.js @@ -1,6 +1,6 @@ import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Form, message } from "antd"; -import { useEffect } from "react"; +import { useEffect, useState } from "react"; import FormBuilder from "zy-react-library/components/FormBuilder"; import Page from "zy-react-library/components/Page"; import DictionarySelect from "zy-react-library/components/Select/Dictionary"; @@ -13,10 +13,14 @@ import { NS_QUALIFICATION_MAINTENANCE } from "~/enumerate/namespace"; function Add(props) { const query = useGetUrlQuery(); const [form] = Form.useForm(); + const [corpTypeList, setCorpTypeList] = useState([2]); const managerDept = Form.useWatch("managerDept", form); const getData = async () => { const { data } = await props["qualificationMaintenanceInfo"]({ id: query.id }); + if (data.qualificationsTypeId === "wzgll") { + setCorpTypeList([6]); + } form.setFieldsValue({ ...data, managerUser: data.managerUser.split(","), @@ -27,7 +31,6 @@ function Add(props) { useEffect(() => { query.id && getData(); }, []); - const onSubmit = async (values) => { const { success } = await props[!query.id ? "qualificationMaintenanceAdd" : "qualificationMaintenanceUpdate"]({ ...values, @@ -37,7 +40,7 @@ function Add(props) { }); if (success) { message.success("操作成功"); - props.history.goBack(); + // props.history.goBack(); } }; @@ -58,13 +61,26 @@ function Add(props) { onFinish={onSubmit} options={[ { key: "divider-basic", label: "基础信息", render: FORM_ITEM_RENDER_ENUM.DIVIDER }, - { name: "qualificationsName", label: "资质名称", span: 24 }, + { name: "qualificationsName", label: "资质名称", span: 24, componentProps: { disabled: query.id } }, { name: "qualificationsTypeId", label: "资质类别", render: ( { + if (v.dictValue === "wzgll") { + setCorpTypeList([6]); + } + else { + setCorpTypeList([2]); + } + form.setFieldValue("managerDept", []); + form.setFieldValue("managerDeptName", []); + form.setFieldValue("managerUser", []); + form.setFieldValue("managerUserName", []); + }} onGetLabel={(label) => { form.setFieldValue("qualificationsTypeName", label); }} @@ -74,41 +90,52 @@ function Add(props) { { name: "qualificationsTypeName", label: "资质类别", onlyForLabel: true }, { name: "stakeholderLevel", - label: "资质级别", + label: "资质等级", render: ( { form.setFieldValue("stakeholderLevelName", label); }} /> ), + componentProps: { disabled: query.id }, }, - { name: "stakeholderLevelName", label: "资质级别", onlyForLabel: true }, + { name: "stakeholderLevelName", label: "资质等级", onlyForLabel: true, componentProps: { disabled: query.id } }, { name: "managerDept", label: "主管部门", render: ( { form.setFieldValue("managerDeptName", label); }} onChange={(_, __, extra) => { + console.log(extra); form.setFieldValue("managerUser", []); form.setFieldValue("managerUserName", []); form.setFieldValue("corpId", extra.triggerNode.props.corpinfoId); + form.setFieldValue("managerCorpId", extra.triggerNode.props.corpinfoId); + form.setFieldValue("managerCorpName", extra.triggerNode.props.corpinfoName); }} /> ), }, { name: "managerDeptName", label: "主管部门名称", onlyForLabel: true }, { name: "corpId", label: "主管部门所属公司", onlyForLabel: true }, + { name: "managerCorpId", label: "主管部门所属公司", onlyForLabel: true }, + { name: "managerCorpName", label: "主管部门所属公司名称", onlyForLabel: true }, { name: "managerUser", - label: "主管人员", + label: "选择审核人", render: ( { form.setFieldValue("managerUserName", label); @@ -116,7 +143,7 @@ function Add(props) { /> ), }, - { name: "managerUserName", label: "主管人员名称", onlyForLabel: true }, + { name: "managerUserName", label: "审核人名称", onlyForLabel: true }, { name: "status", label: "是否启用", diff --git a/src/pages/Container/Supervision/Qualification/Maintenance/List/index.js b/src/pages/Container/Supervision/Qualification/Maintenance/List/index.js index c304e93..7795fd6 100644 --- a/src/pages/Container/Supervision/Qualification/Maintenance/List/index.js +++ b/src/pages/Container/Supervision/Qualification/Maintenance/List/index.js @@ -37,7 +37,7 @@ function List(props) { options={[ { name: "qualificationsName", label: "资质名称" }, { name: "qualificationsTypeId", label: "资质类别", render: () }, - { name: "stakeholderLevel", label: "资质级别", render: () }, + { name: "stakeholderLevel", label: "资质等级", render: () }, ]} form={form} onFinish={getData} @@ -61,10 +61,11 @@ function List(props) { columns={[ { title: "资质名称", dataIndex: "qualificationsName" }, { title: "资质类别", dataIndex: "qualificationsTypeName" }, - { title: "资质级别", dataIndex: "stakeholderLevelName" }, + { title: "资质等级", dataIndex: "stakeholderLevelName" }, + { title: "审核单位", dataIndex: "managerCorpName" }, { title: "主管部门", dataIndex: "managerDeptName" }, { title: "材料数量", dataIndex: "materialNum", render: (_, record) => record.details?.length || 0 }, - { title: "状态", dataIndex: "status", render: (_, record) => record.status === 0 ? "启用" : "禁用" }, + { title: "资质状态", dataIndex: "status", render: (_, record) => record.status === 0 ? "启用" : "禁用" }, { title: "操作", fixed: "right", diff --git a/src/pages/Container/Supervision/Qualification/Records/History/index.js b/src/pages/Container/Supervision/Qualification/Records/History/index.js index a908d70..f2b6f47 100644 --- a/src/pages/Container/Supervision/Qualification/Records/History/index.js +++ b/src/pages/Container/Supervision/Qualification/Records/History/index.js @@ -17,7 +17,7 @@ function History(props) { { title: "相关方名称", dataIndex: "corpName" }, { title: "资质名称", dataIndex: "qualificationsName" }, { title: "资质类别", dataIndex: "qualificationsTypeName" }, - { title: "资质级别", dataIndex: "stakeholderLevelName" }, + { title: "资质等级", dataIndex: "stakeholderLevelName" }, { title: "材料数", dataIndex: "materialNum" }, { title: "资质状态", diff --git a/src/pages/Container/Supervision/Qualification/Records/List/index.js b/src/pages/Container/Supervision/Qualification/Records/List/index.js index 0e40642..387e8ad 100644 --- a/src/pages/Container/Supervision/Qualification/Records/List/index.js +++ b/src/pages/Container/Supervision/Qualification/Records/List/index.js @@ -34,7 +34,7 @@ function List(props) { label: "资质类别", render: (), }, - { name: "stakeholderLevel", label: "资质级别", render: () }, + { name: "stakeholderLevel", label: "资质等级", render: () }, { name: "auditStatus", label: "审核状态", @@ -54,16 +54,16 @@ function List(props) { { title: "相关方名称", dataIndex: "corpName" }, { title: "资质名称", dataIndex: "qualificationsName" }, { title: "资质类别", dataIndex: "qualificationsTypeName" }, - { title: "资质级别", dataIndex: "stakeholderLevelName" }, { title: "时效属性", dataIndex: "isLongTerm", render: (_, record) => record.isLongTerm ? "长期" : "短期" }, + { title: "资质等级", dataIndex: "stakeholderLevelName" }, { title: "材料数", dataIndex: "materialNum" }, { - title: "资质状态", + title: "资质资料状态", dataIndex: "qualificationsStatus", render: (_, record) => (
{record.qualificationsStatus === 0 && "正常"} - {record.qualificationsStatus === 1 && "待完善"} + {record.qualificationsStatus === 1 && "资质待完善"} {record.qualificationsStatus === 2 && ( ), }, - { title: "时效性", dataIndex: "qualificationsTermStart", render: (_, record) => record.qualificationsTermStart ? `${record.qualificationsTermStart}至${record.qualificationsTermEnd}` : "-" }, + // { title: "时效性", dataIndex: "qualificationsTermStart", render: (_, record) => record.qualificationsTermStart ? `${record.qualificationsTermStart}至${record.qualificationsTermEnd}` : "-" }, { title: "操作", fixed: "right", diff --git a/src/pages/Container/Supervision/Qualification/Review/List/index.js b/src/pages/Container/Supervision/Qualification/Review/List/index.js index 23a1029..48bcab3 100644 --- a/src/pages/Container/Supervision/Qualification/Review/List/index.js +++ b/src/pages/Container/Supervision/Qualification/Review/List/index.js @@ -25,7 +25,7 @@ function List(props) { label: "资质类别", render: (), }, - { name: "stakeholderLevel", label: "资质级别", render: () }, + { name: "stakeholderLevel", label: "资质等级", render: () }, ]} form={form} onFinish={getData} @@ -40,7 +40,7 @@ function List(props) { }, { title: "资质名称", dataIndex: "qualificationsName" }, { title: "资质类别", dataIndex: "qualificationsTypeName" }, - { title: "资质级别", dataIndex: "stakeholderLevelName" }, + { title: "资质等级", dataIndex: "stakeholderLevelName" }, { title: "材料数", dataIndex: "materialNum" }, { title: "资质状态", diff --git a/src/pages/Container/Supervision/Qualification/ViewInfo/index.js b/src/pages/Container/Supervision/Qualification/ViewInfo/index.js index 4632f29..408ac49 100644 --- a/src/pages/Container/Supervision/Qualification/ViewInfo/index.js +++ b/src/pages/Container/Supervision/Qualification/ViewInfo/index.js @@ -65,7 +65,7 @@ function ViewInfo(props) { const { data: corpInfoData } = await props["corpInfoDetails"]({ id: data.corpId }); const licenseFile = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["6"], - eqForeignKey: data.corpId, + eqForeignKey: corpInfoData.corpinfoId, }); corpInfoData.licenseFile = licenseFile; setCorpInfoData(corpInfoData); @@ -125,7 +125,7 @@ function ViewInfo(props) { { label: "所属集团单位", children: info.groupUnitName }, { label: "资质名称", children: info.qualificationsName }, { label: "资质类别", children: info.qualificationsTypeName }, - { label: "资质级别", children: info.stakeholderLevelName }, + { label: "资质等级", children: info.stakeholderLevelName }, { label: "材料数", children: info.materialNum }, { label: "备注", children: info.remarks }, ]} @@ -165,7 +165,7 @@ function ViewInfo(props) { children: getLabelName({ status: corpInfoData.type, list: ENTERPRISE_TYPE }), }, { label: "营业执照", children: }, - { label: "营业执照有效期", children: `${corpInfoData.licenseStart} 至 ${corpInfoData.licenseEnd}` }, + { label: "营业执照有效期", children: corpInfoData.licenseStart ? `${corpInfoData.licenseStart} 至 ${corpInfoData.licenseEnd}` : "" }, ]} />