Compare commits
2 Commits
4edf27164c
...
3e64c1653d
| Author | SHA1 | Date |
|---|---|---|
|
|
3e64c1653d | |
|
|
4bcdfb894b |
|
|
@ -362,6 +362,11 @@ export const qualFilingChangeSubmit = declareRequest("qualFilingLoading", safeAc
|
||||||
return apiPost("/safetyEval/qual-filing-change/submit", { draftFilingId: asId(draftFilingId) });
|
return apiPost("/safetyEval/qual-filing-change/submit", { draftFilingId: asId(draftFilingId) });
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
export const qualFilingReviewGet = declareRequest(
|
||||||
|
"qualFilingLoading",
|
||||||
|
"Get > /safetyEval/qual-filing-review/page",
|
||||||
|
);
|
||||||
|
|
||||||
export const submitQualFiling = declareRequest(
|
export const submitQualFiling = declareRequest(
|
||||||
"qualFilingSubmitLoading",
|
"qualFilingSubmitLoading",
|
||||||
"Post > @/safetyEval/qual-filing/aggregationSaveOrEdit",
|
"Post > @/safetyEval/qual-filing/aggregationSaveOrEdit",
|
||||||
|
|
|
||||||
|
|
@ -99,10 +99,4 @@ export function canStartFilingChange(statusCode) {
|
||||||
return Number(statusCode) === 1;
|
return Number(statusCode) === 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 已备案资质管理:周期性填报审核中可修改 */
|
|
||||||
export function isFiledManageEditable(statusCode, mode) {
|
|
||||||
if (mode !== FILING_FORM_MODE.FILED) {
|
|
||||||
return isQualFilingEditable(statusCode);
|
|
||||||
}
|
|
||||||
return Number(statusCode) === 2;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Form, message } from "antd";
|
import { Button, Empty, Form, Modal, Table } from "antd";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { tools } from "@cqsjjb/jjb-common-lib";
|
import { tools } from "@cqsjjb/jjb-common-lib";
|
||||||
import PageLayout from "@cqsjjb/jjb-react-admin-component/PageLayout";
|
import PageLayout from "@cqsjjb/jjb-react-admin-component/PageLayout";
|
||||||
|
|
@ -12,6 +12,8 @@ import { goFilingForm } from "../../filingPaths";
|
||||||
const { router } = tools;
|
const { router } = tools;
|
||||||
|
|
||||||
function FiledManageListPage(props) {
|
function FiledManageListPage(props) {
|
||||||
|
const { qualFiling } = props;
|
||||||
|
const {qualFilingLoading}= qualFiling;
|
||||||
const [searchForm] = Form.useForm();
|
const [searchForm] = Form.useForm();
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
const [dataSource, setDataSource] = useState([]);
|
const [dataSource, setDataSource] = useState([]);
|
||||||
|
|
@ -57,7 +59,35 @@ function FiledManageListPage(props) {
|
||||||
goFilingForm({ mode: FILING_FORM_MODE.FILED });
|
goFilingForm({ mode: FILING_FORM_MODE.FILED });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const [reviewModalOpen, setReviewModalOpen] = useState(false);
|
||||||
|
const [reviewList, setReviewList] = useState([]);
|
||||||
|
|
||||||
|
const handleShowReview = async (record) => {
|
||||||
|
setReviewModalOpen(true);
|
||||||
|
setReviewList([]);
|
||||||
|
try {
|
||||||
|
const res = await props.qualFilingReviewGet({ filingId: record.filingId || record.id, current: 1, size: 999 });
|
||||||
|
setReviewList(res?.data || []);
|
||||||
|
} catch {
|
||||||
|
setReviewList([]);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleCloseReview = () => {
|
||||||
|
setReviewModalOpen(false);
|
||||||
|
setReviewList([]);
|
||||||
|
};
|
||||||
|
|
||||||
|
const REVIEW_RESULT_MAP = { 1: "通过", 2: "待定", 3: "不通过" };
|
||||||
|
const reviewColumns = [
|
||||||
|
{ title: "审核结果", dataIndex: "reviewResult", width: 100, render: (v) => REVIEW_RESULT_MAP[v] || v || "-" },
|
||||||
|
{ title: "审核结果说明", dataIndex: "reviewResultRemark", ellipsis: true },
|
||||||
|
{ title: "审核专家", dataIndex: "filingExpertName", width: 120 },
|
||||||
|
{ title: "综合审核意见", dataIndex: "reviewOpinion", ellipsis: true },
|
||||||
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<FilingListTable
|
<FilingListTable
|
||||||
PageLayout={PageLayout}
|
PageLayout={PageLayout}
|
||||||
listTitle="已备案资质管理"
|
listTitle="已备案资质管理"
|
||||||
|
|
@ -72,7 +102,33 @@ function FiledManageListPage(props) {
|
||||||
onSearch={handleSearch}
|
onSearch={handleSearch}
|
||||||
onPageChange={handlePageChange}
|
onPageChange={handlePageChange}
|
||||||
onCreate={handleCreate}
|
onCreate={handleCreate}
|
||||||
|
extraActions={(record) =>
|
||||||
|
Number(record.filingStatusCode) === 3
|
||||||
|
? <Button type="link" size="small" onClick={() => handleShowReview(record)}>打回原因</Button>
|
||||||
|
: null
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
|
<Modal
|
||||||
|
open={reviewModalOpen}
|
||||||
|
title="打回原因"
|
||||||
|
width={800}
|
||||||
|
loading={qualFilingLoading}
|
||||||
|
cancelText="关闭"
|
||||||
|
okButtonProps={{ style: { display: "none" } }}
|
||||||
|
onCancel={handleCloseReview}
|
||||||
|
>
|
||||||
|
{reviewList.length ? (
|
||||||
|
<Table
|
||||||
|
rowKey="id"
|
||||||
|
size="small"
|
||||||
|
bordered
|
||||||
|
pagination={false}
|
||||||
|
dataSource={reviewList}
|
||||||
|
columns={reviewColumns}
|
||||||
|
/>
|
||||||
|
) : !qualFilingLoading ? <Empty /> : null}
|
||||||
|
</Modal>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ import { CHONGQING_DISTRICTS } from "~/enumerate/enterpriseOptions";
|
||||||
import {
|
import {
|
||||||
FILING_FORM_MODE,
|
FILING_FORM_MODE,
|
||||||
getFilingStatusOptions,
|
getFilingStatusOptions,
|
||||||
isFiledManageEditable,
|
|
||||||
isQualFilingEditable,
|
isQualFilingEditable,
|
||||||
QUAL_FILING_STATUS_COLOR,
|
QUAL_FILING_STATUS_COLOR,
|
||||||
} from "~/enumerate/qualFilingOptions";
|
} from "~/enumerate/qualFilingOptions";
|
||||||
|
|
@ -35,9 +34,7 @@ export default function FilingListTable({
|
||||||
const statusOptions = getFilingStatusOptions(mode);
|
const statusOptions = getFilingStatusOptions(mode);
|
||||||
|
|
||||||
const canEditRow = (record) => {
|
const canEditRow = (record) => {
|
||||||
if (mode === FILING_FORM_MODE.FILED) {
|
|
||||||
return isFiledManageEditable(record.filingStatusCode, mode);
|
|
||||||
}
|
|
||||||
return isQualFilingEditable(record.filingStatusCode);
|
return isQualFilingEditable(record.filingStatusCode);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ const ExpertVerification = (props) => {
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{ title: "机构类型", dataIndex: "filingUnitTypeName", width: 100 },
|
{ title: "机构类型", dataIndex: "filingUnitTypeName", width: 100 },
|
||||||
{ title: "证书编号", dataIndex: "filingNo", width: 140, ellipsis: true },
|
{ title: "证书编号", dataIndex: "qualCertNo", width: 140, ellipsis: true },
|
||||||
{
|
{
|
||||||
title: "安全评价业务范围",
|
title: "安全评价业务范围",
|
||||||
dataIndex: "businessScope",
|
dataIndex: "businessScope",
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ const QualConfirm = (props) => {
|
||||||
},
|
},
|
||||||
{ 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: "qualCertNo", width: 140, ellipsis: true },
|
||||||
{ title: "安全评价业务范围", dataIndex: "businessScope", width: 180, ellipsis: true },
|
{ title: "安全评价业务范围", dataIndex: "businessScope", width: 180, ellipsis: true },
|
||||||
{
|
{
|
||||||
title: "确认状态",
|
title: "确认状态",
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ const QualConfirmForm = (props) => {
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div className="summary-label">证书编号</div>
|
<div className="summary-label">证书编号</div>
|
||||||
<div className="summary-value">{qualFilingDetail.filingNo || '--'}</div>
|
<div className="summary-value">{qualFilingDetail.qualCertNo || '--'}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div className="summary-label">业务范围</div>
|
<div className="summary-label">业务范围</div>
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ const QualReview = (props) => {
|
||||||
allowClear
|
allowClear
|
||||||
style={{ width: "100%" }}
|
style={{ width: "100%" }}
|
||||||
>
|
>
|
||||||
|
<Select.Option value="1">已审核</Select.Option>
|
||||||
<Select.Option value="2">审核中</Select.Option>
|
<Select.Option value="2">审核中</Select.Option>
|
||||||
<Select.Option value="3">打回</Select.Option>
|
<Select.Option value="3">打回</Select.Option>
|
||||||
</ControlWrapper.Select>
|
</ControlWrapper.Select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue