fix
parent
6d3c2e6c6b
commit
83ec84ce9f
|
|
@ -21,7 +21,8 @@ const { router } = tools;
|
||||||
const ExpertVerification = (props) => {
|
const ExpertVerification = (props) => {
|
||||||
const [form] = Form.useForm();
|
const [form] = Form.useForm();
|
||||||
const { qualReview, queryReviewList } = props;
|
const { qualReview, queryReviewList } = props;
|
||||||
const { qualReviewList, qualReviewTotal, qualReviewLoading } = qualReview || {};
|
const { qualReviewList, qualReviewTotal, qualReviewLoading } =
|
||||||
|
qualReview || {};
|
||||||
|
|
||||||
const handleSearch = () => {
|
const handleSearch = () => {
|
||||||
queryReviewList({
|
queryReviewList({
|
||||||
|
|
@ -53,10 +54,20 @@ const ExpertVerification = (props) => {
|
||||||
fixed: "left",
|
fixed: "left",
|
||||||
render: (_, __, index) => index + 1,
|
render: (_, __, index) => index + 1,
|
||||||
},
|
},
|
||||||
{ title: "机构名称", dataIndex: "filingUnitName", width: 220, ellipsis: true },
|
{
|
||||||
|
title: "机构名称",
|
||||||
|
dataIndex: "filingUnitName",
|
||||||
|
width: 220,
|
||||||
|
ellipsis: true,
|
||||||
|
},
|
||||||
{ title: "机构类型", dataIndex: "filingUnitTypeName", width: 100 },
|
{ title: "机构类型", dataIndex: "filingUnitTypeName", width: 100 },
|
||||||
{ title: "证书编号", dataIndex: "filingNo", 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: "filingStatusCode",
|
dataIndex: "filingStatusCode",
|
||||||
|
|
@ -73,11 +84,21 @@ const ExpertVerification = (props) => {
|
||||||
fixed: "right",
|
fixed: "right",
|
||||||
render: (_, record) => (
|
render: (_, record) => (
|
||||||
<TableAction>
|
<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.filingStatusCode === 2 && (
|
{record.filingStatusCode === 2 && (
|
||||||
<Button type="link" size="small" onClick={() => props.history.push(`QualReviewForm?id=${record.id}`)}>
|
<Button
|
||||||
|
type="link"
|
||||||
|
size="small"
|
||||||
|
// onClick={() =>
|
||||||
|
// props.history.push(`QualReviewForm?id=${record.id}`)
|
||||||
|
// }
|
||||||
|
>
|
||||||
核验
|
核验
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
@ -94,7 +115,11 @@ const ExpertVerification = (props) => {
|
||||||
loading={qualReviewLoading}
|
loading={qualReviewLoading}
|
||||||
formLine={[
|
formLine={[
|
||||||
<Form.Item key="filingUnitName" name="filingUnitName">
|
<Form.Item key="filingUnitName" name="filingUnitName">
|
||||||
<ControlWrapper.Input label="机构名称" placeholder="请输入" allowClear />
|
<ControlWrapper.Input
|
||||||
|
label="机构名称"
|
||||||
|
placeholder="请输入"
|
||||||
|
allowClear
|
||||||
|
/>
|
||||||
</Form.Item>,
|
</Form.Item>,
|
||||||
<Form.Item key="filingUnitTypeName" name="filingUnitTypeName">
|
<Form.Item key="filingUnitTypeName" name="filingUnitTypeName">
|
||||||
<ControlWrapper.Select
|
<ControlWrapper.Select
|
||||||
|
|
@ -168,4 +193,7 @@ const ExpertVerification = (props) => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Connect([NS_QUAL_REVIEW], true)(AntdTableFuncControl(ExpertVerification));
|
export default Connect(
|
||||||
|
[NS_QUAL_REVIEW],
|
||||||
|
true,
|
||||||
|
)(AntdTableFuncControl(ExpertVerification));
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,15 @@
|
||||||
import React, { useState, useEffect } from "react";
|
import React, { useState, useEffect } from "react";
|
||||||
import { Button, Form, Select, Space, Table, Tag, Modal, Input, DatePicker } from "antd";
|
import {
|
||||||
|
Button,
|
||||||
|
Form,
|
||||||
|
Select,
|
||||||
|
Space,
|
||||||
|
Table,
|
||||||
|
Tag,
|
||||||
|
Modal,
|
||||||
|
Input,
|
||||||
|
DatePicker,
|
||||||
|
} 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 ControlWrapper from "@cqsjjb/jjb-react-admin-component/ControlWrapper";
|
import ControlWrapper from "@cqsjjb/jjb-react-admin-component/ControlWrapper";
|
||||||
|
|
@ -58,7 +68,7 @@ const QualPublicity = (props) => {
|
||||||
setPublicityTarget(record);
|
setPublicityTarget(record);
|
||||||
setPublicityDept(undefined);
|
setPublicityDept(undefined);
|
||||||
setPublicityContent(
|
setPublicityContent(
|
||||||
"依据《安全评价机构管理规定》等相关法规,经审核,该机构符合安全评价机构资质条件,现予以公示,接受社会监督。"
|
"依据《安全评价机构管理规定》等相关法规,经审核,该机构符合安全评价机构资质条件,现予以公示,接受社会监督。",
|
||||||
);
|
);
|
||||||
setPublicityStartDate(null);
|
setPublicityStartDate(null);
|
||||||
setPublicityEndDate(null);
|
setPublicityEndDate(null);
|
||||||
|
|
@ -106,7 +116,12 @@ const QualPublicity = (props) => {
|
||||||
{ title: "机构名称", dataIndex: "orgName", width: 220, ellipsis: true },
|
{ title: "机构名称", dataIndex: "orgName", width: 220, ellipsis: true },
|
||||||
{ title: "机构类型", dataIndex: "orgType", width: 100 },
|
{ title: "机构类型", dataIndex: "orgType", width: 100 },
|
||||||
{ title: "证书编号", dataIndex: "certNo", width: 140, ellipsis: true },
|
{ title: "证书编号", dataIndex: "certNo", width: 140, ellipsis: true },
|
||||||
{ title: "安全评价业务范围", dataIndex: "businessScope", width: 180, ellipsis: true },
|
{
|
||||||
|
title: "安全评价业务范围",
|
||||||
|
dataIndex: "businessScope",
|
||||||
|
width: 180,
|
||||||
|
ellipsis: true,
|
||||||
|
},
|
||||||
{ title: "审核部门", dataIndex: "reviewDept", width: 120, ellipsis: true },
|
{ title: "审核部门", dataIndex: "reviewDept", width: 120, ellipsis: true },
|
||||||
{ title: "审核通过时间", dataIndex: "reviewTime", width: 120 },
|
{ title: "审核通过时间", dataIndex: "reviewTime", width: 120 },
|
||||||
{
|
{
|
||||||
|
|
@ -124,11 +139,21 @@ const QualPublicity = (props) => {
|
||||||
fixed: "right",
|
fixed: "right",
|
||||||
render: (_, record) => (
|
render: (_, record) => (
|
||||||
<Space>
|
<Space>
|
||||||
<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.status === "pending" && (
|
{record.status === "pending" && (
|
||||||
<Button type="link" size="small" onClick={() => openPublicity(record)}>
|
<Button
|
||||||
|
type="link"
|
||||||
|
size="small"
|
||||||
|
onClick={() => openPublicity(record)}
|
||||||
|
>
|
||||||
公示
|
公示
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
@ -148,7 +173,11 @@ const QualPublicity = (props) => {
|
||||||
loading={loading}
|
loading={loading}
|
||||||
formLine={[
|
formLine={[
|
||||||
<Form.Item key="orgName" name="orgName">
|
<Form.Item key="orgName" name="orgName">
|
||||||
<ControlWrapper.Input label="机构名称" placeholder="请输入" allowClear />
|
<ControlWrapper.Input
|
||||||
|
label="机构名称"
|
||||||
|
placeholder="请输入"
|
||||||
|
allowClear
|
||||||
|
/>
|
||||||
</Form.Item>,
|
</Form.Item>,
|
||||||
<Form.Item key="orgType" name="orgType">
|
<Form.Item key="orgType" name="orgType">
|
||||||
<ControlWrapper.Select
|
<ControlWrapper.Select
|
||||||
|
|
@ -230,7 +259,9 @@ const QualPublicity = (props) => {
|
||||||
footer={
|
footer={
|
||||||
<div style={{ display: "flex", justifyContent: "flex-end", gap: 8 }}>
|
<div style={{ display: "flex", justifyContent: "flex-end", gap: 8 }}>
|
||||||
<Button onClick={() => setPublicityVisible(false)}>取消</Button>
|
<Button onClick={() => setPublicityVisible(false)}>取消</Button>
|
||||||
<Button type="primary" onClick={handlePublicitySubmit}>提交公示</Button>
|
<Button type="primary" onClick={handlePublicitySubmit}>
|
||||||
|
提交公示
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|
@ -240,7 +271,9 @@ const QualPublicity = (props) => {
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div style={{ fontSize: "0.8rem", marginBottom: 4 }}>机构名称</div>
|
<div style={{ fontSize: "0.8rem", marginBottom: 4 }}>机构名称</div>
|
||||||
<div style={{ fontSize: "0.88rem", fontWeight: 500 }}>{publicityTarget?.orgName || "—"}</div>
|
<div style={{ fontSize: "0.88rem", fontWeight: 500 }}>
|
||||||
|
{publicityTarget?.orgName || "—"}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div style={{ fontSize: "0.8rem", marginBottom: 4 }}>公示部门</div>
|
<div style={{ fontSize: "0.8rem", marginBottom: 4 }}>公示部门</div>
|
||||||
|
|
@ -263,9 +296,17 @@ const QualPublicity = (props) => {
|
||||||
onChange={(e) => setPublicityContent(e.target.value)}
|
onChange={(e) => setPublicityContent(e.target.value)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: "0.5rem" }}>
|
<div
|
||||||
|
style={{
|
||||||
|
display: "grid",
|
||||||
|
gridTemplateColumns: "1fr 1fr",
|
||||||
|
gap: "0.5rem",
|
||||||
|
}}
|
||||||
|
>
|
||||||
<div>
|
<div>
|
||||||
<div style={{ fontSize: "0.8rem", marginBottom: 4 }}>公示开始时间</div>
|
<div style={{ fontSize: "0.8rem", marginBottom: 4 }}>
|
||||||
|
公示开始时间
|
||||||
|
</div>
|
||||||
<DatePicker
|
<DatePicker
|
||||||
style={{ width: "100%" }}
|
style={{ width: "100%" }}
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
|
|
@ -274,7 +315,9 @@ const QualPublicity = (props) => {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div style={{ fontSize: "0.8rem", marginBottom: 4 }}>公示结束时间</div>
|
<div style={{ fontSize: "0.8rem", marginBottom: 4 }}>
|
||||||
|
公示结束时间
|
||||||
|
</div>
|
||||||
<DatePicker
|
<DatePicker
|
||||||
style={{ width: "100%" }}
|
style={{ width: "100%" }}
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue