项目管理相关页面 按钮添加权限

master
yujia 2025-12-23 16:10:40 +08:00
parent 220bf517f1
commit b9a2be1eb9
32 changed files with 717 additions and 512 deletions

View File

@ -25,6 +25,7 @@ module.exports = {
contextInject: { contextInject: {
// 应用Key // 应用Key
appKey: "", appKey: "",
// fileUrl: "https://jpfz.qhdscom/gbsFileTest/",
fileUrl: "http://192.168.20.240:9787/mnt/", fileUrl: "http://192.168.20.240:9787/mnt/",
}, },
// public/index.html注入全局变量 // public/index.html注入全局变量

View File

@ -37,7 +37,7 @@ export const projectDetail = declareRequest(
); );
export const projectApprovalFlow = declareRequest( export const projectApprovalFlow = declareRequest(
"qualificationStatisticsLoading", "qualificationStatisticsLoading",
`Get > /xgfManager/projectApprovalFlow/getRejectCause/`, `Get > /xgfManager/projectApprovalFlow/getRejectCause/{id}`,
); );
export const deptListByType = declareRequest( export const deptListByType = declareRequest(
"qualificationStatisticsLoading", "qualificationStatisticsLoading",

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Descriptions, Form, Modal, Space } from "antd"; import { Button, Descriptions, Form, Modal, Space } from "antd";
import { useState } from "react"; import { useState } from "react";
@ -62,6 +63,7 @@ function List(props) {
width: 150, width: 150,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmsh-jtgs-ejxmbash-btn-ck" || "xmsh-jtgs-ejxmbash-btn-sh") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -70,7 +72,8 @@ function List(props) {
> >
{record.projectStatus === 7 ? "审核" : "查看"} {record.projectStatus === 7 ? "审核" : "查看"}
</Button> </Button>
{record.projectStatus === 6 && ( )}
{(props.permission("xmsh-jtgs-ejxmbash-btn-ckbhyy") && record.projectStatus === 6) && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -108,11 +111,11 @@ const RejectReason = (props) => {
column={1} column={1}
styles={{ label: { width: 200 } }} styles={{ label: { width: 200 } }}
items={[ items={[
{ label: "驳回原因", children: props.rejectReason }, { label: "驳回原因", children: props.rejectReason.rejectReason },
]} ]}
/> />
</Modal> </Modal>
); );
}; };
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,7 +1,7 @@
import ListView from "~/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/list"; import ListView from "~/pages/Container/Stakeholder/ProjectReview/ProjectFilingApplication/list";
function List(props) { function List(props) {
return (<ListView {...props} />); return (<ListView xzbtn="xmsh-jtgs-yjxmbasq-btn-xz" ckbtn="xmsh-jtgs-yjxmbasq-btn-ck" xgbtn="xmsh-jtgs-yjxmbasq-btn-xg" ckbhyybtn="xmsh-jtgs-yjxmbasq-btn-ckbhyy" {...props} />);
}; };
export default List; export default List;

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space } from "antd"; import { Button, Form, Space } from "antd";
import Search from "zy-react-library/components/Search"; import Search from "zy-react-library/components/Search";
@ -63,6 +64,7 @@ function List(props) {
width: 350, width: 350,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmsh-jtgs-xmbagl-btn-ck") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -71,6 +73,8 @@ function List(props) {
> >
查看 查看
</Button> </Button>
)}
{props.permission("xmsh-jtgs-xmbagl-btn-xmrybg") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -79,6 +83,8 @@ function List(props) {
> >
项目人员变更 项目人员变更
</Button> </Button>
)}
{props.permission("xmsh-jtgs-xmbagl-btn-rybgjl") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -87,6 +93,7 @@ function List(props) {
> >
人员变更记录 人员变更记录
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -97,4 +104,4 @@ function List(props) {
); );
} }
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Descriptions, Form, Modal, Space } from "antd"; import { Button, Descriptions, Form, Modal, Space } from "antd";
import { useState } from "react"; import { useState } from "react";
@ -39,6 +40,7 @@ function List(props) {
<Table <Table
toolBarRender={() => ( toolBarRender={() => (
<Space> <Space>
{props.permission("zrzz-jtgs-zrzzsq-btn-xz") && (
<Button <Button
type="primary" type="primary"
icon={<AddIcon />} icon={<AddIcon />}
@ -48,6 +50,7 @@ function List(props) {
> >
新增 新增
</Button> </Button>
)}
</Space> </Space>
)} )}
columns={[ columns={[
@ -69,6 +72,7 @@ function List(props) {
width: 200, width: 200,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("zrzz-jtgs-zrzzsq-btn-ck") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -77,6 +81,8 @@ function List(props) {
> >
查看 查看
</Button> </Button>
)}
{props.permission("zrzz-jtgs-zrzzsq-btn-xg") && (
<Button <Button
type="link" type="link"
disabled={record.status !== 300} disabled={record.status !== 300}
@ -86,6 +92,8 @@ function List(props) {
> >
修改 修改
</Button> </Button>
)}
{props.permission("zrzz-jtgs-zrzzsq-btn-ckbhyy") && (
<Button <Button
type="link" type="link"
disabled={record.status !== 300} disabled={record.status !== 300}
@ -95,6 +103,7 @@ function List(props) {
> >
查看驳回原因 查看驳回原因
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -130,4 +139,4 @@ const RejectReason = (props) => {
); );
}; };
export default Connect([NS_QUALIFICATION_APPLY], true)(List); export default Connect([NS_QUALIFICATION_APPLY], true)(Permission(List));

View File

@ -1,7 +1,8 @@
import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { useState } from "react";
import { Button, Form, Space, Tooltip } from "antd";
import { WarningOutlined } from "@ant-design/icons"; import { WarningOutlined } from "@ant-design/icons";
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space, Tooltip } from "antd";
import { useState } from "react";
import Search from "zy-react-library/components/Search"; import Search from "zy-react-library/components/Search";
import DictionarySelect from "zy-react-library/components/Select/Dictionary"; import DictionarySelect from "zy-react-library/components/Select/Dictionary";
import Table from "zy-react-library/components/Table"; import Table from "zy-react-library/components/Table";
@ -23,7 +24,7 @@ function List(props) {
}, },
onSuccess: (data) => { onSuccess: (data) => {
setCurrentTenantId(data.extValues.currentTenantId); setCurrentTenantId(data.extValues.currentTenantId);
} },
}); });
return ( return (
@ -39,11 +40,14 @@ function List(props) {
}, },
{ name: "stakeholderLevel", label: "资质级别", render: (<DictionarySelect dictValue="stakeholderLevel" />) }, { name: "stakeholderLevel", label: "资质级别", render: (<DictionarySelect dictValue="stakeholderLevel" />) },
{ {
name: "auditStatus", label: "审核状态", render: FORM_ITEM_RENDER_ENUM.SELECT, items: [ name: "auditStatus",
label: "审核状态",
render: FORM_ITEM_RENDER_ENUM.SELECT,
items: [
{ bianma: "200-200", name: "主管部门审核中" }, { bianma: "200-200", name: "主管部门审核中" },
{ bianma: "200-300", name: "主管部门已驳回" }, { bianma: "200-300", name: "主管部门已驳回" },
{ bianma: "400", name: "已完成" }, { bianma: "400", name: "已完成" },
] ],
}, },
]} ]}
form={form} form={form}
@ -58,36 +62,49 @@ function List(props) {
{ title: "时效属性", dataIndex: "isLongTerm", render: (_, record) => record.isLongTerm ? "长期" : "短期" }, { title: "时效属性", dataIndex: "isLongTerm", render: (_, record) => record.isLongTerm ? "长期" : "短期" },
{ title: "材料数", dataIndex: "materialNum" }, { title: "材料数", dataIndex: "materialNum" },
{ {
title: "资质状态", dataIndex: "qualificationsStatus", render: (_, record) => ( title: "资质状态",
dataIndex: "qualificationsStatus",
render: (_, record) => (
<div> <div>
{record.qualificationsStatus === 0 && "正常"} {record.qualificationsStatus === 0 && "正常"}
{record.qualificationsStatus === 1 && "待完善"} {record.qualificationsStatus === 1 && "待完善"}
{record.qualificationsStatus === 2 && ( {record.qualificationsStatus === 2 && (
<Tooltip <Tooltip
overlayStyle={{ width: 'auto', maxWidth: '700px', whiteSpace: 'normal', wordBreak: 'break-word' }} overlayStyle={{ width: "auto", maxWidth: "700px", whiteSpace: "normal", wordBreak: "break-word" }}
title={ title={
record.expireList ? ( record.expireList
<div style={{ width: '100%' }}> ? (
<div style={{ width: "100%" }}>
{record.expireList.map((item, index) => ( {record.expireList.map((item, index) => (
<div key={index}> <div key={index}>
{item.dataName} 已于 {item.qualificationsTermEnd} 过期 {item.dataName}
{" "}
已于
{item.qualificationsTermEnd}
{" "}
过期
</div> </div>
))} ))}
</div> </div>
) : "部分资料已过期" )
: "部分资料已过期"
} }
> >
<span style={{ display: 'inline-flex', alignItems: 'center' }}> <span style={{ display: "inline-flex", alignItems: "center" }}>
存在异常 <WarningOutlined style={{ color: '#faad14', marginLeft: 4 }} /> 存在异常
{" "}
<WarningOutlined style={{ color: "#faad14", marginLeft: 4 }} />
</span> </span>
</Tooltip> </Tooltip>
)} )}
{record.qualificationsStatus === 3 && "资质过期"} {record.qualificationsStatus === 3 && "资质过期"}
</div> </div>
) ),
}, },
{ {
title: "当前状态", dataIndex: "auditProcess", render: (_, record) => ( title: "当前状态",
dataIndex: "auditProcess",
render: (_, record) => (
<div> <div>
{record.auditProcess === "100" && "集团单位"} {record.auditProcess === "100" && "集团单位"}
{record.status === 100 && "待审核"} {record.status === 100 && "待审核"}
@ -95,7 +112,7 @@ function List(props) {
{record.status === 300 && "已驳回"} {record.status === 300 && "已驳回"}
{record.status === 400 && "已通过"} {record.status === 400 && "已通过"}
</div> </div>
) ),
}, },
{ {
title: "操作", title: "操作",
@ -103,7 +120,7 @@ function List(props) {
width: 200, width: 200,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{record.status === 400 && record.corpId === currentTenantId && (record.qualificationsStatus === 1 || record.qualificationsStatus === 2) && ( {(props.permission(props.cxtjbtn || "zrzz-jtgs-zrzzjl-btn-cxtj") && record.status === 400 && record.corpId === currentTenantId && (record.qualificationsStatus === 1 || record.qualificationsStatus === 2)) && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -113,6 +130,7 @@ function List(props) {
重新提交 重新提交
</Button> </Button>
)} )}
{props.permission(props.ckbtn || "zrzz-jtgs-zrzzjl-btn-ck") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -121,6 +139,7 @@ function List(props) {
> >
查看 查看
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -131,4 +150,4 @@ function List(props) {
); );
} }
export default Connect([NS_QUALIFICATION_RECORDS], true)(List); export default Connect([NS_QUALIFICATION_RECORDS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space } from "antd"; import { Button, Form, Space } from "antd";
import Search from "zy-react-library/components/Search"; import Search from "zy-react-library/components/Search";
@ -36,33 +37,44 @@ function List(props) {
{ title: "资质级别", dataIndex: "stakeholderLevelName" }, { title: "资质级别", dataIndex: "stakeholderLevelName" },
{ title: "材料数", dataIndex: "materialNum" }, { title: "材料数", dataIndex: "materialNum" },
{ {
title: "资质状态", dataIndex: "qualificationsStatus", render: (_, record) => ( title: "资质状态",
dataIndex: "qualificationsStatus",
render: (_, record) => (
<div> <div>
{record.qualificationsStatus === 0 && "正常"} {record.qualificationsStatus === 0 && "正常"}
{record.qualificationsStatus === 1 && "待完善"} {record.qualificationsStatus === 1 && "待完善"}
{record.qualificationsStatus === 2 && ( {record.qualificationsStatus === 2 && (
<Tooltip <Tooltip
overlayStyle={{ width: 'auto', maxWidth: '700px', whiteSpace: 'normal', wordBreak: 'break-word' }} overlayStyle={{ width: "auto", maxWidth: "700px", whiteSpace: "normal", wordBreak: "break-word" }}
title={ title={
record.expireList ? ( record.expireList
<div style={{ width: '100%' }}> ? (
<div style={{ width: "100%" }}>
{record.expireList.map((item, index) => ( {record.expireList.map((item, index) => (
<div key={index}> <div key={index}>
{item.dataName} 已于 {item.qualificationsTermEnd} 过期 {item.dataName}
{" "}
已于
{item.qualificationsTermEnd}
{" "}
过期
</div> </div>
))} ))}
</div> </div>
) : "部分资料已过期" )
: "部分资料已过期"
} }
> >
<span style={{ display: 'inline-flex', alignItems: 'center' }}> <span style={{ display: "inline-flex", alignItems: "center" }}>
存在异常 <WarningOutlined style={{ color: '#faad14', marginLeft: 4 }} /> 存在异常
{" "}
<WarningOutlined style={{ color: "#faad14", marginLeft: 4 }} />
</span> </span>
</Tooltip> </Tooltip>
)} )}
{record.qualificationsStatus === 3 && "资质过期"} {record.qualificationsStatus === 3 && "资质过期"}
</div> </div>
) ),
}, },
{ {
title: "操作", title: "操作",
@ -70,6 +82,7 @@ function List(props) {
width: 100, width: 100,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("zrzz-jtgs-xgfzrzzsh-btn-sh") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -78,6 +91,7 @@ function List(props) {
> >
审核 审核
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -88,4 +102,4 @@ function List(props) {
); );
} }
export default Connect([NS_QUALIFICATION_REVIEW], true)(List); export default Connect([NS_QUALIFICATION_REVIEW], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Descriptions, Form, Modal, Space } from "antd"; import { Button, Descriptions, Form, Modal, Space } from "antd";
import { useState } from "react"; import { useState } from "react";
@ -62,6 +63,7 @@ function List(props) {
width: 150, width: 150,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmsh-sdgs-ffbxmsh-btn-ck" || "xmsh-sdgs-ffbxmsh-btn-sh") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -70,7 +72,8 @@ function List(props) {
> >
{record.projectStatus === 3 ? "审核" : "查看"} {record.projectStatus === 3 ? "审核" : "查看"}
</Button> </Button>
{record.projectStatus === 6 && ( )}
{(props.permission("xmsh-sdgs-ffbxmsh-btn-ckbhyy") && record.projectStatus === 6) && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -108,11 +111,11 @@ const RejectReason = (props) => {
column={1} column={1}
styles={{ label: { width: 200 } }} styles={{ label: { width: 200 } }}
items={[ items={[
{ label: "驳回原因", children: props.rejectReason }, { label: "驳回原因", children: props.rejectReason.rejectReason },
]} ]}
/> />
</Modal> </Modal>
); );
}; };
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space } from "antd"; import { Button, Form, Space } from "antd";
import Search from "zy-react-library/components/Search"; import Search from "zy-react-library/components/Search";
@ -53,6 +54,7 @@ function List(props) {
width: 150, width: 150,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmqr-sdgs-ffbxmqr-btn-ck") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -61,6 +63,7 @@ function List(props) {
> >
{record.projectStatus === 2 ? "确认" : "查看"} {record.projectStatus === 2 ? "确认" : "查看"}
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -70,4 +73,4 @@ function List(props) {
</div> </div>
); );
} }
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Descriptions, Form, Modal, Space } from "antd"; import { Button, Descriptions, Form, Modal, Space } from "antd";
import { useState } from "react"; import { useState } from "react";
@ -62,6 +63,7 @@ function List(props) {
width: 150, width: 150,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmsh-sdgs-fbxmsh-btn-ck" || "xmsh-sdgs-fbxmsh-btn-sh") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -70,7 +72,8 @@ function List(props) {
> >
{record.projectStatus === 3 ? "审核" : "查看"} {record.projectStatus === 3 ? "审核" : "查看"}
</Button> </Button>
{record.projectStatus === 6 && ( )}
{(props.permission("xmsh-sdgs-fbxmsh-btn-ckbhyy") && record.projectStatus === 6) && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -108,11 +111,11 @@ const RejectReason = (props) => {
column={1} column={1}
styles={{ label: { width: 200 } }} styles={{ label: { width: 200 } }}
items={[ items={[
{ label: "驳回原因", children: props.rejectReason }, { label: "驳回原因", children: props.rejectReason.rejectReason },
]} ]}
/> />
</Modal> </Modal>
); );
}; };
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space } from "antd"; import { Button, Form, Space } from "antd";
import Search from "zy-react-library/components/Search"; import Search from "zy-react-library/components/Search";
@ -53,6 +54,7 @@ function List(props) {
width: 150, width: 150,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmqr-sdgs-fbxmqr-btn-ck") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -61,6 +63,7 @@ function List(props) {
> >
{record.projectStatus === 2 ? "确认" : "查看"} {record.projectStatus === 2 ? "确认" : "查看"}
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -71,4 +74,4 @@ function List(props) {
); );
} }
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Descriptions, Form, Modal, Space } from "antd"; import { Button, Descriptions, Form, Modal, Space } from "antd";
import { useState } from "react"; import { useState } from "react";
@ -62,6 +63,7 @@ function List(props) {
width: 150, width: 150,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmsh-sdgs-ejxmsh-btn-ck" || "xmsh-sdgs-ejxmsh-btn-sh") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -70,7 +72,8 @@ function List(props) {
> >
{record.projectStatus === 3 ? "审核" : "查看"} {record.projectStatus === 3 ? "审核" : "查看"}
</Button> </Button>
{record.projectStatus === 6 && ( )}
{(props.permission("xmsh-sdgs-ejxmsh-btn-ckbhyy") && record.projectStatus === 6) && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -108,11 +111,11 @@ const RejectReason = (props) => {
column={1} column={1}
styles={{ label: { width: 200 } }} styles={{ label: { width: 200 } }}
items={[ items={[
{ label: "驳回原因", children: props.rejectReason }, { label: "驳回原因", children: props.rejectReason.rejectReason },
]} ]}
/> />
</Modal> </Modal>
); );
}; };
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space } from "antd"; import { Button, Form, Space } from "antd";
import Search from "zy-react-library/components/Search"; import Search from "zy-react-library/components/Search";
@ -52,6 +53,7 @@ function List(props) {
width: 150, width: 150,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmqr-sdgs-ejxmqr-btn-ck") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -60,6 +62,7 @@ function List(props) {
> >
{record.projectStatus === 2 ? "确认" : "查看"} {record.projectStatus === 2 ? "确认" : "查看"}
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -70,4 +73,4 @@ function List(props) {
); );
} }
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,7 +1,7 @@
import ListView from "~/pages/Container/Supervision/ProjectReview/ProjectFilingInformation/list"; import ListView from "~/pages/Container/Supervision/ProjectReview/ProjectFilingInformation/list";
function List(props) { function List(props) {
return (<ListView searchType="4" {...props} />); return (<ListView ckbtn="xmsh-sdgs-xmbaxxgl-btn-ck" rybgjlbtn="xmsh-sdgs-xmbaxxgl-btn-rybgjl" searchType="4" {...props} />);
}; };
export default List; export default List;

View File

@ -1,7 +1,7 @@
import ListView from "~/pages/Container/Supervision/ProjectReview/ProjectFilingInformation/list"; import ListView from "~/pages/Container/Supervision/ProjectReview/ProjectFilingInformation/list";
function List(props) { function List(props) {
return (<ListView searchType="3" {...props} />); return (<ListView ckbtn="xmqr-sdgs-xmqrbaxxgl-btn-ck" rybgjlbtn="xmqr-sdgs-xmqrbaxxgl-btn-rybgjl" searchType="3" {...props} />);
}; };
export default List; export default List;

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space } from "antd"; import { Button, Form, Space } from "antd";
import Search from "zy-react-library/components/Search"; import Search from "zy-react-library/components/Search";
@ -36,33 +37,44 @@ function List(props) {
{ title: "资质级别", dataIndex: "stakeholderLevelName" }, { title: "资质级别", dataIndex: "stakeholderLevelName" },
{ title: "材料数", dataIndex: "materialNum" }, { title: "材料数", dataIndex: "materialNum" },
{ {
title: "资质状态", dataIndex: "qualificationsStatus", render: (_, record) => ( title: "资质状态",
dataIndex: "qualificationsStatus",
render: (_, record) => (
<div> <div>
{record.qualificationsStatus === 0 && "正常"} {record.qualificationsStatus === 0 && "正常"}
{record.qualificationsStatus === 1 && "待完善"} {record.qualificationsStatus === 1 && "待完善"}
{record.qualificationsStatus === 2 && ( {record.qualificationsStatus === 2 && (
<Tooltip <Tooltip
overlayStyle={{ width: 'auto', maxWidth: '700px', whiteSpace: 'normal', wordBreak: 'break-word' }} overlayStyle={{ width: "auto", maxWidth: "700px", whiteSpace: "normal", wordBreak: "break-word" }}
title={ title={
record.expireList ? ( record.expireList
<div style={{ width: '100%' }}> ? (
<div style={{ width: "100%" }}>
{record.expireList.map((item, index) => ( {record.expireList.map((item, index) => (
<div key={index}> <div key={index}>
{item.dataName} 已于 {item.qualificationsTermEnd} 过期 {item.dataName}
{" "}
已于
{item.qualificationsTermEnd}
{" "}
过期
</div> </div>
))} ))}
</div> </div>
) : "部分资料已过期" )
: "部分资料已过期"
} }
> >
<span style={{ display: 'inline-flex', alignItems: 'center' }}> <span style={{ display: "inline-flex", alignItems: "center" }}>
存在异常 <WarningOutlined style={{ color: '#faad14', marginLeft: 4 }} /> 存在异常
{" "}
<WarningOutlined style={{ color: "#faad14", marginLeft: 4 }} />
</span> </span>
</Tooltip> </Tooltip>
)} )}
{record.qualificationsStatus === 3 && "资质过期"} {record.qualificationsStatus === 3 && "资质过期"}
</div> </div>
) ),
}, },
{ {
title: "操作", title: "操作",
@ -70,6 +82,7 @@ function List(props) {
width: 100, width: 100,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("zrzz-sdgs-xgfzrzzsh-btn-sh") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -78,6 +91,7 @@ function List(props) {
> >
审核 审核
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -88,4 +102,4 @@ function List(props) {
); );
} }
export default Connect([NS_QUALIFICATION_REVIEW], true)(List); export default Connect([NS_QUALIFICATION_REVIEW], true)(Permission(List));

View File

@ -178,7 +178,7 @@ const StepOneComponent = (props) => {
useEffect(() => { useEffect(() => {
getCorpInfoList(); getCorpInfoList();
getCropList(); getCropList();
if (props.formValues.isLocalCompany) { if (props.formValues.isLocalCompany === 0) {
getDeptList(props.formValues.qualificationsTypeId); getDeptList(props.formValues.qualificationsTypeId);
getUserList(props.formValues.manageDeptId); getUserList(props.formValues.manageDeptId);
} }
@ -265,11 +265,18 @@ const StepOneComponent = (props) => {
<DictionarySelect <DictionarySelect
dictValue="qualificationsType" dictValue="qualificationsType"
onGetLabel={label => form.setFieldValue("qualificationsTypeName", label)} onGetLabel={label => form.setFieldValue("qualificationsTypeName", label)}
onChange={() => { style={{ width: "100%" }}
onChange={() => {}}
}}
/> />
) }, ) },
{
span: 24,
render: (
<div style={{ fontSize: 12, color: "red", whiteSpace: "nowrap", marginTop: "-8px", marginBottom: "16px", marginLeft: "112px" }}>
如果选择项目类别或等级没有您相应的选项时请在"资质准入管理"中查看是否持有对应类比或等级的相关资质
</div>
),
},
{ name: "qualificationsTypeName", label: "项目类别名称", onlyForLabel: true }, { name: "qualificationsTypeName", label: "项目类别名称", onlyForLabel: true },
{ name: "subcontractFlag", label: "是否存在分包项目", span: 24, render: FORM_ITEM_RENDER_ENUM.RADIO, items: [{ bianma: 1, name: "是" }, { bianma: 0, name: "否" }] }, { name: "subcontractFlag", label: "是否存在分包项目", span: 24, render: FORM_ITEM_RENDER_ENUM.RADIO, items: [{ bianma: 1, name: "是" }, { bianma: 0, name: "否" }] },
{ name: "isLocalCompany", label: "是否为属地公司推荐", span: 24, render: FORM_ITEM_RENDER_ENUM.RADIO, items: [{ bianma: 1, name: "是" }, { bianma: 0, name: "否" }], componentProps: { { name: "isLocalCompany", label: "是否为属地公司推荐", span: 24, render: FORM_ITEM_RENDER_ENUM.RADIO, items: [{ bianma: 1, name: "是" }, { bianma: 0, name: "否" }], componentProps: {
@ -291,6 +298,14 @@ const StepOneComponent = (props) => {
}); });
}, },
} }, } },
{
span: 24,
render: (
<div style={{ fontSize: 12, color: "red", whiteSpace: "nowrap", marginTop: "-8px", marginBottom: "16px", marginLeft: "112px" }}>
本次项目是否属于港股分公司发包项目如是请选择"是"
</div>
),
},
...(isLocalCompany === 1 ...(isLocalCompany === 1
? [ ? [
{ {
@ -391,6 +406,14 @@ const StepOneComponent = (props) => {
}, },
{ name: "manageUserNames", label: "主管部门审核人名称", onlyForLabel: true }, { name: "manageUserNames", label: "主管部门审核人名称", onlyForLabel: true },
]), ]),
{
render: (
<div style={{ fontSize: 12, color: "red", whiteSpace: "nowrap", marginTop: "-8px", marginBottom: "16px", marginLeft: "112px" }}>
本信息涉及后续项目资料审核请如实填写
</div>
),
span: 24,
},
{ {
name: "approvalCorpId", name: "approvalCorpId",
label: "项目执行属地公司名称", label: "项目执行属地公司名称",

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Descriptions, Form, Modal, Space } from "antd"; import { Button, Descriptions, Form, Modal, Space } from "antd";
import { useState } from "react"; import { useState } from "react";
@ -53,6 +54,7 @@ function List(props) {
<Table <Table
toolBarRender={() => ( toolBarRender={() => (
<Space> <Space>
{props.permission("xmsh-xgf-yjxmbasq-btn-xz" || props.xzbtn) && (
<Button <Button
type="primary" type="primary"
icon={<AddIcon />} icon={<AddIcon />}
@ -62,6 +64,7 @@ function List(props) {
> >
新增 新增
</Button> </Button>
)}
</Space> </Space>
)} )}
columns={[ columns={[
@ -79,9 +82,10 @@ function List(props) {
{ {
title: "操作", title: "操作",
fixed: "right", fixed: "right",
width: 150, width: 200,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmsh-xgf-yjxmbasq-btn-ck" || props.ckbtn) && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -90,8 +94,10 @@ function List(props) {
> >
查看 查看
</Button> </Button>
)}
{record.projectStatus === 6 && ( {record.projectStatus === 6 && (
<> <>
{props.permission("xmsh-xgf-yjxmbasq-btn-xg" || props.xgbtn) && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -100,6 +106,8 @@ function List(props) {
> >
编辑 编辑
</Button> </Button>
)}
{props.permission("xmsh-xgf-yjxmbasq-btn-ckbhyy" || props.ckbhyybtn) && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -109,6 +117,7 @@ function List(props) {
> >
查看驳回原因 查看驳回原因
</Button> </Button>
)}
</> </>
)} )}
</Space> </Space>
@ -138,11 +147,11 @@ const RejectReason = (props) => {
column={1} column={1}
styles={{ label: { width: 200 } }} styles={{ label: { width: 200 } }}
items={[ items={[
{ label: "驳回原因", children: props.rejectReason }, { label: "驳回原因", children: props.rejectReason.rejectReason },
]} ]}
/> />
</Modal> </Modal>
); );
}; };
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -181,7 +181,7 @@ function Review(props) {
const { success } = await props["projectAudit"]({ const { success } = await props["projectAudit"]({
id: query.id, id: query.id,
result, result,
rejectReason: values.rejectReason, // 添加拒绝原因 rejectCause: values.rejectReason, // 添加拒绝原因
}); });
if (success) { if (success) {
message.success("审核驳回成功"); message.success("审核驳回成功");

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space } from "antd"; import { Button, Form, Space } from "antd";
import Search from "zy-react-library/components/Search"; import Search from "zy-react-library/components/Search";
@ -64,6 +65,7 @@ function List(props) {
width: 350, width: 350,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmsh-xgf-yjxmbagl-btn-ck") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -72,6 +74,8 @@ function List(props) {
> >
查看 查看
</Button> </Button>
)}
{props.permission("xmsh-xgf-yjxmbagl-btn-xmrybg") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -80,6 +84,8 @@ function List(props) {
> >
项目人员变更 项目人员变更
</Button> </Button>
)}
{props.permission("xmsh-xgf-yjxmbagl-btn-rybgjl") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -88,6 +94,7 @@ function List(props) {
> >
人员变更记录 人员变更记录
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -98,4 +105,4 @@ function List(props) {
); );
} }
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Descriptions, Form, Modal, Space } from "antd"; import { Button, Descriptions, Form, Modal, Space } from "antd";
import { useState } from "react"; import { useState } from "react";
@ -52,6 +53,7 @@ function List(props) {
<Table <Table
toolBarRender={() => ( toolBarRender={() => (
<Space> <Space>
{props.permission("xmsh-xgf-ejxmbasq-btn-xz") && (
<Button <Button
type="primary" type="primary"
icon={<AddIcon />} icon={<AddIcon />}
@ -61,6 +63,7 @@ function List(props) {
> >
新增 新增
</Button> </Button>
)}
</Space> </Space>
)} )}
columns={[ columns={[
@ -78,9 +81,10 @@ function List(props) {
{ {
title: "操作", title: "操作",
fixed: "right", fixed: "right",
width: 150, width: 200,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmsh-xgf-ejxmbasq-btn-ck") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -89,8 +93,10 @@ function List(props) {
> >
查看 查看
</Button> </Button>
)}
{record.projectStatus === 6 && ( {record.projectStatus === 6 && (
<> <>
{props.permission("xmsh-xgf-ejxmbasq-btn-xg") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -99,6 +105,8 @@ function List(props) {
> >
编辑 编辑
</Button> </Button>
)}
{props.permission("xmsh-xgf-ejxmbasq-btn-ckbhyy") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -108,6 +116,7 @@ function List(props) {
> >
查看驳回原因 查看驳回原因
</Button> </Button>
)}
</> </>
)} )}
</Space> </Space>
@ -137,11 +146,11 @@ const RejectReason = (props) => {
column={1} column={1}
styles={{ label: { width: 200 } }} styles={{ label: { width: 200 } }}
items={[ items={[
{ label: "驳回原因", children: props.rejectReason }, { label: "驳回原因", children: props.rejectReason.rejectReason },
]} ]}
/> />
</Modal> </Modal>
); );
}; };
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space } from "antd"; import { Button, Form, Space } from "antd";
import Search from "zy-react-library/components/Search"; import Search from "zy-react-library/components/Search";
@ -52,6 +53,7 @@ function List(props) {
width: 350, width: 350,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmsh-xgf-ejxmbagl-btn-ck") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -60,6 +62,8 @@ function List(props) {
> >
查看 查看
</Button> </Button>
)}
{props.permission("xmsh-xgf-ejxmbagl-btn-xmrybg") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -68,6 +72,8 @@ function List(props) {
> >
项目人员变更 项目人员变更
</Button> </Button>
)}
{props.permission("xmsh-xgf-ejxmbagl-btn-rybgjl") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -76,6 +82,7 @@ function List(props) {
> >
人员变更记录 人员变更记录
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -86,4 +93,4 @@ function List(props) {
); );
} }
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Descriptions, Form, Modal, Space } from "antd"; import { Button, Descriptions, Form, Modal, Space } from "antd";
import { useState } from "react"; import { useState } from "react";
@ -39,6 +40,7 @@ function List(props) {
<Table <Table
toolBarRender={() => ( toolBarRender={() => (
<Space> <Space>
{props.permission("zrzz-xgf-zrzzsq-btn-xz") && (
<Button <Button
type="primary" type="primary"
icon={<AddIcon />} icon={<AddIcon />}
@ -48,6 +50,7 @@ function List(props) {
> >
新增 新增
</Button> </Button>
)}
</Space> </Space>
)} )}
columns={[ columns={[
@ -70,6 +73,7 @@ function List(props) {
width: 200, width: 200,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("zrzz-xgf-zrzzsq-btn-ck") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -78,6 +82,8 @@ function List(props) {
> >
查看 查看
</Button> </Button>
)}
{props.permission("zrzz-xgf-zrzzsq-btn-xg") && (
<Button <Button
type="link" type="link"
disabled={record.status !== 300} disabled={record.status !== 300}
@ -87,6 +93,8 @@ function List(props) {
> >
修改 修改
</Button> </Button>
)}
{props.permission("zrzz-xgf-zrzzsq-btn-ckbhyy") && (
<Button <Button
type="link" type="link"
disabled={record.status !== 300} disabled={record.status !== 300}
@ -96,6 +104,7 @@ function List(props) {
> >
查看驳回原因 查看驳回原因
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -131,4 +140,4 @@ const RejectReason = (props) => {
); );
}; };
export default Connect([NS_QUALIFICATION_APPLY], true)(List); export default Connect([NS_QUALIFICATION_APPLY], true)(Permission(List));

View File

@ -1,7 +1,7 @@
import ListPage from "~/pages/Container/BranchCompany/Qualification/Records/List"; import ListPage from "~/pages/Container/BranchCompany/Qualification/Records/List";
function List(props) { function List(props) {
return (<ListPage {...props} />); return (<ListPage ckbtn="zrzz-xgf-zrzzjl-btn-ck" cxtjbtn="zrzz-xgf-zrzzjl-btn-cxtj" {...props} />);
} }
export default List; export default List;

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Descriptions, Form, Modal, Space } from "antd"; import { Button, Descriptions, Form, Modal, Space } from "antd";
import { useState } from "react"; import { useState } from "react";
@ -62,6 +63,7 @@ function List(props) {
width: 150, width: 150,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmsh-gfd-ffbxmsh-btn-ck" || "xmsh-gfd-ffbxmsh-btn-sh") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -70,7 +72,8 @@ function List(props) {
> >
{record.projectStatus === 1 ? "审核" : "查看"} {record.projectStatus === 1 ? "审核" : "查看"}
</Button> </Button>
{record.projectStatus === 6 && ( )}
{(props.permission("xmsh-gfd-ffbxmsh-btn-ckbhyy") && record.projectStatus === 6) && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -108,11 +111,11 @@ const RejectReason = (props) => {
column={1} column={1}
styles={{ label: { width: 200 } }} styles={{ label: { width: 200 } }}
items={[ items={[
{ label: "驳回原因", children: props.rejectReason }, { label: "驳回原因", children: props.rejectReason.rejectReason },
]} ]}
/> />
</Modal> </Modal>
); );
}; };
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Descriptions, Form, Modal, Space } from "antd"; import { Button, Descriptions, Form, Modal, Space } from "antd";
import { useState } from "react"; import { useState } from "react";
@ -62,6 +63,7 @@ function List(props) {
width: 150, width: 150,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmsh-gfd-fbxmsh-btn-ck" || "xmsh-gfd-fbxmsh-btn-sh") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -70,7 +72,8 @@ function List(props) {
> >
{record.projectStatus === 1 ? "审核" : "查看"} {record.projectStatus === 1 ? "审核" : "查看"}
</Button> </Button>
{record.projectStatus === 6 && ( )}
{(props.permission("xmsh-gfd-fbxmsh-btn-ckbhyy") && record.projectStatus === 6) && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -108,11 +111,11 @@ const RejectReason = (props) => {
column={1} column={1}
styles={{ label: { width: 200 } }} styles={{ label: { width: 200 } }}
items={[ items={[
{ label: "驳回原因", children: props.rejectReason }, { label: "驳回原因", children: props.rejectReason.rejectReason },
]} ]}
/> />
</Modal> </Modal>
); );
}; };
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Descriptions, Form, Modal, Space } from "antd"; import { Button, Descriptions, Form, Modal, Space } from "antd";
import { useState } from "react"; import { useState } from "react";
@ -62,6 +63,7 @@ function List(props) {
width: 150, width: 150,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmsh-gfd-ejxmsh-btn-ck" || "xmsh-gfd-ejxmsh-btn-sh") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -70,7 +72,8 @@ function List(props) {
> >
{record.projectStatus === 1 ? "审核" : "查看"} {record.projectStatus === 1 ? "审核" : "查看"}
</Button> </Button>
{record.projectStatus === 6 && ( )}
{(props.permission("xmsh-gfd-ejxmsh-btn-ckbhyy") && record.projectStatus === 6) && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -108,11 +111,11 @@ const RejectReason = (props) => {
column={1} column={1}
styles={{ label: { width: 200 } }} styles={{ label: { width: 200 } }}
items={[ items={[
{ label: "驳回原因", children: props.rejectReason }, { label: "驳回原因", children: props.rejectReason.rejectReason },
]} ]}
/> />
</Modal> </Modal>
); );
}; };
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space } from "antd"; import { Button, Form, Space } from "antd";
import Search from "zy-react-library/components/Search"; import Search from "zy-react-library/components/Search";
@ -54,6 +55,7 @@ function List(props) {
width: 350, width: 350,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("xmsh-gfd-xmbaxx-btn-ck" || props.ckbtn) && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -62,6 +64,7 @@ function List(props) {
> >
查看 查看
</Button> </Button>
)}
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -70,6 +73,7 @@ function List(props) {
> >
项目人员变更 项目人员变更
</Button> </Button>
{props.permission("xmsh-gfd-xmbaxx-btn-rybgjl" || props.rybgjlbtn) && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -78,6 +82,7 @@ function List(props) {
> >
人员变更记录 人员变更记录
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -88,4 +93,4 @@ function List(props) {
); );
} }
export default Connect([NS_QUALIFICATION_STATISTICS], true)(List); export default Connect([NS_QUALIFICATION_STATISTICS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, message, Modal, Space } from "antd"; import { Button, Form, message, Modal, Space } from "antd";
import AddIcon from "zy-react-library/components/Icon/AddIcon"; import AddIcon from "zy-react-library/components/Icon/AddIcon";
@ -43,6 +44,7 @@ function List(props) {
<Table <Table
toolBarRender={() => ( toolBarRender={() => (
<Space> <Space>
{props.permission("zrzz-jgd-zrzzwh-btn-xz") && (
<Button <Button
type="primary" type="primary"
icon={<AddIcon />} icon={<AddIcon />}
@ -52,6 +54,7 @@ function List(props) {
> >
新增 新增
</Button> </Button>
)}
</Space> </Space>
)} )}
columns={[ columns={[
@ -67,6 +70,7 @@ function List(props) {
width: 200, width: 200,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("zrzz-jgd-zrzzwh-btn-xg") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -75,6 +79,8 @@ function List(props) {
> >
编辑 编辑
</Button> </Button>
)}
{props.permission("zrzz-jgd-zrzzwh-btn-qyjy") && (
<Button <Button
type="link" type="link"
danger danger
@ -82,6 +88,8 @@ function List(props) {
> >
{record.status === 0 ? "禁用" : "启用"} {record.status === 0 ? "禁用" : "启用"}
</Button> </Button>
)}
{props.permission("zrzz-jgd-zrzzwh-btn-bgjl") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -90,6 +98,7 @@ function List(props) {
> >
变更记录 变更记录
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -100,4 +109,4 @@ function List(props) {
); );
} }
export default Connect([NS_QUALIFICATION_MAINTENANCE], true)(List); export default Connect([NS_QUALIFICATION_MAINTENANCE], true)(Permission(List));

View File

@ -1,6 +1,7 @@
import { WarningOutlined } from "@ant-design/icons";
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space, Tooltip } from "antd"; import { Button, Form, Space, Tooltip } from "antd";
import { WarningOutlined } from "@ant-design/icons";
import Search from "zy-react-library/components/Search"; import Search from "zy-react-library/components/Search";
import DictionarySelect from "zy-react-library/components/Select/Dictionary"; import DictionarySelect from "zy-react-library/components/Select/Dictionary";
import Table from "zy-react-library/components/Table"; import Table from "zy-react-library/components/Table";
@ -34,11 +35,14 @@ function List(props) {
}, },
{ name: "stakeholderLevel", label: "资质级别", render: (<DictionarySelect dictValue="stakeholderLevel" />) }, { name: "stakeholderLevel", label: "资质级别", render: (<DictionarySelect dictValue="stakeholderLevel" />) },
{ {
name: "auditStatus", label: "审核状态", render: FORM_ITEM_RENDER_ENUM.SELECT, items: [ name: "auditStatus",
label: "审核状态",
render: FORM_ITEM_RENDER_ENUM.SELECT,
items: [
{ bianma: "200-200", name: "主管部门审核中" }, { bianma: "200-200", name: "主管部门审核中" },
{ bianma: "200-300", name: "主管部门已驳回" }, { bianma: "200-300", name: "主管部门已驳回" },
{ bianma: "400", name: "已完成" }, { bianma: "400", name: "已完成" },
] ],
}, },
]} ]}
form={form} form={form}
@ -53,36 +57,49 @@ function List(props) {
{ title: "时效属性", dataIndex: "isLongTerm", render: (_, record) => record.isLongTerm ? "长期" : "短期" }, { title: "时效属性", dataIndex: "isLongTerm", render: (_, record) => record.isLongTerm ? "长期" : "短期" },
{ title: "材料数", dataIndex: "materialNum" }, { title: "材料数", dataIndex: "materialNum" },
{ {
title: "资质状态", dataIndex: "qualificationsStatus", render: (_, record) => ( title: "资质状态",
dataIndex: "qualificationsStatus",
render: (_, record) => (
<div> <div>
{record.qualificationsStatus === 0 && "正常"} {record.qualificationsStatus === 0 && "正常"}
{record.qualificationsStatus === 1 && "待完善"} {record.qualificationsStatus === 1 && "待完善"}
{record.qualificationsStatus === 2 && ( {record.qualificationsStatus === 2 && (
<Tooltip <Tooltip
overlayStyle={{ width: 'auto', maxWidth: '700px', whiteSpace: 'normal', wordBreak: 'break-word' }} overlayStyle={{ width: "auto", maxWidth: "700px", whiteSpace: "normal", wordBreak: "break-word" }}
title={ title={
record.expireList ? ( record.expireList
<div style={{ width: '100%' }}> ? (
<div style={{ width: "100%" }}>
{record.expireList.map((item, index) => ( {record.expireList.map((item, index) => (
<div key={index}> <div key={index}>
{item.dataName} 已于 {item.qualificationsTermEnd} 过期 {item.dataName}
{" "}
已于
{item.qualificationsTermEnd}
{" "}
过期
</div> </div>
))} ))}
</div> </div>
) : "部分资料已过期" )
: "部分资料已过期"
} }
> >
<span style={{ display: 'inline-flex', alignItems: 'center' }}> <span style={{ display: "inline-flex", alignItems: "center" }}>
存在异常 <WarningOutlined style={{ color: '#faad14', marginLeft: 4 }} /> 存在异常
{" "}
<WarningOutlined style={{ color: "#faad14", marginLeft: 4 }} />
</span> </span>
</Tooltip> </Tooltip>
)} )}
{record.qualificationsStatus === 3 && "资质过期"} {record.qualificationsStatus === 3 && "资质过期"}
</div> </div>
) ),
}, },
{ {
title: "审核状态", dataIndex: "auditProcess", render: (_, record) => ( title: "审核状态",
dataIndex: "auditProcess",
render: (_, record) => (
<div> <div>
{record.auditProcess === "100" && "集团单位"} {record.auditProcess === "100" && "集团单位"}
{record.status === 100 && "待审核"} {record.status === 100 && "待审核"}
@ -90,15 +107,16 @@ function List(props) {
{record.status === 300 && "已驳回"} {record.status === 300 && "已驳回"}
{record.status === 400 && "已通过"} {record.status === 400 && "已通过"}
</div> </div>
) ),
}, },
{ title:"时效性", dataIndex:"qualificationsTermStart", render: (_, record) => record.qualificationsTermStart ? `${record.qualificationsTermStart}${record.qualificationsTermEnd}` : "-",}, { title: "时效性", dataIndex: "qualificationsTermStart", render: (_, record) => record.qualificationsTermStart ? `${record.qualificationsTermStart}${record.qualificationsTermEnd}` : "-" },
{ {
title: "操作", title: "操作",
fixed: "right", fixed: "right",
width: 130, width: 130,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("zrzz-jgd-zrzzjl-btn-ck") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -107,6 +125,7 @@ function List(props) {
> >
查看 查看
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -117,4 +136,4 @@ function List(props) {
); );
} }
export default Connect([NS_QUALIFICATION_RECORDS], true)(List); export default Connect([NS_QUALIFICATION_RECORDS], true)(Permission(List));

View File

@ -1,3 +1,4 @@
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { Button, Form, Space } from "antd"; import { Button, Form, Space } from "antd";
import Search from "zy-react-library/components/Search"; import Search from "zy-react-library/components/Search";
@ -41,33 +42,44 @@ function List(props) {
{ title: "资质级别", dataIndex: "stakeholderLevelName" }, { title: "资质级别", dataIndex: "stakeholderLevelName" },
{ title: "材料数", dataIndex: "materialNum" }, { title: "材料数", dataIndex: "materialNum" },
{ {
title: "资质状态", dataIndex: "qualificationsStatus", render: (_, record) => ( title: "资质状态",
dataIndex: "qualificationsStatus",
render: (_, record) => (
<div> <div>
{record.qualificationsStatus === 0 && "正常"} {record.qualificationsStatus === 0 && "正常"}
{record.qualificationsStatus === 1 && "待完善"} {record.qualificationsStatus === 1 && "待完善"}
{record.qualificationsStatus === 2 && ( {record.qualificationsStatus === 2 && (
<Tooltip <Tooltip
overlayStyle={{ width: 'auto', maxWidth: '700px', whiteSpace: 'normal', wordBreak: 'break-word' }} overlayStyle={{ width: "auto", maxWidth: "700px", whiteSpace: "normal", wordBreak: "break-word" }}
title={ title={
record.expireList ? ( record.expireList
<div style={{ width: '100%' }}> ? (
<div style={{ width: "100%" }}>
{record.expireList.map((item, index) => ( {record.expireList.map((item, index) => (
<div key={index}> <div key={index}>
{item.dataName} 已于 {item.qualificationsTermEnd} 过期 {item.dataName}
{" "}
已于
{item.qualificationsTermEnd}
{" "}
过期
</div> </div>
))} ))}
</div> </div>
) : "部分资料已过期" )
: "部分资料已过期"
} }
> >
<span style={{ display: 'inline-flex', alignItems: 'center' }}> <span style={{ display: "inline-flex", alignItems: "center" }}>
存在异常 <WarningOutlined style={{ color: '#faad14', marginLeft: 4 }} /> 存在异常
{" "}
<WarningOutlined style={{ color: "#faad14", marginLeft: 4 }} />
</span> </span>
</Tooltip> </Tooltip>
)} )}
{record.qualificationsStatus === 3 && "资质过期"} {record.qualificationsStatus === 3 && "资质过期"}
</div> </div>
) ),
}, },
{ {
title: "操作", title: "操作",
@ -75,6 +87,7 @@ function List(props) {
width: 100, width: 100,
render: (_, record) => ( render: (_, record) => (
<Space> <Space>
{props.permission("zrzz-jgd-xgfzrzzsh-btn-sh") && (
<Button <Button
type="link" type="link"
onClick={() => { onClick={() => {
@ -83,6 +96,7 @@ function List(props) {
> >
审核 审核
</Button> </Button>
)}
</Space> </Space>
), ),
}, },
@ -93,4 +107,4 @@ function List(props) {
); );
} }
export default Connect([NS_QUALIFICATION_REVIEW], true)(List); export default Connect([NS_QUALIFICATION_REVIEW], true)(Permission(List));