diff --git a/jjb.config.js b/jjb.config.js index 3adbd54..acaeda2 100644 --- a/jjb.config.js +++ b/jjb.config.js @@ -12,10 +12,10 @@ module.exports = { // 可通过环境变量覆盖: SAFETY_EVAL_API_HOST=http://192.168.x.x:8095 //API_HOST: "http://localhost:80", - // API_HOST: "http://192.168.0.134", + API_HOST: "http://192.168.0.134", // API_HOST: "http://192.168.0.150", //太浅 // API_HOST: "https://gbs-gateway.qhdsafety.com", - API_HOST: "http://192.168.0.103", //huwei + //API_HOST: "http://192.168.0.103", //huwei }, production: { // 应用后端分支名称,部署上线需要 diff --git a/src/api/regulatorEvalReport/index.js b/src/api/regulatorEvalReport/index.js index 2f05837..0a193ca 100644 --- a/src/api/regulatorEvalReport/index.js +++ b/src/api/regulatorEvalReport/index.js @@ -41,3 +41,9 @@ export const regulatorSpotcheckDetail = declareRequest( "regulatorSpotcheckDetailLoading", "Get > /safetyEval/regulator/eval-report-spotcheck/get", ); + +export const regulatorSpotCheckReport = declareRequest( + "regulatorSpotCheckReportLoading", + "Post > @/safetyEval/regulator/eval-report/spotCheckReport", + "data: [] | res.data || []", +); diff --git a/src/pages/Container/SafetyEvalBusiness/EvalReportLibrary/index.js b/src/pages/Container/SafetyEvalBusiness/EvalReportLibrary/index.js index cde817c..7442489 100644 --- a/src/pages/Container/SafetyEvalBusiness/EvalReportLibrary/index.js +++ b/src/pages/Container/SafetyEvalBusiness/EvalReportLibrary/index.js @@ -18,11 +18,7 @@ import { Tag, Tooltip, } from "antd"; -import { - PlusOutlined, - UploadOutlined, - SendOutlined, -} from "@ant-design/icons"; +import { PlusOutlined, UploadOutlined, SendOutlined } from "@ant-design/icons"; import PageLayout from "@cqsjjb/jjb-react-admin-component/PageLayout"; import SearchForm from "@cqsjjb/jjb-react-admin-component/SearchForm"; import ControlWrapper from "@cqsjjb/jjb-react-admin-component/ControlWrapper"; @@ -314,9 +310,15 @@ const EvalReportLibrary = (props) => { reportName: values.reportName?.trim(), reportYear: values.reportYear, evalTypeCode: values.evalTypeCode, - evalTypeName: getOptionLabel(REPORT_EVAL_TYPE_OPTIONS, values.evalTypeCode), + evalTypeName: getOptionLabel( + REPORT_EVAL_TYPE_OPTIONS, + values.evalTypeCode, + ), industryCode: values.industryCode, - industryName: getOptionLabel(REPORT_INDUSTRY_OPTIONS, values.industryCode), + industryName: getOptionLabel( + REPORT_INDUSTRY_OPTIONS, + values.industryCode, + ), evaluatedUnitName: values.evaluatedUnitName?.trim(), issueDate: values.issueDate ? dayjs(values.issueDate).format("YYYY-MM-DD") @@ -329,8 +331,12 @@ const EvalReportLibrary = (props) => { SECRET_LEVEL_OPTIONS, values.secretLevelCode, ), - contractFileUrls: contractFiles.length > 0 ? JSON.stringify(contractFiles) : undefined, - processDocUrls: processDocFiles.length > 0 ? JSON.stringify(processDocFiles) : undefined, + contractFileUrls: + contractFiles.length > 0 ? JSON.stringify(contractFiles) : undefined, + processDocUrls: + processDocFiles.length > 0 + ? JSON.stringify(processDocFiles) + : undefined, remarks: values.remarks, submitToRegulator: values.submitToRegulator === 1, }; @@ -403,8 +409,16 @@ const EvalReportLibrary = (props) => { title: "确认报送", icon: , content: ( -
- 确定要将报告「{record.reportName}」报送至监管端吗?报送后监管端可进行抽查审核。 +
+ 确定要将报告「{record.reportName} + 」报送至监管端吗?报送后监管端可进行抽查审核。
), okText: "确认报送", @@ -439,8 +453,16 @@ const EvalReportLibrary = (props) => { title: "确认批量报送", icon: , content: ( -
- 确定要将已勾选的 {ids.length} 份「未报送」报告报送至监管端吗?报送后监管端可进行抽查审核。 +
+ 确定要将已勾选的 {ids.length}{" "} + 份「未报送」报告报送至监管端吗?报送后监管端可进行抽查审核。
), okText: "确认批量报送", @@ -545,7 +567,10 @@ const EvalReportLibrary = (props) => { const tag = {name}; if (isSpotcheckRelated(record)) { return ( - handleViewSpotcheck(record)} className="erl-status-link"> + handleViewSpotcheck(record)} + className="erl-status-link" + > {tag} ); @@ -558,9 +583,6 @@ const EvalReportLibrary = (props) => { title: "报告编号", dataIndex: "reportNo", width: 160, - render: (val) => ( - {val || "-"} - ), }, { title: "报告名称", @@ -621,21 +643,10 @@ const EvalReportLibrary = (props) => { fixed: "right", render: (_, record) => ( - - + handleViewDetail(record)}>查看 + handleDownload(record)}>下载 {isUnsubmitted(record) && ( - + handleSubmitToRegulator(record)}>报送 )} ), @@ -713,7 +724,11 @@ const EvalReportLibrary = (props) => { record.checkResultCode === 2 && !record.rectifyFeedback; if (!needRectify) return "-"; return ( - ); @@ -750,565 +765,628 @@ const EvalReportLibrary = (props) => { return ( - - - - - } - > -
-
- 上传过去三年已执行项目的正式报告,按年度、评价类型、行业和企业分类管理,并可报送监管端抽查。 -
- -
- {summaryItems.map((item) => ( -
- {item.label} - - {item.value ?? "-"} - -
- ))} -
- - - - , - - - , - - - , - - - , - - - , - ]} - onFinish={handleSearch} - onReset={handleReset} - /> - - setSelectedRowKeys(keys), - getCheckboxProps: (record) => ({ - disabled: !isUnsubmitted(record), - }), - }} - scroll={{ y: props.scrollY, x: 1400 }} - pagination={{ - total, - current: Number(router.query.current) || 1, - pageSize: Number(router.query.size) || 10, - showSizeChanger: true, - showQuickJumper: true, - showTotal: (count) => `共 ${count} 条`, - }} - onChange={handlePageChange} - /> - - - {/* 上传历史报告 */} - -
上传历史报告
-
- 上传过去三年已完成并正式签发的安全评价报告 -
- + + + + } - open={addVisible} - onCancel={() => setAddVisible(false)} - onOk={handleAddOk} - confirmLoading={evalReportAddLoading} - okText="确认上传" - cancelText="取消" - width={820} - destroyOnClose - className="erl-upload-modal" > -
- - +
+
+ 上传过去三年已执行项目的正式报告,按年度、评价类型、行业和企业分类管理,并可报送监管端抽查。 +
- { - if (!uploadForm.getFieldValue("fileUrl")) { - throw new Error("请选择正式报告文件"); - } - }, - }, +
+ {summaryItems.map((item) => ( +
+ {item.label} + + {item.value ?? "-"} + +
+ ))} +
+ + + +
, + + + , + + + , + + + , + + + , ]} - > -
- { - const isLt100M = file.size / 1024 / 1024 <= 100; - if (!isLt100M) { - message.error("单个文件不超过 100MB"); - return Upload.LIST_IGNORE; - } - return true; - }} - className="erl-upload-trigger" - > -
-
PDF
-
- 选择正式报告文件 -

- 支持 PDF、Word,建议上传签字盖章后的正式 PDF 文件,单个文件不超过100MB。 -

- - {uploadedFile - ? `${uploadedFile.name}` - : "尚未选择文件"} - -
- -
-
-
- + onFinish={handleSearch} + onReset={handleReset} + /> - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { - const isLt100M = file.size / 1024 / 1024 <= 100; - if (!isLt100M) { - message.error("单个文件不超过 100MB"); - return Upload.LIST_IGNORE; - } - return true; - }} - > - - - - - - - { - const isLt100M = file.size / 1024 / 1024 <= 100; - if (!isLt100M) { - message.error("单个文件不超过 100MB"); - return Upload.LIST_IGNORE; - } - return true; - }} - > - - - - - - -