From dee87f2e6d3743bf7938037f1e16e8480d74552c Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Wed, 19 Nov 2025 17:38:25 +0800 Subject: [PATCH] =?UTF-8?q?HiddenInfo=E8=A1=A5=E5=85=A8=20=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E7=8E=AF=E4=BF=9D=E9=AA=8C=E6=94=B6=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/HiddenInfo/gwj/index.js | 47 +++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/components/HiddenInfo/gwj/index.js b/components/HiddenInfo/gwj/index.js index 5873f65..4c6513e 100644 --- a/components/HiddenInfo/gwj/index.js +++ b/components/HiddenInfo/gwj/index.js @@ -33,6 +33,7 @@ function HiddenInfo(props) { }, hiddenConfirmUserCO: {}, hiddenAcceptUserCO: {}, + hiddenInspecCO: {}, hiddenSpecialList: [], hiddenExtensionList: [], }); @@ -41,7 +42,9 @@ function HiddenInfo(props) { const [afterRectificationImageFiles, setAfterRectificationImageFiles] = useState([]); const [rectificationPlanImageFiles, setRectificationPlanImageFiles] = useState([]); const [acceptImageFiles, setAcceptImageFiles] = useState([]); + const [inspectionAcceptImageFiles, setInspectionAcceptImageFiles] = useState([]); const [loading, setLoading] = useState(true); + const { getFile } = useGetFile(); const query = useGetUrlQuery(); const { loading: downloadFileLoading, downloadFile } = useDownloadFile(); @@ -72,7 +75,15 @@ function HiddenInfo(props) { const acceptImageFiles = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["5"], eqForeignKey: hiddenId || query[hiddenIdKey] }); setAcceptImageFiles(acceptImageFiles); } - } + + if (info.hiddenInspecCO && Object.keys(info.hiddenInspecCO).length > 0) { + const inspectionAcceptImageFiles = await getFile({ + eqType: UPLOAD_FILE_TYPE_ENUM["146"], + eqForeignKey: info.hiddenInspecCO.foreignKey, + }); + setInspectionAcceptImageFiles(inspectionAcceptImageFiles); + } + }; const getData = async () => { request(`/hidden/hidden/${id || query[idKey]}`, "get").then((res) => { @@ -388,19 +399,27 @@ function HiddenInfo(props) { ) : null } - 安全环保验收信息 - + { + (info.hiddenInspecCO && Object.keys(info.hiddenInspecCO).length > 0) + ? ( + <> + 安全环保验收信息 + }, + ]} + /> + + ) + : null + }