抽检,报告查看调整

dev-tmp1
zhanglei 2026-08-13 09:50:44 +08:00
parent c3a5f1f75f
commit 49ca5e52ed
1 changed files with 34 additions and 1 deletions

View File

@ -155,7 +155,40 @@ const SpotCheckDetailModal = ({ open, record, onCancel }) => {
]}
/>
</ModalSection>
<ModalSection title="合同文件" desc="查看上传的合同文件。">
<ProtoTable
headers={["文件名称", "文件类型"]}
rows={parseFileList(detailData.contractFileUrls).map((f) => [
<span
key={f.url}
style={{ color: "#1677ff", cursor: "pointer" }}
onClick={() =>
handleFileDownload(f.url, f.name || "未命名文件")
}
>
{f.name || "未命名文件"}
</span>,
getFileExtLabel(f.name || f.url),
])}
/>
</ModalSection>
<ModalSection title="其他过程文档" desc="查看上传的过程文档。">
<ProtoTable
headers={["文件名称", "文件类型"]}
rows={parseFileList(detailData.processDocUrls).map((f) => [
<span
key={f.url}
style={{ color: "#1677ff", cursor: "pointer" }}
onClick={() =>
handleFileDownload(f.url, f.name || "未命名文件")
}
>
{f.name || "未命名文件"}
</span>,
getFileExtLabel(f.name || f.url),
])}
/>
</ModalSection>
</Modal>
);
};