2026-06-30 15:59:15 +08:00
|
|
|
import React, { useState, useEffect } from "react";
|
2026-07-01 13:44:23 +08:00
|
|
|
import { Button, Form, Select, Table, Tag } from "antd";
|
|
|
|
|
import TableAction from "@cqsjjb/jjb-react-admin-component/TableAction";
|
2026-06-30 15:59:15 +08:00
|
|
|
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";
|
|
|
|
|
import { AntdTableFuncControl } from "@cqsjjb/jjb-common-decorator/antd";
|
|
|
|
|
import { tools } from "@cqsjjb/jjb-common-lib";
|
2026-07-02 11:00:31 +08:00
|
|
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
|
|
|
|
import { NS_QUAL_REVIEW } from "~/enumerate/namespace";
|
|
|
|
|
|
2026-06-30 15:59:15 +08:00
|
|
|
import { REVIEW_STATUS_MAP, EXPERT_STATUS_MAP } from "~/enumerate/constant";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { router } = tools;
|
|
|
|
|
|
|
|
|
|
const QualReview = (props) => {
|
|
|
|
|
const [form] = Form.useForm();
|
2026-07-02 13:50:07 +08:00
|
|
|
const { qualReview, queryReviewList } = props;
|
|
|
|
|
const {qualReviewList, qualReviewTotal,qualReviewLoading}= qualReview || {};
|
2026-07-02 11:00:31 +08:00
|
|
|
|
2026-07-02 13:50:07 +08:00
|
|
|
|
2026-06-30 15:59:15 +08:00
|
|
|
|
|
|
|
|
const handleSearch = () => {
|
2026-07-02 13:50:07 +08:00
|
|
|
queryReviewList({
|
|
|
|
|
...router.query,
|
|
|
|
|
supervision: true,
|
|
|
|
|
});
|
2026-07-02 11:00:31 +08:00
|
|
|
|
2026-06-30 15:59:15 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const handleReset = (values) => {
|
|
|
|
|
router.query = {
|
|
|
|
|
...router.query,
|
|
|
|
|
...values,
|
|
|
|
|
current: 1,
|
2026-07-02 11:00:31 +08:00
|
|
|
size: 10,
|
2026-06-30 15:59:15 +08:00
|
|
|
};
|
|
|
|
|
handleSearch();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
form.setFieldsValue(router.query);
|
2026-07-02 11:00:31 +08:00
|
|
|
handleSearch();
|
2026-06-30 15:59:15 +08:00
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
const columns = [
|
|
|
|
|
{
|
|
|
|
|
title: "序号",
|
|
|
|
|
dataIndex: "id",
|
|
|
|
|
width: 60,
|
|
|
|
|
fixed: "left",
|
|
|
|
|
render: (text, record, index) => index + 1,
|
|
|
|
|
},
|
2026-07-02 16:58:07 +08:00
|
|
|
{ title: "机构名称", dataIndex: "filingUnitName", width: 220, ellipsis: true },
|
2026-07-02 11:00:31 +08:00
|
|
|
{ title: "机构类型", dataIndex: "filingUnitTypeName", width: 100 },
|
|
|
|
|
{ title: "证书编号", dataIndex: "filingNo", width: 140, ellipsis: true },
|
2026-06-30 15:59:15 +08:00
|
|
|
{ title: "安全评价业务范围", dataIndex: "businessScope", width: 180, ellipsis: true },
|
|
|
|
|
{
|
|
|
|
|
title: "专家核验",
|
|
|
|
|
dataIndex: "expertStatus",
|
|
|
|
|
width: 100,
|
|
|
|
|
render: (status) => {
|
2026-07-02 11:00:31 +08:00
|
|
|
const config = EXPERT_STATUS_MAP['pending'];
|
2026-06-30 15:59:15 +08:00
|
|
|
return config ? <Tag color={config.color}>{config.label}</Tag> : '--';
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "审核状态",
|
2026-07-02 13:50:07 +08:00
|
|
|
dataIndex: "filingStatusCode",
|
2026-06-30 15:59:15 +08:00
|
|
|
width: 100,
|
2026-07-02 13:50:07 +08:00
|
|
|
render: (_, {filingStatusCode}) => {
|
|
|
|
|
const config = REVIEW_STATUS_MAP[filingStatusCode];
|
2026-06-30 15:59:15 +08:00
|
|
|
return config ? <Tag color={config.color}>{config.label}</Tag> : '--';
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "操作",
|
|
|
|
|
width: 140,
|
|
|
|
|
fixed: "right",
|
|
|
|
|
render: (_, record) => (
|
2026-07-01 13:44:23 +08:00
|
|
|
<TableAction>
|
2026-06-30 15:59:15 +08:00
|
|
|
<Button type="link" size="small" onClick={() => props.history.push(`FilingDetail?id=${record.id}`)}>
|
|
|
|
|
查看
|
|
|
|
|
</Button>
|
2026-07-02 16:58:07 +08:00
|
|
|
{record.filingStatusCode === 2 && (
|
2026-06-30 15:59:15 +08:00
|
|
|
<Button type="link" size="small" onClick={() => props.history.push(`QualReviewForm?id=${record.id}`)}>
|
|
|
|
|
审核
|
|
|
|
|
</Button>
|
|
|
|
|
)}
|
2026-07-01 13:44:23 +08:00
|
|
|
</TableAction>
|
2026-06-30 15:59:15 +08:00
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<PageLayout title="资质备案审核">
|
|
|
|
|
<SearchForm
|
|
|
|
|
style={{ marginBottom: 24 }}
|
|
|
|
|
form={form}
|
2026-07-02 11:00:31 +08:00
|
|
|
loading={qualReviewLoading}
|
2026-06-30 15:59:15 +08:00
|
|
|
formLine={[
|
2026-07-02 16:58:07 +08:00
|
|
|
<Form.Item key="filingUnitName" name="filingUnitName">
|
2026-06-30 15:59:15 +08:00
|
|
|
<ControlWrapper.Input label="机构名称" placeholder="请输入" allowClear />
|
|
|
|
|
</Form.Item>,
|
2026-07-02 16:58:07 +08:00
|
|
|
<Form.Item key="filingUnitTypeName" name="orgType">
|
2026-06-30 15:59:15 +08:00
|
|
|
<ControlWrapper.Select
|
|
|
|
|
label="机构类型"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
allowClear
|
|
|
|
|
style={{ width: "100%" }}
|
|
|
|
|
>
|
|
|
|
|
<Select.Option value="本地机构">本地机构</Select.Option>
|
|
|
|
|
<Select.Option value="异地机构">异地机构</Select.Option>
|
|
|
|
|
</ControlWrapper.Select>
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
<Form.Item key="businessScope" name="businessScope">
|
|
|
|
|
<ControlWrapper.Select
|
|
|
|
|
label="安全评价业务范围"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
allowClear
|
|
|
|
|
style={{ width: "100%" }}
|
|
|
|
|
>
|
|
|
|
|
<Select.Option value="石油加工">石油加工</Select.Option>
|
|
|
|
|
<Select.Option value="化工">化工</Select.Option>
|
|
|
|
|
<Select.Option value="矿山">矿山</Select.Option>
|
|
|
|
|
<Select.Option value="建筑施工">建筑施工</Select.Option>
|
|
|
|
|
</ControlWrapper.Select>
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
<Form.Item key="needExpertCheck" name="needExpertCheck">
|
|
|
|
|
<ControlWrapper.Select
|
|
|
|
|
label="是否专家核验"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
allowClear
|
|
|
|
|
style={{ width: "100%" }}
|
|
|
|
|
>
|
|
|
|
|
<Select.Option value="yes">是</Select.Option>
|
|
|
|
|
<Select.Option value="no">否</Select.Option>
|
|
|
|
|
</ControlWrapper.Select>
|
|
|
|
|
</Form.Item>,
|
2026-07-02 13:50:07 +08:00
|
|
|
<Form.Item key="filingStatusCode" name="filingStatusCode">
|
2026-06-30 15:59:15 +08:00
|
|
|
<ControlWrapper.Select
|
|
|
|
|
label="审核状态"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
allowClear
|
|
|
|
|
style={{ width: "100%" }}
|
|
|
|
|
>
|
2026-07-02 13:50:07 +08:00
|
|
|
|
|
|
|
|
<Select.Option value="2">审核中</Select.Option>
|
|
|
|
|
<Select.Option value="3">打回</Select.Option>
|
2026-06-30 15:59:15 +08:00
|
|
|
</ControlWrapper.Select>
|
|
|
|
|
</Form.Item>,
|
|
|
|
|
]}
|
|
|
|
|
onReset={handleReset}
|
|
|
|
|
onFinish={(values) => {
|
|
|
|
|
router.query = {
|
|
|
|
|
...router.query,
|
|
|
|
|
...values,
|
|
|
|
|
current: 1,
|
2026-07-02 11:00:31 +08:00
|
|
|
size: 10,
|
2026-06-30 15:59:15 +08:00
|
|
|
};
|
|
|
|
|
handleSearch();
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<Table
|
|
|
|
|
rowKey="id"
|
|
|
|
|
columns={columns}
|
2026-07-02 11:00:31 +08:00
|
|
|
dataSource={qualReviewList}
|
2026-06-30 15:59:15 +08:00
|
|
|
scroll={{ y: props.scrollY }}
|
2026-07-02 11:00:31 +08:00
|
|
|
loading={qualReviewLoading}
|
2026-06-30 15:59:15 +08:00
|
|
|
pagination={{
|
2026-07-02 11:00:31 +08:00
|
|
|
total: qualReviewTotal,
|
2026-06-30 15:59:15 +08:00
|
|
|
showSizeChanger: true,
|
|
|
|
|
showQuickJumper: true,
|
|
|
|
|
showTotal: (total) => `共 ${total} 条`,
|
2026-07-02 11:00:31 +08:00
|
|
|
current: router.query.current || 1,
|
|
|
|
|
size: router.query.size || 10,
|
|
|
|
|
onChange: (page, size) => {
|
2026-06-30 15:59:15 +08:00
|
|
|
router.query = {
|
|
|
|
|
...router.query,
|
|
|
|
|
current: page,
|
2026-07-02 11:00:31 +08:00
|
|
|
size,
|
2026-06-30 15:59:15 +08:00
|
|
|
};
|
|
|
|
|
handleSearch();
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</PageLayout>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
2026-07-02 11:00:31 +08:00
|
|
|
export default Connect([NS_QUAL_REVIEW], true)(AntdTableFuncControl(QualReview));
|
|
|
|
|
|