安全环保检查增加申辩说明

master
LiuJiaNan 2026-01-21 15:33:12 +08:00
parent d6d0bd4c24
commit 5f3130e792
1 changed files with 3 additions and 38 deletions

View File

@ -5,7 +5,6 @@ import { useReactToPrint } from "react-to-print";
import HiddenInfo from "zy-react-library/components/HiddenInfo/gwj"; import HiddenInfo from "zy-react-library/components/HiddenInfo/gwj";
import Page from "zy-react-library/components/Page"; import Page from "zy-react-library/components/Page";
import PreviewImg from "zy-react-library/components/PreviewImg"; import PreviewImg from "zy-react-library/components/PreviewImg";
import PreviewPdf from "zy-react-library/components/PreviewPdf";
import Table from "zy-react-library/components/Table"; import Table from "zy-react-library/components/Table";
import { UPLOAD_FILE_TYPE_ENUM } from "zy-react-library/enum/uploadFile/gwj"; import { UPLOAD_FILE_TYPE_ENUM } from "zy-react-library/enum/uploadFile/gwj";
import useGetFile from "zy-react-library/hooks/useGetFile"; import useGetFile from "zy-react-library/hooks/useGetFile";
@ -163,7 +162,7 @@ function InspectionView(props) {
<tr> <tr>
<th>序号</th> <th>序号</th>
<th>隐患描述</th> <th>隐患描述</th>
{/*<th>隐患部位</th>*/} {/* <th>隐患部位</th> */}
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -172,7 +171,7 @@ function InspectionView(props) {
<tr key={item.id}> <tr key={item.id}>
<td>{index + 1}</td> <td>{index + 1}</td>
<td>{item.hiddenDesc}</td> <td>{item.hiddenDesc}</td>
{/*<td>{item.hiddenPartName}</td>*/} {/* <td>{item.hiddenPartName}</td> */}
</tr> </tr>
)) ))
} }
@ -220,43 +219,9 @@ function InspectionView(props) {
styles={{ label: { width: 200 } }} styles={{ label: { width: 200 } }}
items={[ items={[
{ label: "被检查单位现场负责人(签字)", children: (<PreviewImg files={info.inspectedPartyConfirmation?.status ? [info.inspectedPartyConfirmation.signature] : []} />) }, { label: "被检查单位现场负责人(签字)", children: (<PreviewImg files={info.inspectedPartyConfirmation?.status ? [info.inspectedPartyConfirmation.signature] : []} />) },
{ label: "申辩描述", children: defenseInfo.content },
]} ]}
/> />
{
Object.keys(defenseInfo).length > 0 && (
<>
<Divider orientation="left">申辩说明</Divider>
<Descriptions
column={1}
bordered
styles={{ label: { width: 200 } }}
items={[
{ label: "申辩时间", children: defenseInfo.createTime },
{ label: "申辩描述", children: defenseInfo.content },
{ label: "申辩状态", children: (
<>
<div>{defenseInfo.isPass === 0 && "未审批"}</div>
<div>{defenseInfo.isPass === 1 && "通过"}</div>
<div>{defenseInfo.isPass === 2 && "未通过"}</div>
</>
) },
{ label: "申辩状态", children: defenseInfo.content },
{ label: "签字图片", children: (<PreviewImg files={defenseInfo.signature ? [defenseInfo.signature] : []} />) },
...(
defenseInfo.files?.length > 0
? [
{ label: "申辩附件", children: (<PreviewPdf files={defenseInfo.files} />) },
]
: []
),
{ label: "检查人签字", children: (<PreviewImg files={defenseInfo.checkSign ? [defenseInfo.checkSign] : []} />) },
{ label: "检查人意见", children: defenseInfo.checkRemarks },
{ label: "审批时间", children: defenseInfo.checkSignTime },
]}
/>
</>
)
}
</div> </div>
</Spin> </Spin>
{hiddenViewModalOpen && ( {hiddenViewModalOpen && (