监管端添加按钮权限
parent
61f741884e
commit
248edd7a98
|
|
@ -1,10 +0,0 @@
|
|||
import { declareRequest } from "@cqsjjb/jjb-dva-runtime";
|
||||
|
||||
export const relatedPersonnelPersonnelList = declareRequest(
|
||||
"relatedPersonnelLoading",
|
||||
`Post > @/primeport/`,
|
||||
);
|
||||
export const relatedPersonnelApproval = declareRequest(
|
||||
"relatedPersonnelLoading",
|
||||
`Post > @/primeport/`,
|
||||
);
|
||||
|
|
@ -7,7 +7,6 @@ import { defineNamespace } from "@cqsjjb/jjb-dva-runtime";
|
|||
export const NS_GLOBAL = defineNamespace("global");
|
||||
export const NS_APPROVER_USER = defineNamespace("approverUser");
|
||||
export const NS_FIRST_LEVEL_DOOR_INFO = defineNamespace("firstLevelDoorInfo");
|
||||
export const NS_RELATED_PERSONNEL = defineNamespace("relatedPersonnel");
|
||||
export const NS_VEHICLE_AUDIT = defineNamespace("vehicleAudit");
|
||||
export const NS_TEMPORARY_PERSONNEL = defineNamespace("temporaryPersonnel");
|
||||
export const NS_TEMPORARY_VEHICLE = defineNamespace("temporaryVehicle");
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ function List(props) {
|
|||
type="link"
|
||||
onClick={() => {
|
||||
setViewModalVisible(true);
|
||||
setCurrentId(record.id);
|
||||
setCurrentId(record.vehicleApplyId);
|
||||
}}
|
||||
>
|
||||
查看
|
||||
|
|
@ -168,7 +168,7 @@ const ViewModalComponent = (props) => {
|
|||
const { loading: getFileLoading, getFile } = useGetFile();
|
||||
|
||||
const getData = async () => {
|
||||
const { data } = await props["vehicleApplyInfo"]({ id: props.id });
|
||||
const { data } = await props["vehicleApplyInfo"]({ vehicleApplyId: props.id });
|
||||
const drivingLicenseFile = await getFile({
|
||||
eqType: UPLOAD_FILE_TYPE_ENUM[601],
|
||||
eqForeignKey: data.drivingLicenseId,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button } from "antd";
|
||||
import { Button, Space } from "antd";
|
||||
import AddIcon from "zy-react-library/components/Icon/AddIcon";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
|
|
@ -35,6 +36,8 @@ function List(props) {
|
|||
/>
|
||||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
{props.permission("jgd-enclosed-personnel-apply-add") && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
|
|
@ -45,6 +48,8 @@ function List(props) {
|
|||
申请权限
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
{ title: "姓名", dataIndex: "applyPersonUserName" },
|
||||
{ title: "部门", dataIndex: "applyPersonDepartmentName" },
|
||||
|
|
@ -71,6 +76,8 @@ function List(props) {
|
|||
width: 80,
|
||||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-enclosed-personnel-apply-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -79,6 +86,8 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
]}
|
||||
|
|
@ -88,4 +97,4 @@ function List(props) {
|
|||
);
|
||||
}
|
||||
|
||||
export default Connect([NS_ENCLOSED_AREA_PERSONNEL_APPLY], true)(List);
|
||||
export default Connect([NS_ENCLOSED_AREA_PERSONNEL_APPLY], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Modal, Space } from "antd";
|
||||
import { useState } from "react";
|
||||
|
|
@ -65,6 +66,7 @@ function List(props) {
|
|||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-enclosed-personnel-records-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -73,7 +75,8 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
{record.auditFlag === 3 && (
|
||||
)}
|
||||
{(record.auditFlag === 3 && props.permission("jgd-enclosed-personnel-records-bh")) && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -129,4 +132,4 @@ const ViewRejectReasonModal = (props) => {
|
|||
);
|
||||
};
|
||||
|
||||
export default Connect([NS_ENCLOSED_AREA_PERSONNEL_APPLY], true)(List);
|
||||
export default Connect([NS_ENCLOSED_AREA_PERSONNEL_APPLY], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button } from "antd";
|
||||
import { Button, Space } from "antd";
|
||||
import { useState } from "react";
|
||||
import AddIcon from "zy-react-library/components/Icon/AddIcon";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
|
|
@ -46,6 +47,8 @@ function List(props) {
|
|||
/>
|
||||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
{props.permission("jgd-enclosed-vehicle-apply-add") && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
|
|
@ -56,6 +59,8 @@ function List(props) {
|
|||
申请权限
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
{ title: "车辆类型", dataIndex: "vehicleTypeName" },
|
||||
{ title: "申请人", dataIndex: "applyPersonUserName" },
|
||||
|
|
@ -81,6 +86,8 @@ function List(props) {
|
|||
width: 80,
|
||||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-enclosed-vehicle-apply-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -89,6 +96,8 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
]}
|
||||
|
|
@ -100,4 +109,4 @@ function List(props) {
|
|||
);
|
||||
}
|
||||
|
||||
export default Connect([NS_ENCLOSED_AREA_VEHICLE_APPLY], true)(List);
|
||||
export default Connect([NS_ENCLOSED_AREA_VEHICLE_APPLY], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Modal, Space } from "antd";
|
||||
import { useState } from "react";
|
||||
|
|
@ -72,6 +73,7 @@ function List(props) {
|
|||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-enclosed-vehicle-records-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -80,6 +82,8 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-enclosed-vehicle-records-bh") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -89,6 +93,7 @@ function List(props) {
|
|||
>
|
||||
驳回原因
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -136,4 +141,4 @@ const ViewRejectReasonModal = (props) => {
|
|||
);
|
||||
};
|
||||
|
||||
export default Connect([NS_ENCLOSED_AREA_VEHICLE_APPLY], true)(List);
|
||||
export default Connect([NS_ENCLOSED_AREA_VEHICLE_APPLY], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Space } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
|
|
@ -21,6 +22,7 @@ function List(props) {
|
|||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-feng-bi-qu-yu-guan-li-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -29,6 +31,7 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -39,4 +42,4 @@ function List(props) {
|
|||
);
|
||||
}
|
||||
|
||||
export default Connect([NS_ENCLOSED_AREA], true)(List);
|
||||
export default Connect([NS_ENCLOSED_AREA], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, message, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
|
|
@ -65,7 +66,7 @@ function List(props) {
|
|||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
{props.entrance !== "enterprise" && (
|
||||
{(props.entrance !== "enterprise" && props.permission("jgd-enclosed-door-add")) && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
|
|
@ -100,6 +101,7 @@ function List(props) {
|
|||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-enclosed-door-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -109,7 +111,8 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
{props.entrance !== "enterprise" && (
|
||||
)}
|
||||
{(props.entrance !== "enterprise" && props.permission("jgd-enclosed-door-edit")) && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -120,7 +123,7 @@ function List(props) {
|
|||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{props.entrance !== "enterprise" && (
|
||||
{(props.entrance !== "enterprise" && props.permission("jgd-enclosed-door-updstate")) && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -130,6 +133,7 @@ function List(props) {
|
|||
{record.mkmjStatus === 2 ? "停用" : "开启"}
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-enclosed-door-add-td") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -138,6 +142,8 @@ function List(props) {
|
|||
>
|
||||
{props.entrance !== "enterprise" ? "添加通道" : "查看通道"}
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-enclosed-door-add-vedio") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -146,6 +152,7 @@ function List(props) {
|
|||
>
|
||||
{props.entrance !== "enterprise" ? "添加摄像头" : "查看摄像头"}
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -393,4 +400,4 @@ const ViewModalComponent = (props) => {
|
|||
const AddModal = Connect([NS_FIRST_LEVEL_DOOR_INFO, NS_ENCLOSED_AREA], true)(AddModalComponent);
|
||||
const ViewModal = Connect([NS_FIRST_LEVEL_DOOR_INFO], true)(ViewModalComponent);
|
||||
|
||||
export default Connect([NS_FIRST_LEVEL_DOOR_INFO], true)(List);
|
||||
export default Connect([NS_FIRST_LEVEL_DOOR_INFO], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import useUrlState from "@ahooksjs/use-url-state";
|
||||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Space } from "antd";
|
||||
import { useEffect } from "react";
|
||||
|
|
@ -86,6 +87,7 @@ function List(props) {
|
|||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-enclosed-area-stats-add-carinout") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -94,6 +96,8 @@ function List(props) {
|
|||
>
|
||||
车辆进出记录
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-enclosed-area-stats-add-personinout") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -102,6 +106,7 @@ function List(props) {
|
|||
>
|
||||
人员进出记录
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -112,4 +117,4 @@ function List(props) {
|
|||
);
|
||||
}
|
||||
|
||||
export default Connect([NS_ENCLOSED_PERSONNEL_AND_VEHICLE_STATISTICS], true)(List);
|
||||
export default Connect([NS_ENCLOSED_PERSONNEL_AND_VEHICLE_STATISTICS], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, message, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
|
|
@ -47,6 +48,7 @@ function ApproverUser(props) {
|
|||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
{props.permission("jgd-first-level-approver-add") && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={<AddIcon />}
|
||||
|
|
@ -54,6 +56,7 @@ function ApproverUser(props) {
|
|||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -79,6 +82,7 @@ function ApproverUser(props) {
|
|||
width: 120,
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-first-level-approver-edit") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -88,6 +92,8 @@ function ApproverUser(props) {
|
|||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-first-level-approver-del") && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
|
|
@ -95,6 +101,7 @@ function ApproverUser(props) {
|
|||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -237,4 +244,4 @@ function AddModalComponent(props) {
|
|||
}
|
||||
|
||||
const AddModal = Connect([NS_APPROVER_USER], true)(AddModalComponent);
|
||||
export default Connect([NS_APPROVER_USER], true)(ApproverUser);
|
||||
export default Connect([NS_APPROVER_USER], true)(Permission(ApproverUser));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, message, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
|
|
@ -60,7 +61,15 @@ function List(props) {
|
|||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button type="primary" icon={<AddIcon />} onClick={() => setAddModalVisible(true)}>新增</Button>
|
||||
{props.permission("jgd-first-level-door-info-add") && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={<AddIcon />}
|
||||
onClick={() => setAddModalVisible(true)}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -84,6 +93,7 @@ function List(props) {
|
|||
width: 300,
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-first-level-door-info-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -93,6 +103,8 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-first-level-door-info-edit") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -102,6 +114,8 @@ function List(props) {
|
|||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-first-level-door-info-del") && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
|
|
@ -111,6 +125,8 @@ function List(props) {
|
|||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-first-level-door-info-add-channel") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -119,6 +135,8 @@ function List(props) {
|
|||
>
|
||||
添加通道
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-first-level-door-info-add-camera") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -127,6 +145,7 @@ function List(props) {
|
|||
>
|
||||
添加摄像头
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -312,4 +331,4 @@ function InfoModalComponent(props) {
|
|||
|
||||
const AddModal = Connect([NS_FIRST_LEVEL_DOOR_INFO], true)(AddModalComponent);
|
||||
const InfoModal = Connect([NS_FIRST_LEVEL_DOOR_INFO], true)(InfoModalComponent);
|
||||
export default Connect([NS_FIRST_LEVEL_DOOR_INFO], true)(List);
|
||||
export default Connect([NS_FIRST_LEVEL_DOOR_INFO], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Space } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
|
|
@ -35,6 +36,7 @@ function List(props) {
|
|||
width: 200,
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-io-branch-pv-personinfo") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -43,6 +45,8 @@ function List(props) {
|
|||
>
|
||||
人员及车辆详情
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-io-branch-pv-pubinfo") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -51,6 +55,7 @@ function List(props) {
|
|||
>
|
||||
单位车辆详情
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -61,4 +66,4 @@ function List(props) {
|
|||
);
|
||||
}
|
||||
|
||||
export default Connect([NS_BRANCH_PERSONNEL_AND_VEHICLES], true)(List);
|
||||
export default Connect([NS_BRANCH_PERSONNEL_AND_VEHICLES], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Divider, message, Modal, Space } from "antd";
|
||||
import { useState } from "react";
|
||||
|
|
@ -50,6 +51,7 @@ function List(props) {
|
|||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
{props.permission("jgd-io-inspect-vehicle-add") && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
|
|
@ -59,6 +61,7 @@ function List(props) {
|
|||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -72,6 +75,7 @@ function List(props) {
|
|||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-io-inspect-vehicle-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -81,6 +85,8 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-io-inspect-vehicle-edit") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -90,6 +96,8 @@ function List(props) {
|
|||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-io-inspect-vehicle-del") && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
|
|
@ -99,6 +107,8 @@ function List(props) {
|
|||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-io-inspect-vehicle-inout") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -107,6 +117,7 @@ function List(props) {
|
|||
>
|
||||
车辆进出记录
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -288,4 +299,4 @@ const ViewModalComponent = (props) => {
|
|||
const AddModal = Connect([NS_VEHICLE_APPLY], true)(AddModalComponent);
|
||||
const ViewModal = Connect([NS_VEHICLE_APPLY], true)(ViewModalComponent);
|
||||
|
||||
export default Connect([NS_VEHICLE_APPLY], true)(List);
|
||||
export default Connect([NS_VEHICLE_APPLY], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, message, Modal, Space } from "antd";
|
||||
import AddIcon from "zy-react-library/components/Icon/AddIcon";
|
||||
|
|
@ -37,6 +38,7 @@ function List(props) {
|
|||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
{props.permission("jgd-io-personal-vehicle-add") && (
|
||||
<Button
|
||||
icon={(<AddIcon />)}
|
||||
type="primary"
|
||||
|
|
@ -46,6 +48,7 @@ function List(props) {
|
|||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -75,6 +78,7 @@ function List(props) {
|
|||
width: 350,
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-io-personal-vehicle-inout") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -84,6 +88,8 @@ function List(props) {
|
|||
>
|
||||
车辆进出记录
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-io-personal-vehicle-auditrecord") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -92,6 +98,8 @@ function List(props) {
|
|||
>
|
||||
审批记录
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-io-personal-vehicle-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -100,7 +108,8 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
{record.auditFlag === 3 && (
|
||||
)}
|
||||
{(record.auditFlag === 3 && props.permission("jgd-io-personal-vehicle-reapply")) && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -110,6 +119,7 @@ function List(props) {
|
|||
重新申请
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-io-personal-vehicle-del") && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
|
|
@ -119,6 +129,7 @@ function List(props) {
|
|||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -129,4 +140,4 @@ function List(props) {
|
|||
);
|
||||
}
|
||||
|
||||
export default Connect([NS_VEHICLE_APPLY], true)(List);
|
||||
export default Connect([NS_VEHICLE_APPLY], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button } from "antd";
|
||||
import { Button, Space } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
|
|
@ -32,6 +33,8 @@ function List(props) {
|
|||
width: 150,
|
||||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-io-port-unit-pv-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -40,6 +43,8 @@ function List(props) {
|
|||
>
|
||||
人员及车辆详情
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
]}
|
||||
|
|
@ -49,4 +54,4 @@ function List(props) {
|
|||
);
|
||||
}
|
||||
|
||||
export default Connect([NS_BRANCH_PERSONNEL_AND_VEHICLES], true)(List);
|
||||
export default Connect([NS_BRANCH_PERSONNEL_AND_VEHICLES], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Space } from "antd";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
|
|
@ -33,6 +34,7 @@ function List(props) {
|
|||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-io-stk-pv-personlist") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -41,6 +43,8 @@ function List(props) {
|
|||
>
|
||||
人员列表
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-io-stk-pv-carlist") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -49,6 +53,7 @@ function List(props) {
|
|||
>
|
||||
车辆列表
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -59,4 +64,4 @@ function List(props) {
|
|||
);
|
||||
}
|
||||
|
||||
export default Connect([NS_STAKEHOLDER_PERSONNEL_AND_VEHICLES], true)(List);
|
||||
export default Connect([NS_STAKEHOLDER_PERSONNEL_AND_VEHICLES], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import useUrlState from "@ahooksjs/use-url-state";
|
||||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, message, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
|
|
@ -99,6 +100,7 @@ function List(props) {
|
|||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-io-stock-pv-edit") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -108,6 +110,8 @@ function List(props) {
|
|||
>
|
||||
授权范围
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-io-stock-pv-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -117,6 +121,8 @@ function List(props) {
|
|||
>
|
||||
人员进出记录
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-io-stock-pv-add") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -125,6 +131,7 @@ function List(props) {
|
|||
>
|
||||
车辆管理
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -227,4 +234,4 @@ const AuthorizationModalVisibleComponent = (props) => {
|
|||
|
||||
const AuthorizationModalVisible = Connect([NS_STOCK_PERSONNEL_AND_VEHICLES], true)(AuthorizationModalVisibleComponent);
|
||||
|
||||
export default Connect([NS_STOCK_PERSONNEL_AND_VEHICLES], true)(List);
|
||||
export default Connect([NS_STOCK_PERSONNEL_AND_VEHICLES], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import useUrlState from "@ahooksjs/use-url-state";
|
||||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Space } from "antd";
|
||||
import { useEffect } from "react";
|
||||
|
|
@ -90,7 +91,7 @@ function List(props) {
|
|||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
{props.type !== "view" && (
|
||||
{(props.type !== "view" && props.permission("jgd-io-stock-unit-vehicle-add")) && (
|
||||
<Button
|
||||
icon={<AddIcon />}
|
||||
type="primary"
|
||||
|
|
@ -145,7 +146,7 @@ function List(props) {
|
|||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.type !== "view" && (
|
||||
{(props.type !== "view" && props.permission("jgd-io-stock-unit-vehicle-auditrecord")) && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -155,6 +156,7 @@ function List(props) {
|
|||
审核记录
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-io-stock-unit-vehicle-inout") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -164,7 +166,8 @@ function List(props) {
|
|||
>
|
||||
车辆进出记录
|
||||
</Button>
|
||||
{(props.type !== "view" && record.auditFlag === 3) && (
|
||||
)}
|
||||
{(props.type !== "view" && record.auditFlag === 3 && props.permission("jgd-io-stock-unit-vehicle-edit")) && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -174,6 +177,7 @@ function List(props) {
|
|||
重新申请
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-io-stock-unit-vehicle-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -182,6 +186,7 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -194,4 +199,4 @@ function List(props) {
|
|||
);
|
||||
}
|
||||
|
||||
export default Connect([NS_VEHICLE_APPLY], true)(List);
|
||||
export default Connect([NS_VEHICLE_APPLY], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, message, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
|
|
@ -58,6 +59,8 @@ function List(props) {
|
|||
/>
|
||||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
{props.permission("jgd-io-blacklist-add") && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
|
|
@ -68,6 +71,8 @@ function List(props) {
|
|||
新增
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
{ title: "车辆所属单位", dataIndex: "vehicleCorpName" },
|
||||
{ title: "车辆所属部门", dataIndex: "vehicleDepartmentName" },
|
||||
|
|
@ -81,6 +86,7 @@ function List(props) {
|
|||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-io-blacklist-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -90,6 +96,8 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
)}
|
||||
{props.permission("jgd-io-blacklist-del") && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
|
|
@ -99,6 +107,7 @@ function List(props) {
|
|||
>
|
||||
移除黑名单
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -247,4 +256,4 @@ const ViewModalComponent = (props) => {
|
|||
const AddModal = Connect([NS_VEHICLE_BLACKLIST], true)(AddModalComponent);
|
||||
const ViewModal = Connect([NS_VEHICLE_BLACKLIST], true)(ViewModalComponent);
|
||||
|
||||
export default Connect([NS_VEHICLE_BLACKLIST], true)(List);
|
||||
export default Connect([NS_VEHICLE_BLACKLIST], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, message, Modal } from "antd";
|
||||
import { Button, message, Modal, Space } from "antd";
|
||||
import { useState } from "react";
|
||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||
import AddIcon from "zy-react-library/components/Icon/AddIcon";
|
||||
|
|
@ -43,6 +44,8 @@ function List(props) {
|
|||
/>
|
||||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
{props.permission("jgd-che-liang-wei-gui-guan-li-add") && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
|
|
@ -53,6 +56,8 @@ function List(props) {
|
|||
新增
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
{ title: "车辆所属单位", dataIndex: "vehicleCorpName" },
|
||||
{ title: "车辆所属部门", dataIndex: "vehicleDepartmentName" },
|
||||
|
|
@ -66,6 +71,8 @@ function List(props) {
|
|||
width: 120,
|
||||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("jgd-che-liang-wei-gui-guan-li-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -74,6 +81,8 @@ function List(props) {
|
|||
>
|
||||
查看违规记录
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
]}
|
||||
|
|
@ -180,4 +189,4 @@ const AddModalComponent = (props) => {
|
|||
|
||||
const AddModal = Connect([NS_VEHICLES_VIOLATION], true)(AddModalComponent);
|
||||
|
||||
export default Connect([NS_VEHICLES_VIOLATION], true)(List);
|
||||
export default Connect([NS_VEHICLES_VIOLATION], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Divider, message, Modal, Space, Spin } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
|
|
@ -16,6 +17,7 @@ import { NS_VEHICLE_AUDIT } from "~/enumerate/namespace";
|
|||
|
||||
function RelatedVehicles(props) {
|
||||
const [currentId, setCurrentId] = useState("");
|
||||
const [currentVehicleApplyId, setCurrentVehicleApplyId] = useState("");
|
||||
const [reviewModalVisible, setReviewModalVisible] = useState(false);
|
||||
const [infoModalVisible, setInfoModalVisible] = useState(false);
|
||||
const [viewRejectReasonModalVisible, setViewRejectReasonModalVisible] = useState(false);
|
||||
|
|
@ -63,27 +65,31 @@ function RelatedVehicles(props) {
|
|||
width: 150,
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{(!props.isRecords && record.currentUserCanAudit === 1) && (
|
||||
{(!props.isRecords && record.currentUserCanAudit === 1 && props.permission("jgd-entry-stk-vehicle-approval-audit")) && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
setReviewModalVisible(true);
|
||||
setCurrentId(record.id);
|
||||
setCurrentVehicleApplyId(record.vehicleApplyId);
|
||||
}}
|
||||
>
|
||||
审核
|
||||
</Button>
|
||||
)}
|
||||
{props.permission(props.viewBtn || "jgd-entry-stk-vehicle-approval-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
setInfoModalVisible(true);
|
||||
setCurrentId(record.id);
|
||||
setCurrentVehicleApplyId(record.vehicleApplyId);
|
||||
}}
|
||||
>
|
||||
查看
|
||||
</Button>
|
||||
{record.auditStatus === 3 && (
|
||||
)}
|
||||
{(record.auditStatus === 3 && props.permission(props.viewReasonsRefusalBtn || "jgd-entry-stk-vehicle-approval-show-reasons-refusal")) && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -104,9 +110,11 @@ function RelatedVehicles(props) {
|
|||
reviewModalVisible && (
|
||||
<ReviewModal
|
||||
id={currentId}
|
||||
vehicleApplyId={currentVehicleApplyId}
|
||||
onCancel={() => {
|
||||
setReviewModalVisible(false);
|
||||
setCurrentId("");
|
||||
setCurrentVehicleApplyId("");
|
||||
}}
|
||||
getData={getData}
|
||||
/>
|
||||
|
|
@ -116,9 +124,11 @@ function RelatedVehicles(props) {
|
|||
infoModalVisible && (
|
||||
<InfoModal
|
||||
id={currentId}
|
||||
vehicleApplyId={currentVehicleApplyId}
|
||||
onCancel={() => {
|
||||
setInfoModalVisible(false);
|
||||
setCurrentId("");
|
||||
setCurrentVehicleApplyId("");
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
|
@ -164,7 +174,7 @@ const ReviewModalComponent = (props) => {
|
|||
confirmLoading={props.vehicleAudit.vehicleAuditLoading}
|
||||
>
|
||||
<Spin spinning={props.vehicleAudit.vehicleAuditLoading}>
|
||||
<PublicInfoModal id={props.id} />
|
||||
<PublicInfoModal id={props.id} vehicleApplyId={props.vehicleApplyId} />
|
||||
<FormBuilder
|
||||
form={form}
|
||||
onFinish={onSubmit}
|
||||
|
|
@ -225,7 +235,7 @@ const InfoModalComponent = (props) => {
|
|||
const { getFile } = useGetFile();
|
||||
|
||||
const getData = async () => {
|
||||
const { data } = await props["vehicleAuditInfo"]({ id: props.id });
|
||||
const { data } = await props["vehicleAuditInfo"]({ vehicleApplyId: props.vehicleApplyId });
|
||||
const drivingLicenseFile = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM[601], eqForeignKey: data.drivingLicenseId });
|
||||
const attachmentFile = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM[602], eqForeignKey: data.attachmentId });
|
||||
const informSignFile = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM[606], eqForeignKey: data.informSignId });
|
||||
|
|
@ -280,11 +290,11 @@ function InfoModal(props) {
|
|||
<Button key="cancel" onClick={props.onCancel}>取消</Button>,
|
||||
]}
|
||||
>
|
||||
<PublicInfoModal id={props.id} />
|
||||
<PublicInfoModal id={props.id} vehicleApplyId={props.vehicleApplyId} />
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
|
||||
const ReviewModal = Connect([NS_VEHICLE_AUDIT], true)(ReviewModalComponent);
|
||||
const PublicInfoModal = Connect([NS_VEHICLE_AUDIT], true)(InfoModalComponent);
|
||||
export default Connect([NS_VEHICLE_AUDIT], true)(RelatedVehicles);
|
||||
export default Connect([NS_VEHICLE_AUDIT], true)(Permission(RelatedVehicles));
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import RelatedVehiclesPage from "../RelatedVehicles";
|
||||
|
||||
function RelatedVehiclesRecords(props) {
|
||||
return (<RelatedVehiclesPage isRecords={true} {...props} />);
|
||||
return (<RelatedVehiclesPage viewBtn="jgd-entry-stk-vehicle-records-show" viewReasonsRefusalBtn="jgd-entry-stk-vehicle-records-show-reasons-refusal" isRecords={true} {...props} />);
|
||||
}
|
||||
|
||||
export default RelatedVehiclesRecords;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Divider, message, Modal, Space, Spin } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
|
|
@ -67,7 +68,7 @@ function ShareVehicles(props) {
|
|||
width: 100,
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{(!props.isRecords && record.currentUserCanAudit === 1) && (
|
||||
{(!props.isRecords && record.currentUserCanAudit === 1 && props.permission("jgd-entry-share-vehicle-approval-audit")) && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -79,6 +80,7 @@ function ShareVehicles(props) {
|
|||
审核
|
||||
</Button>
|
||||
)}
|
||||
{props.permission(props.viewBtn || "jgd-entry-share-vehicle-approval-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -89,6 +91,7 @@ function ShareVehicles(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
@ -195,7 +198,7 @@ function InfoModalComponent(props) {
|
|||
const [recordsList, setRecordsList] = useState([]);
|
||||
|
||||
const getData = async () => {
|
||||
const { data } = await props["vehicleAuditInfo"]({ id: props.id });
|
||||
const { data } = await props["vehicleAuditInfo"]({ vehicleApplyId: props.vehicleApplyId });
|
||||
const changeAfter = data.changeAfter ? JSON.parse(data.changeAfter) : {};
|
||||
const changeBefore = data.changeBefore ? JSON.parse(data.changeBefore) : {};
|
||||
const changeAfterDrivingLicenseFile = await getFile({
|
||||
|
|
@ -410,4 +413,4 @@ function InfoModal(props) {
|
|||
|
||||
const ReviewModal = Connect([NS_VEHICLE_AUDIT], true)(ReviewModalComponent);
|
||||
const PublicInfoModal = Connect([NS_VEHICLE_AUDIT], true)(InfoModalComponent);
|
||||
export default Connect([NS_VEHICLE_AUDIT], true)(ShareVehicles);
|
||||
export default Connect([NS_VEHICLE_AUDIT], true)(Permission(ShareVehicles));
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import ShareVehiclesPage from "../ShareVehicles";
|
||||
|
||||
function ShareVehiclesRecords(props) {
|
||||
return (<ShareVehiclesPage isRecords={true} {...props} />);
|
||||
return (<ShareVehiclesPage viewBtn="jgd-entry-share-vehicle-records-show" isRecords={true} {...props} />);
|
||||
}
|
||||
|
||||
export default ShareVehiclesRecords;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Divider, message, Modal, Space } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
|
|
@ -11,7 +12,7 @@ import { UPLOAD_FILE_TYPE_ENUM } from "zy-react-library/enum/uploadFile/gwj";
|
|||
import useGetFile from "zy-react-library/hooks/useGetFile";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { getLabelName } from "zy-react-library/utils";
|
||||
import { NS_RELATED_PERSONNEL, NS_TEMPORARY_PERSONNEL } from "~/enumerate/namespace";
|
||||
import { NS_TEMPORARY_PERSONNEL } from "~/enumerate/namespace";
|
||||
|
||||
const STATUS_ENUM = [
|
||||
{ bianma: "1", name: "审核中" },
|
||||
|
|
@ -68,7 +69,7 @@ function RelatedPersonnel(props) {
|
|||
width: 150,
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{(!props.isRecords && record.currentUserCanAudit === 1) && (
|
||||
{(!props.isRecords && record.currentUserCanAudit === 1 && props.permission("jgd-entry-stk-personnel-approval-audit")) && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -79,6 +80,7 @@ function RelatedPersonnel(props) {
|
|||
审核
|
||||
</Button>
|
||||
)}
|
||||
{props.permission(props.viewBtn || "jgd-entry-stk-personnel-approval-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -88,7 +90,8 @@ function RelatedPersonnel(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
{record.auditFlag === 3 && (
|
||||
)}
|
||||
{(record.auditFlag === 3 && props.permission(props.viewReasonsRefusalBtn || "jgd-entry-stk-personnel-approval-show-reasons-refusal")) && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -203,13 +206,6 @@ const InfoModalComponent = (props) => {
|
|||
|
||||
const { getFile } = useGetFile();
|
||||
|
||||
const { tableProps } = useTable(props["relatedPersonnelPersonnelList"], {
|
||||
params: {
|
||||
id: props.id,
|
||||
},
|
||||
useStorageQueryCriteria: false,
|
||||
});
|
||||
|
||||
const getData = async () => {
|
||||
const { data } = await props["temporaryPersonnelInfo"]({ id: props.id });
|
||||
const informSignFile = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM[606], eqForeignKey: data.informSignId });
|
||||
|
|
@ -253,7 +249,8 @@ const InfoModalComponent = (props) => {
|
|||
{ title: "部门", dataIndex: "personDepartmentName" },
|
||||
// { title: "是否培训", dataIndex: "todo3" },
|
||||
]}
|
||||
{...tableProps}
|
||||
pagination={false}
|
||||
dataSource={info.personApplyList}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
@ -301,5 +298,5 @@ function InfoModal(props) {
|
|||
}
|
||||
|
||||
const ReviewModal = Connect([NS_TEMPORARY_PERSONNEL], true)(ReviewModalComponent);
|
||||
const PublicInfoModal = Connect([NS_RELATED_PERSONNEL, NS_TEMPORARY_PERSONNEL], true)(InfoModalComponent);
|
||||
export default Connect([NS_TEMPORARY_PERSONNEL], true)(RelatedPersonnel);
|
||||
const PublicInfoModal = Connect([NS_TEMPORARY_PERSONNEL], true)(InfoModalComponent);
|
||||
export default Connect([NS_TEMPORARY_PERSONNEL], true)(Permission(RelatedPersonnel));
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import RelatedPersonnelPage from "../RelatedPersonnel";
|
||||
|
||||
function RelatedPersonnelRecords(props) {
|
||||
return (<RelatedPersonnelPage isRecords={true} {...props} />);
|
||||
return (<RelatedPersonnelPage viewBtn="jgd-entry-stk-personnel-records-show" viewReasonsRefusalBtn="jgd-entry-stk-personnel-records-show-reasons-refusal" isRecords={true} {...props} />);
|
||||
}
|
||||
|
||||
export default RelatedPersonnelRecords;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { CameraOutlined } from "@ant-design/icons";
|
||||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Divider, message, Modal, QRCode, Space, Spin } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
|
|
@ -64,7 +65,7 @@ function List(props) {
|
|||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
{!props.isRecords && (
|
||||
{(!props.isRecords && props.permission("jgd-entry-temp-personnel-add")) && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
|
|
@ -106,6 +107,7 @@ function List(props) {
|
|||
width: 200,
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission(props.viewBtn || "jgd-entry-temp-personnel-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -114,6 +116,8 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
)}
|
||||
{props.permission(props.auditInfoBtn || "jgd-entry-temp-personnel-audit-info") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -123,7 +127,8 @@ function List(props) {
|
|||
>
|
||||
审批详情
|
||||
</Button>
|
||||
{(!props.isRecords && record.currentUserCanAudit === 1) && (
|
||||
)}
|
||||
{(!props.isRecords && record.currentUserCanAudit === 1 && props.permission("jgd-entry-temp-personnel-audit")) && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -374,4 +379,4 @@ const ApprovalDetailsModalComponent = (props) => {
|
|||
const ReviewModal = Connect([NS_TEMPORARY_PERSONNEL], true)(ReviewModalComponent);
|
||||
const ApprovalDetailsModal = Connect([NS_TEMPORARY_PERSONNEL], true)(ApprovalDetailsModalComponent);
|
||||
|
||||
export default Connect([NS_TEMPORARY_PERSONNEL, NS_FIRST_LEVEL_DOOR_INFO], true)(List);
|
||||
export default Connect([NS_TEMPORARY_PERSONNEL, NS_FIRST_LEVEL_DOOR_INFO], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import ListPage from "../../TemporaryPersonnel/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecords={true} {...props} />);
|
||||
return (<ListPage viewBtn="jgd-entry-temp-personnel-records-show" auditInfoBtn="jgd-entry-temp-personnel-records-audit-info" isRecords={true} {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
|
|||
|
|
@ -3,4 +3,5 @@ import ViewPage from "../../TemporaryPersonnel/View";
|
|||
function View(props) {
|
||||
return (<ViewPage {...props} />);
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { CameraOutlined } from "@ant-design/icons";
|
||||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { Button, Descriptions, Divider, message, Modal, QRCode, Space, Spin } from "antd";
|
||||
import { useEffect, useState } from "react";
|
||||
|
|
@ -60,7 +61,7 @@ function List(props) {
|
|||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
{!props.isRecords && (
|
||||
{(!props.isRecords && props.permission("jgd-entry-temp-vehicle-add")) && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
|
|
@ -105,6 +106,7 @@ function List(props) {
|
|||
width: 200,
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission(props.viewBtn || "jgd-entry-temp-vehicle-show") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -113,6 +115,8 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
)}
|
||||
{props.permission(props.auditInfoBtn || "jgd-entry-temp-vehicle-audit-info") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -122,7 +126,8 @@ function List(props) {
|
|||
>
|
||||
审批详情
|
||||
</Button>
|
||||
{(!props.isRecords && record.currentUserCanAudit === 1) && (
|
||||
)}
|
||||
{(!props.isRecords && record.currentUserCanAudit === 1 && props.permission("jgd-entry-temp-vehicle-audit")) && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -384,4 +389,4 @@ const ApprovalDetailsModalComponent = (props) => {
|
|||
const ReviewModal = Connect([NS_VEHICLE_AUDIT], true)(ReviewModalComponent);
|
||||
const ApprovalDetailsModal = Connect([NS_TEMPORARY_VEHICLE], true)(ApprovalDetailsModalComponent);
|
||||
|
||||
export default Connect([NS_VEHICLE_AUDIT, NS_FIRST_LEVEL_DOOR_INFO], true)(List);
|
||||
export default Connect([NS_VEHICLE_AUDIT, NS_FIRST_LEVEL_DOOR_INFO], true)(Permission(List));
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import ListPage from "../../TemporaryVehicle/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecords={true} {...props} />);
|
||||
return (<ListPage viewBtn="jgd-entry-temp-vehicle-records-show" auditInfoBtn="jgd-entry-temp-vehicle-records-audit-info" isRecords={true} {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
|
|||
|
|
@ -3,4 +3,5 @@ import ViewPage from "../../TemporaryVehicle/View";
|
|||
function View(props) {
|
||||
return (<ViewPage isRecords={true} {...props} />);
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
|
|||
Loading…
Reference in New Issue