feat
parent
9ff67beafa
commit
ec8be80200
|
|
@ -0,0 +1,53 @@
|
||||||
|
{
|
||||||
|
"openapi": "3.0.1",
|
||||||
|
"info": { "title": "审核", "version": "1.0.0" },
|
||||||
|
"paths": {
|
||||||
|
"/qual-filing/review": {
|
||||||
|
"post": {
|
||||||
|
"summary": "审核",
|
||||||
|
"tags": ["资质备案申请管理"],
|
||||||
|
"requestBody": {
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": { "$ref": "#/components/schemas/QualFilingReviewAddCmd" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK",
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": { "$ref": "#/components/schemas/SingleResponseVoid" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"components": {
|
||||||
|
"schemas": {
|
||||||
|
"QualFilingReviewAddCmd": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"filingId": { "type": "integer", "format": "int64", "description": "备案申请id(后端Long)" },
|
||||||
|
"reviewResult": { "type": "string", "description": "审核结果(1通过2待定3不通过)" },
|
||||||
|
"reviewResultRemark": { "type": "string", "description": "审核结果文字描述" },
|
||||||
|
"filingExpertId": { "type": "integer", "format": "int64", "description": "专家id(后端Long)" },
|
||||||
|
"filingExpertName": { "type": "string", "description": "专家名称" },
|
||||||
|
"reviewOpinion": { "type": "string", "description": "综合审核意见" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"SingleResponseVoid": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"success": { "type": "boolean", "description": "是否成功" },
|
||||||
|
"code": { "type": "string", "description": "响应码" },
|
||||||
|
"message": { "type": "string", "description": "响应消息" },
|
||||||
|
"data": { "type": "null", "description": "响应数据" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
/** POST /qual-filing/review — 审核 */
|
||||||
|
|
||||||
|
interface QualFilingReviewAddCmd {
|
||||||
|
filingId?: string; // 备案申请id(后端Long)
|
||||||
|
reviewResult?: string; // 审核结果(1通过2待定3不通过)
|
||||||
|
reviewResultRemark?: string; // 审核结果文字描述
|
||||||
|
filingExpertId?: string; // 专家id(后端Long)
|
||||||
|
filingExpertName?: string; // 专家名称
|
||||||
|
reviewOpinion?: string; // 综合审核意见
|
||||||
|
}
|
||||||
|
|
@ -31,3 +31,9 @@ export const deleteExpert = declareRequest(
|
||||||
"qualExpertSubmitLoading",
|
"qualExpertSubmitLoading",
|
||||||
"Post > @/safetyEval/qual-filing-expert/delete",
|
"Post > @/safetyEval/qual-filing-expert/delete",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// 审核提交
|
||||||
|
export const reviewSubmit = declareRequest(
|
||||||
|
"qualExpertSubmitLoading",
|
||||||
|
"Post > @/safetyEval/qual-filing/review",
|
||||||
|
);
|
||||||
|
|
@ -50,6 +50,13 @@ export const GENDER_OPTIONS = [
|
||||||
{ label: "女", value: 2 },
|
{ label: "女", value: 2 },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/** 审核结果 */
|
||||||
|
export const REVIEW_RESULT_OPTIONS = [
|
||||||
|
{ label: "通过", value: 1 },
|
||||||
|
|
||||||
|
{ label: "不通过", value: 3 },
|
||||||
|
];
|
||||||
|
|
||||||
/** 专家等级 */
|
/** 专家等级 */
|
||||||
export const EXPERT_LEVEL_MAP = {
|
export const EXPERT_LEVEL_MAP = {
|
||||||
1: "一级",
|
1: "一级",
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import { REVIEW_STATUS_MAP } from "~/enumerate/constant";
|
||||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { NS_QUAL_REVIEW } from "~/enumerate/namespace";
|
import { NS_QUAL_REVIEW } from "~/enumerate/namespace";
|
||||||
import { tools } from "@cqsjjb/jjb-common-lib";
|
import { tools } from "@cqsjjb/jjb-common-lib";
|
||||||
import { MOCK_DETAIL } from "../mockData";
|
|
||||||
import FilingTabs from "../FilingTabs";
|
import FilingTabs from "../FilingTabs";
|
||||||
|
|
||||||
const {router}=tools;
|
const {router}=tools;
|
||||||
|
|
@ -15,8 +14,8 @@ const {router}=tools;
|
||||||
const FilingDetail = (props) => {
|
const FilingDetail = (props) => {
|
||||||
const { qualReview, fetchQualFilingDetail } = props;
|
const { qualReview, fetchQualFilingDetail } = props;
|
||||||
const { fetchQualFilingDetailLoading, qualFilingDetail } = qualReview;
|
const { fetchQualFilingDetailLoading, qualFilingDetail } = qualReview;
|
||||||
const detail = MOCK_DETAIL;
|
|
||||||
const statusConfig = REVIEW_STATUS_MAP[detail.reviewStatus];
|
const statusConfig = REVIEW_STATUS_MAP[qualFilingDetail.reviewStatus];
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchQualFilingDetail({
|
fetchQualFilingDetail({
|
||||||
|
|
|
||||||
|
|
@ -1,48 +1,28 @@
|
||||||
import React, { useState, useEffect } from "react";
|
import React, { useState, useEffect } from "react";
|
||||||
import { Button, Form, Select, Space, Table, Tag } from "antd";
|
import { Button, Form, Select, Table, Tag } from "antd";
|
||||||
import PageLayout from "@cqsjjb/jjb-react-admin-component/PageLayout";
|
import PageLayout from "@cqsjjb/jjb-react-admin-component/PageLayout";
|
||||||
import SearchForm from "@cqsjjb/jjb-react-admin-component/SearchForm";
|
import SearchForm from "@cqsjjb/jjb-react-admin-component/SearchForm";
|
||||||
|
import TableAction from "@cqsjjb/jjb-react-admin-component/TableAction";
|
||||||
import ControlWrapper from "@cqsjjb/jjb-react-admin-component/ControlWrapper";
|
import ControlWrapper from "@cqsjjb/jjb-react-admin-component/ControlWrapper";
|
||||||
import { AntdTableFuncControl } from "@cqsjjb/jjb-common-decorator/antd";
|
import { AntdTableFuncControl } from "@cqsjjb/jjb-common-decorator/antd";
|
||||||
import { tools } from "@cqsjjb/jjb-common-lib";
|
import { tools } from "@cqsjjb/jjb-common-lib";
|
||||||
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
|
import { NS_QUAL_REVIEW } from "~/enumerate/namespace";
|
||||||
import { VERIFY_STATUS_MAP } from "~/enumerate/constant";
|
import { VERIFY_STATUS_MAP } from "~/enumerate/constant";
|
||||||
|
|
||||||
const MOCK_DATA = [
|
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
orgName: "重庆恒安安全评价有限公司",
|
|
||||||
orgType: "本地机构",
|
|
||||||
certNo: "API-2025-032",
|
|
||||||
businessScope: "化工, 建筑施工",
|
|
||||||
confirmStatus: "pending",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 2,
|
|
||||||
orgName: "重庆安环检测技术有限公司",
|
|
||||||
orgType: "本地机构",
|
|
||||||
certNo: "API-2025-028",
|
|
||||||
businessScope: "矿山",
|
|
||||||
confirmStatus: "passed",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 3,
|
|
||||||
orgName: "上海安信评价中心(重庆办)",
|
|
||||||
orgType: "异地机构",
|
|
||||||
certNo: "API-2025-045",
|
|
||||||
businessScope: "石油加工",
|
|
||||||
confirmStatus: "rejected",
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
const { router } = tools;
|
const { router } = tools;
|
||||||
|
|
||||||
const QualConfirm = (props) => {
|
const QualConfirm = (props) => {
|
||||||
const [form] = Form.useForm();
|
const [form] = Form.useForm();
|
||||||
const [loading, setLoading] = useState(false);
|
const { qualReview, queryReviewList } = props;
|
||||||
|
const { qualReviewList, qualReviewTotal, qualReviewLoading } = qualReview || {};
|
||||||
|
|
||||||
const handleSearch = () => {
|
const handleSearch = () => {
|
||||||
setLoading(true);
|
queryReviewList({
|
||||||
setTimeout(() => setLoading(false), 500);
|
...router.query,
|
||||||
|
supervision: true,
|
||||||
|
applyTypeCode: 2,
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleReset = (values) => {
|
const handleReset = (values) => {
|
||||||
|
|
@ -50,34 +30,34 @@ const QualConfirm = (props) => {
|
||||||
...router.query,
|
...router.query,
|
||||||
...values,
|
...values,
|
||||||
current: 1,
|
current: 1,
|
||||||
pageSize: 10,
|
size: 10,
|
||||||
};
|
};
|
||||||
handleSearch();
|
handleSearch();
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
form.setFieldsValue(router.query);
|
form.setFieldsValue(router.query);
|
||||||
|
handleSearch();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: "序号",
|
title: "序号",
|
||||||
dataIndex: "id",
|
|
||||||
width: 60,
|
width: 60,
|
||||||
fixed: "left",
|
fixed: "left",
|
||||||
render: (text, record, index) => index + 1,
|
render: (_, __, index) => index + 1,
|
||||||
},
|
},
|
||||||
{ title: "机构名称", dataIndex: "orgName", width: 220, ellipsis: true },
|
{ title: "机构名称", dataIndex: "filingUnitName", width: 220, ellipsis: true },
|
||||||
{ title: "机构类型", dataIndex: "orgType", width: 100 },
|
{ title: "机构类型", dataIndex: "filingUnitTypeName", width: 100 },
|
||||||
{ title: "证书编号", dataIndex: "certNo", width: 140, ellipsis: true },
|
{ title: "证书编号", dataIndex: "filingNo", width: 140, ellipsis: true },
|
||||||
{ title: "安全评价业务范围", dataIndex: "businessScope", width: 180, ellipsis: true },
|
{ title: "安全评价业务范围", dataIndex: "businessScope", width: 180, ellipsis: true },
|
||||||
{
|
{
|
||||||
title: "确认状态",
|
title: "确认状态",
|
||||||
dataIndex: "confirmStatus",
|
dataIndex: "filingStatusCode",
|
||||||
width: 100,
|
width: 100,
|
||||||
render: (status) => {
|
render: (status) => {
|
||||||
const config = VERIFY_STATUS_MAP[status];
|
const config = VERIFY_STATUS_MAP[status];
|
||||||
return config ? <Tag color={config.color}>{config.label}</Tag> : status;
|
return config ? <Tag color={config.color}>{config.label}</Tag> : "--";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -85,16 +65,16 @@ const QualConfirm = (props) => {
|
||||||
width: 140,
|
width: 140,
|
||||||
fixed: "right",
|
fixed: "right",
|
||||||
render: (_, record) => (
|
render: (_, record) => (
|
||||||
<Space>
|
<TableAction>
|
||||||
<Button type="link" size="small" onClick={() => props.history.push(`FilingDetail?id=${record.id}`)}>
|
<Button type="link" size="small" onClick={() => props.history.push(`FilingDetail?id=${record.id}`)}>
|
||||||
查看
|
查看
|
||||||
</Button>
|
</Button>
|
||||||
{record.confirmStatus !== "passed" && (
|
{record.filingStatusCode !== "passed" && (
|
||||||
<Button type="link" size="small" onClick={() => props.history.push(`QualConfirmForm?id=${record.id}`)}>
|
<Button type="link" size="small" onClick={() => props.history.push(`QualConfirmForm?id=${record.id}`)}>
|
||||||
确认
|
确认
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</Space>
|
</TableAction>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
@ -104,12 +84,12 @@ const QualConfirm = (props) => {
|
||||||
<SearchForm
|
<SearchForm
|
||||||
style={{ marginBottom: 24 }}
|
style={{ marginBottom: 24 }}
|
||||||
form={form}
|
form={form}
|
||||||
loading={loading}
|
loading={qualReviewLoading}
|
||||||
formLine={[
|
formLine={[
|
||||||
<Form.Item key="orgName" name="orgName">
|
<Form.Item key="filingUnitName" name="filingUnitName">
|
||||||
<ControlWrapper.Input label="机构名称" placeholder="请输入" allowClear />
|
<ControlWrapper.Input label="机构名称" placeholder="请输入" allowClear />
|
||||||
</Form.Item>,
|
</Form.Item>,
|
||||||
<Form.Item key="orgType" name="orgType">
|
<Form.Item key="filingUnitTypeName" name="orgType">
|
||||||
<ControlWrapper.Select
|
<ControlWrapper.Select
|
||||||
label="机构类型"
|
label="机构类型"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
|
|
@ -133,7 +113,7 @@ const QualConfirm = (props) => {
|
||||||
<Select.Option value="建筑施工">建筑施工</Select.Option>
|
<Select.Option value="建筑施工">建筑施工</Select.Option>
|
||||||
</ControlWrapper.Select>
|
</ControlWrapper.Select>
|
||||||
</Form.Item>,
|
</Form.Item>,
|
||||||
<Form.Item key="confirmStatus" name="confirmStatus">
|
<Form.Item key="filingStatusCode" name="filingStatusCode">
|
||||||
<ControlWrapper.Select
|
<ControlWrapper.Select
|
||||||
label="确认状态"
|
label="确认状态"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
|
|
@ -152,7 +132,7 @@ const QualConfirm = (props) => {
|
||||||
...router.query,
|
...router.query,
|
||||||
...values,
|
...values,
|
||||||
current: 1,
|
current: 1,
|
||||||
pageSize: 10,
|
size: 10,
|
||||||
};
|
};
|
||||||
handleSearch();
|
handleSearch();
|
||||||
}}
|
}}
|
||||||
|
|
@ -161,21 +141,21 @@ const QualConfirm = (props) => {
|
||||||
<Table
|
<Table
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
columns={columns}
|
columns={columns}
|
||||||
dataSource={MOCK_DATA}
|
dataSource={qualReviewList}
|
||||||
scroll={{ y: props.scrollY }}
|
scroll={{ y: props.scrollY }}
|
||||||
loading={loading}
|
loading={qualReviewLoading}
|
||||||
pagination={{
|
pagination={{
|
||||||
total: MOCK_DATA.length,
|
total: qualReviewTotal,
|
||||||
showSizeChanger: true,
|
showSizeChanger: true,
|
||||||
showQuickJumper: true,
|
showQuickJumper: true,
|
||||||
showTotal: (total) => `共 ${total} 条`,
|
showTotal: (total) => `共 ${total} 条`,
|
||||||
current: router.query.current,
|
current: router.query.current || 1,
|
||||||
pageSize: router.query.pageSize,
|
pageSize: router.query.size || 10,
|
||||||
onChange: (page, pageSize) => {
|
onChange: (page, pageSize) => {
|
||||||
router.query = {
|
router.query = {
|
||||||
...router.query,
|
...router.query,
|
||||||
current: page,
|
current: page,
|
||||||
pageSize,
|
size: pageSize,
|
||||||
};
|
};
|
||||||
handleSearch();
|
handleSearch();
|
||||||
},
|
},
|
||||||
|
|
@ -185,4 +165,4 @@ const QualConfirm = (props) => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default AntdTableFuncControl(QualConfirm);
|
export default Connect([NS_QUAL_REVIEW], true)(AntdTableFuncControl(QualConfirm));
|
||||||
|
|
@ -1,21 +1,27 @@
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { Button, Select, Tag, Space, Input } from "antd";
|
import { Button, Select, Tag, Space, Input } from "antd";
|
||||||
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
|
import { NS_QUAL_REVIEW } from "~/enumerate/namespace";
|
||||||
import PageLayout from "@cqsjjb/jjb-react-admin-component/PageLayout";
|
import PageLayout from "@cqsjjb/jjb-react-admin-component/PageLayout";
|
||||||
import { MOCK_DETAIL, MOCK_MATERIALS, MOCK_PERSONNEL } from "../mockData";
|
|
||||||
import "./indes.less";
|
import "./indes.less";
|
||||||
|
|
||||||
const { TextArea } = Input;
|
const { TextArea } = Input;
|
||||||
|
|
||||||
const LIST_PATH = "./../";
|
|
||||||
|
|
||||||
const QualConfirmForm = (props) => {
|
const QualConfirmForm = (props) => {
|
||||||
const [result, setResult] = useState(undefined);
|
const [result, setResult] = useState(undefined);
|
||||||
const [opinion, setOpinion] = useState("");
|
const [opinion, setOpinion] = useState("");
|
||||||
const detail = MOCK_DETAIL;
|
|
||||||
|
|
||||||
const totalCount = MOCK_MATERIALS.length;
|
|
||||||
const qualifiedCount = 8; // mock 符合数
|
const { qualReview, fetchQualFilingDetail } = props;
|
||||||
const isPersonnelMet = MOCK_PERSONNEL.length >= 25;
|
const { fetchQualFilingDetailLoading, qualFilingDetail } = qualReview;
|
||||||
|
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
fetchQualFilingDetail({
|
||||||
|
id: router.query.id,
|
||||||
|
});
|
||||||
|
}, []);
|
||||||
|
|
||||||
const handleSubmit = () => {
|
const handleSubmit = () => {
|
||||||
console.log("确认提交:", { result, opinion });
|
console.log("确认提交:", { result, opinion });
|
||||||
|
|
@ -40,15 +46,15 @@ const QualConfirmForm = (props) => {
|
||||||
<div className="summary-card-grid">
|
<div className="summary-card-grid">
|
||||||
<div>
|
<div>
|
||||||
<div className="summary-label">机构名称</div>
|
<div className="summary-label">机构名称</div>
|
||||||
<div className="summary-value">{detail.orgName}</div>
|
<div className="summary-value">{qualFilingDetail.orgName}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div className="summary-label">证书编号</div>
|
<div className="summary-label">证书编号</div>
|
||||||
<div className="summary-value">{detail.certNo}</div>
|
<div className="summary-value">{qualFilingDetail.certNo}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div className="summary-label">业务范围</div>
|
<div className="summary-label">业务范围</div>
|
||||||
<div className="summary-value">{detail.scopeName}</div>
|
<div className="summary-value">{qualFilingDetail.scopeName}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div className="summary-label">提交时间</div>
|
<div className="summary-label">提交时间</div>
|
||||||
|
|
@ -57,37 +63,6 @@ const QualConfirmForm = (props) => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 分析结果 */}
|
|
||||||
<div className="analysis-card">
|
|
||||||
<div className="summary-card-title">分析结果</div>
|
|
||||||
<div className="analysis-grid">
|
|
||||||
<div className="analysis-item">
|
|
||||||
<div className="summary-label">备案材料核验</div>
|
|
||||||
<div className="analysis-number green">{totalCount}/{totalCount}</div>
|
|
||||||
<div className="summary-label">全部已上传</div>
|
|
||||||
</div>
|
|
||||||
<div className="analysis-item">
|
|
||||||
<div className="summary-label">材料符合性</div>
|
|
||||||
<div className="analysis-number green">{qualifiedCount}/{totalCount}</div>
|
|
||||||
<div className="summary-label">符合要求</div>
|
|
||||||
</div>
|
|
||||||
<div className="analysis-item">
|
|
||||||
<div className="summary-label">人员配备</div>
|
|
||||||
<div className="analysis-number" style={{ color: isPersonnelMet ? "#52c41a" : "#faad14" }}>
|
|
||||||
{MOCK_PERSONNEL.length}/25
|
|
||||||
</div>
|
|
||||||
<div className="summary-label">{isPersonnelMet ? "满足要求" : "不满足要求"}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{!isPersonnelMet && (
|
|
||||||
<div className="analysis-warning">
|
|
||||||
当前备案人员{MOCK_PERSONNEL.length}人,需满足专职技术人员不少于25人的要求,建议机构补充人员后再确认。
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{/* 确认意见 */}
|
{/* 确认意见 */}
|
||||||
<div className="opinion-card">
|
<div className="opinion-card">
|
||||||
<div className="summary-card-title">确认意见</div>
|
<div className="summary-card-title">确认意见</div>
|
||||||
|
|
@ -118,12 +93,17 @@ const QualConfirmForm = (props) => {
|
||||||
|
|
||||||
{/* 操作按钮 */}
|
{/* 操作按钮 */}
|
||||||
<div className="footer-bar">
|
<div className="footer-bar">
|
||||||
<Button onClick={() => props.history?.push(LIST_PATH)}>取消</Button>
|
<Button type="primary" onClick={handleSubmit} loading={fetchQualFilingDetailLoading}>
|
||||||
<Button type="primary" onClick={handleSubmit}>提交确认</Button>
|
提交确认
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</PageLayout>
|
</PageLayout>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default QualConfirmForm;
|
|
||||||
|
export default Connect(
|
||||||
|
[NS_QUAL_REVIEW],
|
||||||
|
true,
|
||||||
|
)(QualConfirmForm);
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ const QualReview = (props) => {
|
||||||
queryReviewList({
|
queryReviewList({
|
||||||
...router.query,
|
...router.query,
|
||||||
supervision: true,
|
supervision: true,
|
||||||
|
applyTypeCode: 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
@ -175,12 +176,12 @@ const QualReview = (props) => {
|
||||||
showQuickJumper: true,
|
showQuickJumper: true,
|
||||||
showTotal: (total) => `共 ${total} 条`,
|
showTotal: (total) => `共 ${total} 条`,
|
||||||
current: router.query.current || 1,
|
current: router.query.current || 1,
|
||||||
size: router.query.size || 10,
|
pageSize: router.query.size || 10,
|
||||||
onChange: (page, size) => {
|
onChange: (page, pageSize) => {
|
||||||
router.query = {
|
router.query = {
|
||||||
...router.query,
|
...router.query,
|
||||||
current: page,
|
current: page,
|
||||||
size,
|
size: pageSize,
|
||||||
};
|
};
|
||||||
handleSearch();
|
handleSearch();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,157 @@
|
||||||
|
import React, { useEffect, useMemo } from "react";
|
||||||
|
import { Button, Form, Input, message, Modal, Select } from "antd";
|
||||||
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
|
import { NS_QUAL_EXPERT } from "~/enumerate/namespace";
|
||||||
|
import { REVIEW_RESULT_OPTIONS } from "~/enumerate/constant";
|
||||||
|
|
||||||
|
const { TextArea } = Input;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 审核操作弹窗
|
||||||
|
* @param {boolean} open
|
||||||
|
* @param {string|number} filingId - 备案申请ID
|
||||||
|
* @param {function} onCancel
|
||||||
|
* @param {function} onSuccess - 审核成功后回调(刷新列表等)
|
||||||
|
*/
|
||||||
|
const statStyle = { background: "#fff", border: "1px solid #d9d9d9", borderRadius: 6, padding: "0.4rem", textAlign: "center" };
|
||||||
|
const statLabelStyle = { fontSize: "0.7rem", color: "rgba(0,0,0,0.45)" };
|
||||||
|
|
||||||
|
const ReviewModal = (props) => {
|
||||||
|
const { open, filingId, legalPassCount = 0, legalFailCount = 0, onCancel, onSuccess } = props;
|
||||||
|
const { qualExpert, queryExpertPage, reviewSubmit } = props;
|
||||||
|
const { qualExpertList, qualExpertSubmitLoading } = qualExpert || {};
|
||||||
|
|
||||||
|
const [form] = Form.useForm();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (open) {
|
||||||
|
form.resetFields();
|
||||||
|
queryExpertPage({ current: 1, size: 100 });
|
||||||
|
}
|
||||||
|
}, [open]);
|
||||||
|
|
||||||
|
const expertOptions = useMemo(
|
||||||
|
() =>
|
||||||
|
(qualExpertList || []).map((item) => ({
|
||||||
|
label: `${item.userName}${item.certificate ? `(${item.certificate})` : ""}`,
|
||||||
|
value: item.id,
|
||||||
|
expert: item,
|
||||||
|
})),
|
||||||
|
[qualExpertList],
|
||||||
|
);
|
||||||
|
|
||||||
|
const handleOk = async () => {
|
||||||
|
const values = await form.validateFields();
|
||||||
|
const selected = expertOptions.find((o) => o.value === values.filingExpertId);
|
||||||
|
const params = {
|
||||||
|
filingId,
|
||||||
|
reviewResult: values.reviewResult,
|
||||||
|
reviewResultRemark: REVIEW_RESULT_OPTIONS.find((r) => r.value === values.reviewResult)?.label,
|
||||||
|
filingExpertId: values.filingExpertId,
|
||||||
|
filingExpertName: selected?.expert?.userName,
|
||||||
|
reviewOpinion: values.reviewOpinion,
|
||||||
|
};
|
||||||
|
const res = await reviewSubmit(params);
|
||||||
|
if (res?.success !== false) {
|
||||||
|
message.success("审核提交成功");
|
||||||
|
onCancel();
|
||||||
|
onSuccess?.();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Modal
|
||||||
|
title="审核操作"
|
||||||
|
open={open}
|
||||||
|
onCancel={onCancel}
|
||||||
|
width={580}
|
||||||
|
footer={
|
||||||
|
<div style={{ display: "flex", justifyContent: "flex-end", gap: 8 }}>
|
||||||
|
<Button onClick={onCancel}>取消</Button>
|
||||||
|
<Button type="primary" loading={qualExpertSubmitLoading} onClick={handleOk}>
|
||||||
|
提交
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
background: "#f8fafc",
|
||||||
|
border: "1px solid #d9d9d9",
|
||||||
|
borderRadius: 6,
|
||||||
|
padding: "0.75rem",
|
||||||
|
marginBottom: "1rem",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
fontSize: "0.88rem",
|
||||||
|
fontWeight: 600,
|
||||||
|
marginBottom: "0.5rem",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
评价分析
|
||||||
|
</div>
|
||||||
|
<div style={{ display: "grid", gridTemplateColumns: "1fr 1fr 1fr", gap: "0.4rem" }}>
|
||||||
|
<div style={statStyle}>
|
||||||
|
<div style={statLabelStyle}>已核验材料</div>
|
||||||
|
<div style={{ fontSize: "1.1rem", fontWeight: 700, color: "#1677ff" }}>
|
||||||
|
{legalPassCount + legalFailCount}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style={statStyle}>
|
||||||
|
<div style={statLabelStyle}>符合</div>
|
||||||
|
<div style={{ fontSize: "1.1rem", fontWeight: 700, color: "#059669" }}>
|
||||||
|
{legalPassCount}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style={statStyle}>
|
||||||
|
<div style={statLabelStyle}>不符合</div>
|
||||||
|
<div style={{ fontSize: "1.1rem", fontWeight: 700, color: "#dc2626" }}>
|
||||||
|
{legalFailCount}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Form form={form} layout="vertical" style={{ marginTop: "0.5rem" }}>
|
||||||
|
<Form.Item
|
||||||
|
label="审核结果"
|
||||||
|
name="reviewResult"
|
||||||
|
rules={[{ required: true, message: "请选择审核结果" }]}
|
||||||
|
>
|
||||||
|
<Select placeholder="请选择">
|
||||||
|
{REVIEW_RESULT_OPTIONS.map((item) => (
|
||||||
|
<Select.Option key={item.value} value={item.value}>
|
||||||
|
{item.label}
|
||||||
|
</Select.Option>
|
||||||
|
))}
|
||||||
|
</Select>
|
||||||
|
</Form.Item>
|
||||||
|
|
||||||
|
<Form.Item
|
||||||
|
label="指派专家"
|
||||||
|
name="filingExpertId"
|
||||||
|
rules={[{ required: true, message: "请选择专家" }]}
|
||||||
|
>
|
||||||
|
<Select
|
||||||
|
placeholder="请选择"
|
||||||
|
showSearch
|
||||||
|
optionFilterProp="label"
|
||||||
|
options={expertOptions}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
|
|
||||||
|
<Form.Item
|
||||||
|
label="综合审核意见"
|
||||||
|
name="reviewOpinion"
|
||||||
|
rules={[{ required: true, message: "请输入综合审核意见" }]}
|
||||||
|
>
|
||||||
|
<TextArea rows={3} placeholder="请输入综合审核意见..." />
|
||||||
|
</Form.Item>
|
||||||
|
</Form>
|
||||||
|
</Modal>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Connect([NS_QUAL_EXPERT], true)(ReviewModal);
|
||||||
|
|
@ -1,24 +1,19 @@
|
||||||
import React, { useState, useEffect } from "react";
|
import React, { useState, useEffect } from "react";
|
||||||
import { Button, Tag, Space, Modal, Select, Input, Form, Spin } from "antd";
|
import { Button, Tag, Space, Spin } from "antd";
|
||||||
import PageLayout from "@cqsjjb/jjb-react-admin-component/PageLayout";
|
import PageLayout from "@cqsjjb/jjb-react-admin-component/PageLayout";
|
||||||
import { REVIEW_STATUS_MAP } from "~/enumerate/constant";
|
import { REVIEW_STATUS_MAP, LEGAL_STATUS_STYLE } from "~/enumerate/constant";
|
||||||
import { tools } from "@cqsjjb/jjb-common-lib";
|
import { tools } from "@cqsjjb/jjb-common-lib";
|
||||||
import {
|
|
||||||
|
|
||||||
LEGAL_STATUS_STYLE,
|
|
||||||
} from "~/enumerate/constant";
|
|
||||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { NS_QUAL_REVIEW } from "~/enumerate/namespace";
|
import { NS_QUAL_REVIEW } from "~/enumerate/namespace";
|
||||||
import FilingTabs from "../FilingTabs";
|
import FilingTabs from "../FilingTabs";
|
||||||
|
import ReviewModal from "./ReviewModal";
|
||||||
import "./indes.less";
|
import "./indes.less";
|
||||||
|
|
||||||
const { TextArea } = Input;
|
const { router } = tools;
|
||||||
const {router}=tools;
|
|
||||||
|
|
||||||
const QualReviewForm = (props) => {
|
const QualReviewForm = (props) => {
|
||||||
const { queryComplianceCheck, qualReview, fetchQualFilingDetail } = props;
|
const { queryComplianceCheck, qualReview, fetchQualFilingDetail } = props;
|
||||||
const { qualReviewLoading, complianceCheckItems, fetchQualFilingDetailLoading, qualFilingDetail } = qualReview;
|
const { qualReviewLoading, complianceCheckItems, fetchQualFilingDetailLoading, qualFilingDetail } = qualReview;
|
||||||
const [form] = Form.useForm();
|
|
||||||
const [compliance, setCompliance] = useState({});
|
const [compliance, setCompliance] = useState({});
|
||||||
const [reviewVisible, setReviewVisible] = useState(false);
|
const [reviewVisible, setReviewVisible] = useState(false);
|
||||||
|
|
||||||
|
|
@ -31,12 +26,6 @@ const QualReviewForm = (props) => {
|
||||||
(i) => i.status === "NOT_PASS",
|
(i) => i.status === "NOT_PASS",
|
||||||
).length;
|
).length;
|
||||||
|
|
||||||
const handleSubmit = (action) => {
|
|
||||||
form.validateFields().then((values) => {
|
|
||||||
console.log("审核提交:", { action, ...values, compliance });
|
|
||||||
setReviewVisible(false);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
queryComplianceCheck({id: router.query.id});
|
queryComplianceCheck({id: router.query.id});
|
||||||
fetchQualFilingDetail({id: router.query.id});
|
fetchQualFilingDetail({id: router.query.id});
|
||||||
|
|
@ -96,140 +85,19 @@ const QualReviewForm = (props) => {
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Modal
|
<ReviewModal
|
||||||
title="审核操作"
|
|
||||||
open={reviewVisible}
|
open={reviewVisible}
|
||||||
|
filingId={qualFilingDetail?.id}
|
||||||
|
legalPassCount={legalPassCount}
|
||||||
|
legalFailCount={legalFailCount}
|
||||||
onCancel={() => setReviewVisible(false)}
|
onCancel={() => setReviewVisible(false)}
|
||||||
width={580}
|
/>
|
||||||
footer={
|
|
||||||
<div
|
|
||||||
style={{ display: "flex", justifyContent: "flex-end", gap: 8 }}
|
|
||||||
>
|
|
||||||
<Button onClick={() => setReviewVisible(false)}>取消</Button>
|
|
||||||
<Button type="primary" onClick={() => handleSubmit("submit")}>
|
|
||||||
提交
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
type="primary"
|
|
||||||
style={{ background: "#52c41a", borderColor: "#52c41a" }}
|
|
||||||
onClick={() => handleSubmit("pass")}
|
|
||||||
>
|
|
||||||
通过
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
background: "#f8fafc",
|
|
||||||
border: "1px solid #d9d9d9",
|
|
||||||
borderRadius: 6,
|
|
||||||
padding: "0.75rem",
|
|
||||||
marginBottom: "1rem",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
fontSize: "0.88rem",
|
|
||||||
fontWeight: 600,
|
|
||||||
marginBottom: "0.5rem",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
评价分析
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
display: "grid",
|
|
||||||
gridTemplateColumns: "1fr 1fr 1fr 1fr",
|
|
||||||
gap: "0.4rem",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<div style={statStyle}>
|
|
||||||
<div style={statLabelStyle}>已核验材料</div>
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
fontSize: "1.1rem",
|
|
||||||
fontWeight: 700,
|
|
||||||
color: "#1677ff",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{legalPassCount + legalFailCount}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div style={statStyle}>
|
|
||||||
<div style={statLabelStyle}>符合</div>
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
fontSize: "1.1rem",
|
|
||||||
fontWeight: 700,
|
|
||||||
color: "#059669",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{legalPassCount}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div style={statStyle}>
|
|
||||||
<div style={statLabelStyle}>不符合</div>
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
fontSize: "1.1rem",
|
|
||||||
fontWeight: 700,
|
|
||||||
color: "#dc2626",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{legalFailCount}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<Form form={form} layout="vertical" style={{ marginTop: "0.5rem" }}>
|
|
||||||
<Form.Item
|
|
||||||
label="审核结果"
|
|
||||||
name="reviewResult"
|
|
||||||
rules={[{ required: true, message: "请选择审核结果" }]}
|
|
||||||
>
|
|
||||||
<Select placeholder="请选择">
|
|
||||||
<Select.Option value="pass">通过</Select.Option>
|
|
||||||
<Select.Option value="pending">待定</Select.Option>
|
|
||||||
<Select.Option value="reject">不通过</Select.Option>
|
|
||||||
</Select>
|
|
||||||
</Form.Item>
|
|
||||||
<Form.Item
|
|
||||||
label="指派专家"
|
|
||||||
name="expert"
|
|
||||||
rules={[{ required: true, message: "请选择专家" }]}
|
|
||||||
>
|
|
||||||
<Select placeholder="— 请选择 —">
|
|
||||||
<Select.Option value="chen">陈教授(化工安全)</Select.Option>
|
|
||||||
<Select.Option value="li">李教授(矿山安全)</Select.Option>
|
|
||||||
<Select.Option value="wang">王高工(建筑施工)</Select.Option>
|
|
||||||
</Select>
|
|
||||||
</Form.Item>
|
|
||||||
<Form.Item
|
|
||||||
label="综合审核意见"
|
|
||||||
name="remark"
|
|
||||||
rules={[{ required: true, message: "请输入综合审核意见" }]}
|
|
||||||
>
|
|
||||||
<TextArea rows={3} placeholder="请输入综合审核意见..." />
|
|
||||||
</Form.Item>
|
|
||||||
</Form>
|
|
||||||
</Modal>
|
|
||||||
</div>
|
</div>
|
||||||
</Spin>
|
</Spin>
|
||||||
</PageLayout>
|
</PageLayout>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const statStyle = {
|
|
||||||
background: "#fff",
|
|
||||||
border: "1px solid #d9d9d9",
|
|
||||||
borderRadius: 6,
|
|
||||||
padding: "0.4rem",
|
|
||||||
textAlign: "center",
|
|
||||||
};
|
|
||||||
const statLabelStyle = { fontSize: "0.7rem", color: "rgba(0,0,0,0.45)" };
|
|
||||||
|
|
||||||
export default Connect(
|
export default Connect(
|
||||||
[NS_QUAL_REVIEW],
|
[NS_QUAL_REVIEW],
|
||||||
true,
|
true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue