From ba4463711cb68dbe62a774f4e4f8836cbac1636a Mon Sep 17 00:00:00 2001 From: tangjie <122778500@qq.com> Date: Thu, 16 Jul 2026 18:14:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=8A=A4bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/StaffViewModal/index.js | 8 +-- .../components/OrgPersonnelSelectModal.jsx | 1 + .../BasicInfo/RegisteredOrg/Detail/index.js | 50 +++++++++++-------- 3 files changed, 35 insertions(+), 24 deletions(-) diff --git a/src/components/StaffViewModal/index.js b/src/components/StaffViewModal/index.js index ce7231e..b7df7d4 100644 --- a/src/components/StaffViewModal/index.js +++ b/src/components/StaffViewModal/index.js @@ -225,10 +225,10 @@ export default function StaffViewModal({ dataSource={certificates} locale={{ emptyText: "暂无证照信息" }} columns={[ - { title: "证照名称", dataIndex: "certName" }, - { title: "证书编号", dataIndex: "certNo" }, - { title: "证书类别", dataIndex: "certTypeName" }, - { title: "发证机关", dataIndex: "issueOrg" }, + { title: "证照名称", dataIndex: "certName",ellipsis: true }, + { title: "证书编号", dataIndex: "certNo",ellipsis: true }, + { title: "证书类别", dataIndex: "certTypeName",ellipsis: true }, + { title: "发证机关", dataIndex: "issueOrg",ellipsis: true }, { title: "有效开始日期", dataIndex: "validStartDate", width: 120 }, { title: "有效结束日期", dataIndex: "validEndDate", width: 120 }, { diff --git a/src/pages/Container/QualApplication/FilingForm/components/OrgPersonnelSelectModal.jsx b/src/pages/Container/QualApplication/FilingForm/components/OrgPersonnelSelectModal.jsx index ee21c62..900ec28 100644 --- a/src/pages/Container/QualApplication/FilingForm/components/OrgPersonnelSelectModal.jsx +++ b/src/pages/Container/QualApplication/FilingForm/components/OrgPersonnelSelectModal.jsx @@ -22,6 +22,7 @@ function OrgPersonnelSelectModalInner(props) { current: page, size: pageSize, userName: values.staffName || undefined, + employmentStatusCode: 1, }); if (res?.success !== false) { setDataSource(res?.data || []); diff --git a/src/pages/Container/Supervision/BasicInfo/RegisteredOrg/Detail/index.js b/src/pages/Container/Supervision/BasicInfo/RegisteredOrg/Detail/index.js index 510811f..ea55bc7 100644 --- a/src/pages/Container/Supervision/BasicInfo/RegisteredOrg/Detail/index.js +++ b/src/pages/Container/Supervision/BasicInfo/RegisteredOrg/Detail/index.js @@ -4,10 +4,12 @@ import { Col, DatePicker, Form, + Image, Input, InputNumber, Row, Select, + Modal, Spin, Table, Tabs, @@ -18,7 +20,6 @@ import { import dayjs from "dayjs"; import { useEffect, useMemo, useState } from "react"; import PageLayout from "@cqsjjb/jjb-react-admin-component/PageLayout"; -import FilePreviewModal from "~/components/FilePreviewModal"; import { fetchRegisteredOrgDetail, fetchRegisteredOrgPersonnelList, @@ -108,9 +109,7 @@ function isImageUrl(url) { } function MaterialsTab({ materialGroups, loading, onPreview }) { - if (loading) { - return ; - } + const groups = Object.entries(materialGroups || {}).map( ([code, list], index) => { const items = Array.isArray(list) ? list : []; @@ -190,6 +189,7 @@ function MaterialsTab({ materialGroups, loading, onPreview }) { > { @@ -596,16 +596,14 @@ function RegisteredOrgDetailPage(props) { materialGroups={materialGroups} loading={extrasLoading} onPreview={(record) => { - const url = resolvePreviewUrl(record?.previewUrl); - if (!url) { + const urlStr = record?.previewUrl; + if (!urlStr) { message.warning("该材料暂无可预览的附件"); return; } - if (isImageUrl(url)) { - setFilePreview(record); - } else { - window.open(url, "_blank"); - } + const urls = String(urlStr) + ?.split(","); + setPreviewImages(urls || []); }} /> ), @@ -630,13 +628,25 @@ function RegisteredOrgDetailPage(props) {

- setFilePreview(null)} - /> + 0} + title="材料预览" + width={750} + footer={null} + onCancel={() => setPreviewImages([])} + > + +
+ {previewImages.map((url, idx) => ( + + ))} +
+
+
{viewPersonnelId && (