diff --git a/src/api/qualificationApply/index.js b/src/api/qualificationApply/index.js index bbe618c..acde1c3 100644 --- a/src/api/qualificationApply/index.js +++ b/src/api/qualificationApply/index.js @@ -14,6 +14,10 @@ export const qualificationApplyList = declareRequest( "qualificationApplyLoading", `Post > @/xgfManager/qualificationsApply/list`, ); +export const qualificationApplyRejectHistoryList = declareRequest( + "qualificationApplyLoading", + `Post > @/xgfManager/qualificationsApply/rejectHistory`, +); export const qualificationApplyAdd = declareRequest( "qualificationApplyLoading", `Post > @/xgfManager/qualificationsApply/save`, diff --git a/src/pages/Container/Stakeholder/Qualification/Apply/List/index.js b/src/pages/Container/Stakeholder/Qualification/Apply/List/index.js index 6becfbf..271d007 100644 --- a/src/pages/Container/Stakeholder/Qualification/Apply/List/index.js +++ b/src/pages/Container/Stakeholder/Qualification/Apply/List/index.js @@ -75,7 +75,7 @@ function List(props) { { title: "操作", fixed: "right", - width: 200, + width: 260, render: (_, record) => ( {props.permission("zrzz-xgf-zrzzsq-btn-ck") && ( @@ -111,6 +111,16 @@ function List(props) { 查看驳回原因 )} + {props.permission("zrzz-xgf-zrzzsq-btn-ckbhyy") && ( + + )} ), }, diff --git a/src/pages/Container/Stakeholder/Qualification/Apply/RejectRecord/index.js b/src/pages/Container/Stakeholder/Qualification/Apply/RejectRecord/index.js new file mode 100644 index 0000000..9d7b2eb --- /dev/null +++ b/src/pages/Container/Stakeholder/Qualification/Apply/RejectRecord/index.js @@ -0,0 +1,44 @@ +import { Permission } from "@cqsjjb/jjb-common-decorator/permission"; +import { Connect } from "@cqsjjb/jjb-dva-runtime"; +import Page from "zy-react-library/components/Page"; +import Table from "zy-react-library/components/Table"; +import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery"; +import useTable from "zy-react-library/hooks/useTable"; +import { NS_QUALIFICATION_APPLY } from "~/enumerate/namespace"; + +function List(props) { + const query = useGetUrlQuery(); + + const { tableProps } = useTable(props["qualificationApplyRejectHistoryList"], { + params: { qualificationsApplyId: query.id }, + }); + + return ( + + ( + <> + {record.auditStatus === 100 && `暂存`} + {record.auditStatus === 200 && `${record.auditProcess === 100 ? "集团单位" : "审核部门"}审核中`} + {record.auditStatus === 300 && `${record.auditProcess === 100 ? "集团单位" : "审核部门"}已驳回`} + {record.auditStatus === 400 && "已通过"} + + ), + }, + { title: "驳回原因", dataIndex: "auditRemarks" }, + ]} + {...tableProps} + /> + + ); +} + +export default Connect([NS_QUALIFICATION_APPLY], true)(Permission(List));