修改页面样式
parent
f600f90b06
commit
c2b0e5c99f
|
|
@ -32,7 +32,7 @@
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-to-print": "^3.2.0",
|
"react-to-print": "^3.2.0",
|
||||||
"zy-react-library": "^1.0.175"
|
"zy-react-library": "^1.1.10"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^5.4.1",
|
"@antfu/eslint-config": "^5.4.1",
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
import HiddenInfo from "zy-react-library/components/HiddenInfo/gwj";
|
import HiddenInfo from "zy-react-library/components/HiddenInfo/gwj";
|
||||||
|
import Page from "zy-react-library/components/Page";
|
||||||
|
|
||||||
function HiddenView() {
|
function HiddenView() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<Page headerTitle="查看" contentPadding="0 20px 20px 20px">
|
||||||
<HiddenInfo />
|
<HiddenInfo />
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Divider, Form, message } from "antd";
|
import { Divider, Form, message } from "antd";
|
||||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||||
import HeaderBack from "zy-react-library/components/HeaderBack";
|
|
||||||
import HiddenInfo from "zy-react-library/components/HiddenInfo/gwj";
|
import HiddenInfo from "zy-react-library/components/HiddenInfo/gwj";
|
||||||
|
import Page from "zy-react-library/components/Page";
|
||||||
import Upload from "zy-react-library/components/Upload";
|
import Upload from "zy-react-library/components/Upload";
|
||||||
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
||||||
import { UPLOAD_FILE_TYPE_ENUM } from "zy-react-library/enum/uploadFile/gwj";
|
import { UPLOAD_FILE_TYPE_ENUM } from "zy-react-library/enum/uploadFile/gwj";
|
||||||
|
|
@ -29,9 +29,8 @@ function Acceptance(props) {
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Page headerTitle="隐患验收" contentPadding="0 20px 20px 20px" isShowFooter={false}>
|
||||||
<HeaderBack title="隐患验收" />
|
<HiddenInfo hiddenId={query.hiddenId} id={query.id} />
|
||||||
<HiddenInfo isShowHeaderBack={false} hiddenId={query.hiddenId} id={query.id} />
|
|
||||||
<Divider orientation="left">安全环保检查验收</Divider>
|
<Divider orientation="left">安全环保检查验收</Divider>
|
||||||
<FormBuilder
|
<FormBuilder
|
||||||
form={form}
|
form={form}
|
||||||
|
|
@ -53,7 +52,7 @@ function Acceptance(props) {
|
||||||
{ name: "files", label: "验收图片", required: false, render: (<Upload />) },
|
{ name: "files", label: "验收图片", required: false, render: (<Upload />) },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Space } from "antd";
|
import { Button, Space } from "antd";
|
||||||
import HeaderBack from "zy-react-library/components/HeaderBack";
|
import Page from "zy-react-library/components/Page";
|
||||||
import Table from "zy-react-library/components/Table";
|
import Table from "zy-react-library/components/Table";
|
||||||
import { HIDDEN_STATE_ENUM } from "zy-react-library/enum/hidden/gwj";
|
import { HIDDEN_STATE_ENUM } from "zy-react-library/enum/hidden/gwj";
|
||||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||||
|
|
@ -15,9 +15,7 @@ function HiddenList(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Page headerTitle="隐患验收">
|
||||||
<HeaderBack title="隐患验收" />
|
|
||||||
<div style={{ padding: 20 }}>
|
|
||||||
<Table
|
<Table
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "隐患描述", dataIndex: "hiddenDesc" },
|
{ title: "隐患描述", dataIndex: "hiddenDesc" },
|
||||||
|
|
@ -49,8 +47,7 @@ function HiddenList(props) {
|
||||||
]}
|
]}
|
||||||
{...tableProps}
|
{...tableProps}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Page>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
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 Page from "zy-react-library/components/Page";
|
||||||
import Search from "zy-react-library/components/Search";
|
import Search from "zy-react-library/components/Search";
|
||||||
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
||||||
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
||||||
|
|
@ -22,7 +23,7 @@ function List(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: 20 }}>
|
<Page isShowAllAction={false}>
|
||||||
<Search
|
<Search
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 8 }}
|
||||||
options={[
|
options={[
|
||||||
|
|
@ -83,7 +84,7 @@ function List(props) {
|
||||||
]}
|
]}
|
||||||
{...tableProps}
|
{...tableProps}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Divider, Form, message } from "antd";
|
import { Divider, Form, message } from "antd";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||||
import HeaderBack from "zy-react-library/components/HeaderBack";
|
|
||||||
import HiddenInfo from "zy-react-library/components/HiddenInfo/gwj";
|
import HiddenInfo from "zy-react-library/components/HiddenInfo/gwj";
|
||||||
|
import Page from "zy-react-library/components/Page";
|
||||||
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
||||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||||
import { NS_INSPECTION } from "~/enumerate/namespace";
|
import { NS_INSPECTION } from "~/enumerate/namespace";
|
||||||
|
|
@ -29,9 +29,8 @@ function Assign(props) {
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Page headerTitle="隐患指派" contentPadding="0 20px 20px 20px" isShowFooter={false}>
|
||||||
<HeaderBack title="隐患指派" />
|
<HiddenInfo hiddenId={query.hiddenUUId} id={query.hiddenId} />
|
||||||
<HiddenInfo isShowHeaderBack={false} hiddenId={query.hiddenUUId} id={query.hiddenId} />
|
|
||||||
<Divider orientation="left">隐患确认</Divider>
|
<Divider orientation="left">隐患确认</Divider>
|
||||||
<FormBuilder
|
<FormBuilder
|
||||||
form={form}
|
form={form}
|
||||||
|
|
@ -60,7 +59,7 @@ function Assign(props) {
|
||||||
{ name: "deptId", label: "隐患确认人部门id", onlyForLabel: true },
|
{ name: "deptId", label: "隐患确认人部门id", onlyForLabel: true },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Space } from "antd";
|
import { Button, Space } from "antd";
|
||||||
import HeaderBack from "zy-react-library/components/HeaderBack";
|
import Page from "zy-react-library/components/Page";
|
||||||
import Table from "zy-react-library/components/Table";
|
import Table from "zy-react-library/components/Table";
|
||||||
import { HIDDEN_STATE_ENUM } from "zy-react-library/enum/hidden/gwj";
|
import { HIDDEN_STATE_ENUM } from "zy-react-library/enum/hidden/gwj";
|
||||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||||
|
|
@ -15,9 +15,7 @@ function HiddenList(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Page headerTitle="隐患指派">
|
||||||
<HeaderBack title="隐患指派" />
|
|
||||||
<div style={{ padding: 20 }}>
|
|
||||||
<Table
|
<Table
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "隐患描述", dataIndex: "hiddenDesc" },
|
{ title: "隐患描述", dataIndex: "hiddenDesc" },
|
||||||
|
|
@ -49,8 +47,7 @@ function HiddenList(props) {
|
||||||
]}
|
]}
|
||||||
{...tableProps}
|
{...tableProps}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Page>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
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 Page from "zy-react-library/components/Page";
|
||||||
import Search from "zy-react-library/components/Search";
|
import Search from "zy-react-library/components/Search";
|
||||||
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
||||||
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
||||||
|
|
@ -22,7 +23,7 @@ function List(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: 20 }}>
|
<Page isShowAllAction={false}>
|
||||||
<Search
|
<Search
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 8 }}
|
||||||
options={[
|
options={[
|
||||||
|
|
@ -83,7 +84,7 @@ function List(props) {
|
||||||
]}
|
]}
|
||||||
{...tableProps}
|
{...tableProps}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
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, Image, message, Modal, Space } from "antd";
|
import { Button, Form, Image, message, Modal, Space, Spin } from "antd";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||||
|
import Page from "zy-react-library/components/Page";
|
||||||
import Search from "zy-react-library/components/Search";
|
import Search from "zy-react-library/components/Search";
|
||||||
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
||||||
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
||||||
|
|
@ -33,7 +34,7 @@ function List(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: 20 }}>
|
<Page isShowAllAction={false}>
|
||||||
<Search
|
<Search
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 8 }}
|
||||||
options={[
|
options={[
|
||||||
|
|
@ -124,7 +125,7 @@ function List(props) {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -152,17 +153,18 @@ function DefenseHandlingModalComponent(props) {
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
title="申辩处理"
|
title="申辩处理"
|
||||||
width={800}
|
width={600}
|
||||||
open
|
open
|
||||||
maskClosable={false}
|
maskClosable={false}
|
||||||
onCancel={props.onCancel}
|
onCancel={props.onCancel}
|
||||||
onOk={form.submit}
|
onOk={form.submit}
|
||||||
loading={uploadFileLoading || props.inspection.defenseLoading}
|
confirmLoading={uploadFileLoading || props.inspection.defenseLoading}
|
||||||
>
|
>
|
||||||
<FormBuilder
|
<FormBuilder
|
||||||
|
loading={uploadFileLoading || props.inspection.defenseLoading}
|
||||||
form={form}
|
form={form}
|
||||||
span={24}
|
span={24}
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 10 }}
|
||||||
showActionButtons={false}
|
showActionButtons={false}
|
||||||
onFinish={onSubmit}
|
onFinish={onSubmit}
|
||||||
options={[
|
options={[
|
||||||
|
|
@ -210,7 +212,7 @@ function DefenseHandlingModalComponent(props) {
|
||||||
function DefenseRecordModalComponent(props) {
|
function DefenseRecordModalComponent(props) {
|
||||||
const [list, setList] = useState([]);
|
const [list, setList] = useState([]);
|
||||||
const { loading: downloadFileLoading, downloadFile } = useDownloadFile();
|
const { loading: downloadFileLoading, downloadFile } = useDownloadFile();
|
||||||
const { loading: downloadGetFileLoading, getFile } = useGetFile();
|
const { loading: getFileLoading, getFile } = useGetFile();
|
||||||
|
|
||||||
const getFiles = async (list) => {
|
const getFiles = async (list) => {
|
||||||
for (let i = 0; i < list.length; i++) {
|
for (let i = 0; i < list.length; i++) {
|
||||||
|
|
@ -242,8 +244,8 @@ function DefenseRecordModalComponent(props) {
|
||||||
footer={[
|
footer={[
|
||||||
<Button key="cancel" onClick={props.onCancel}>取消</Button>,
|
<Button key="cancel" onClick={props.onCancel}>取消</Button>,
|
||||||
]}
|
]}
|
||||||
loading={downloadFileLoading || downloadGetFileLoading}
|
|
||||||
>
|
>
|
||||||
|
<Spin spinning={downloadFileLoading || getFileLoading}>
|
||||||
<Table
|
<Table
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "申辩时间", dataIndex: "createTime", width: 200 },
|
{ title: "申辩时间", dataIndex: "createTime", width: 200 },
|
||||||
|
|
@ -276,6 +278,7 @@ function DefenseRecordModalComponent(props) {
|
||||||
{...tableProps}
|
{...tableProps}
|
||||||
dataSource={list}
|
dataSource={list}
|
||||||
/>
|
/>
|
||||||
|
</Spin>
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Form, message, Modal, Space } from "antd";
|
import { Button, Form, message, Modal, Space } from "antd";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||||
|
import Page from "zy-react-library/components/Page";
|
||||||
import Search from "zy-react-library/components/Search";
|
import Search from "zy-react-library/components/Search";
|
||||||
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
||||||
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
||||||
|
|
@ -30,7 +31,7 @@ function List(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: 20 }}>
|
<Page isShowAllAction={false}>
|
||||||
<Search
|
<Search
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 8 }}
|
||||||
options={[
|
options={[
|
||||||
|
|
@ -102,7 +103,7 @@ function List(props) {
|
||||||
getData={getData}
|
getData={getData}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -131,20 +132,21 @@ function ConfirmModalComponent(props) {
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
title="检查确认"
|
title="检查确认"
|
||||||
width={800}
|
width={600}
|
||||||
open
|
open
|
||||||
maskClosable={false}
|
maskClosable={false}
|
||||||
onCancel={props.onCancel}
|
onCancel={props.onCancel}
|
||||||
onOk={form.submit}
|
onOk={form.submit}
|
||||||
loading={uploadFileLoading || props.inspection.inspectedLoading}
|
confirmLoading={uploadFileLoading || props.inspection.inspectedLoading}
|
||||||
>
|
>
|
||||||
<FormBuilder
|
<FormBuilder
|
||||||
|
loading={uploadFileLoading || props.inspection.inspectedLoading}
|
||||||
form={form}
|
form={form}
|
||||||
span={24}
|
span={24}
|
||||||
values={{
|
values={{
|
||||||
reviewStatus: "1",
|
reviewStatus: "1",
|
||||||
}}
|
}}
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 10 }}
|
||||||
showActionButtons={false}
|
showActionButtons={false}
|
||||||
onFinish={onSubmit}
|
onFinish={onSubmit}
|
||||||
options={[
|
options={[
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ function HiddenAddModal(props) {
|
||||||
hiddenPartType,
|
hiddenPartType,
|
||||||
hiddenFindTime: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
hiddenFindTime: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
||||||
rectificationType: 2,
|
rectificationType: 2,
|
||||||
|
isRelated: 2,
|
||||||
});
|
});
|
||||||
props.onCancel();
|
props.onCancel();
|
||||||
};
|
};
|
||||||
|
|
@ -104,12 +105,6 @@ function HiddenAddModal(props) {
|
||||||
{ name: "hiddenTypeName", label: "隐患类型名称", onlyForLabel: true },
|
{ name: "hiddenTypeName", label: "隐患类型名称", onlyForLabel: true },
|
||||||
{ name: "hiddenType2", label: "隐患类型名称", onlyForLabel: true },
|
{ name: "hiddenType2", label: "隐患类型名称", onlyForLabel: true },
|
||||||
{ name: "hiddenType2Name", label: "隐患类型名称", onlyForLabel: true },
|
{ name: "hiddenType2Name", label: "隐患类型名称", onlyForLabel: true },
|
||||||
{
|
|
||||||
name: "isRelated",
|
|
||||||
label: "是否相关方",
|
|
||||||
render: FORM_ITEM_RENDER_ENUM.RADIO,
|
|
||||||
items: [{ bianma: 1, name: "是" }, { bianma: 2, name: "否" }],
|
|
||||||
},
|
|
||||||
{ name: "map", customizeRender: true, render: <Map required={false} />, span: 24 },
|
{ name: "map", customizeRender: true, render: <Map required={false} />, span: 24 },
|
||||||
{ name: "positionDesc", label: "隐患位置描述", required: false, span: 24 },
|
{ name: "positionDesc", label: "隐患位置描述", required: false, span: 24 },
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { Button, Form, message, Modal, Space } from "antd";
|
||||||
import { cloneDeep } from "lodash-es";
|
import { cloneDeep } from "lodash-es";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||||
import HeaderBack from "zy-react-library/components/HeaderBack";
|
import Page from "zy-react-library/components/Page";
|
||||||
import PersonnelSelect from "zy-react-library/components/Select/Personnel/Gwj";
|
import PersonnelSelect from "zy-react-library/components/Select/Personnel/Gwj";
|
||||||
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
||||||
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
||||||
|
|
@ -198,7 +198,7 @@ function Add(props) {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// 更新现有隐患
|
// 保存隐患
|
||||||
const handleHiddenSubmit = async (traceId, isDraft, index) => {
|
const handleHiddenSubmit = async (traceId, isDraft, index) => {
|
||||||
await deleteFile({
|
await deleteFile({
|
||||||
single: false,
|
single: false,
|
||||||
|
|
@ -224,7 +224,7 @@ function Add(props) {
|
||||||
files: hiddenList[index].hiddenVideoFiles,
|
files: hiddenList[index].hiddenVideoFiles,
|
||||||
params: {
|
params: {
|
||||||
type: UPLOAD_FILE_TYPE_ENUM["102"],
|
type: UPLOAD_FILE_TYPE_ENUM["102"],
|
||||||
foreignKey: hiddenList[index].hiddenId,
|
foreignKey: id,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -237,9 +237,9 @@ function Add(props) {
|
||||||
eqForeignKey: id,
|
eqForeignKey: id,
|
||||||
});
|
});
|
||||||
|
|
||||||
await props["hiddenEdit"]({
|
await props[!hiddenList[index].hiddenId ? "hiddenAdd" : "hiddenEdit"]({
|
||||||
...hiddenList[index],
|
...hiddenList[index],
|
||||||
source: 5,
|
source: props.source || "5",
|
||||||
hiddenId: id,
|
hiddenId: id,
|
||||||
state: isDraft === 0 ? 102 : 98,
|
state: isDraft === 0 ? 102 : 98,
|
||||||
foreignKey: traceId,
|
foreignKey: traceId,
|
||||||
|
|
@ -307,14 +307,12 @@ function Add(props) {
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// if (isIdle)
|
if (isIdle)
|
||||||
// onSubmit(form.getFieldsValue(), 1);
|
onSubmit(form.getFieldsValue(), 1);
|
||||||
}, [isIdle]);
|
}, [isIdle]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Page headerTitle={query.id ? "编辑" : "新增"} isShowFooter={false}>
|
||||||
<HeaderBack title={query.id ? "编辑" : "新增"} />
|
|
||||||
<div style={{ paddingBottom: 10 }}>
|
|
||||||
<FormBuilder
|
<FormBuilder
|
||||||
form={form}
|
form={form}
|
||||||
values={{
|
values={{
|
||||||
|
|
@ -583,7 +581,6 @@ function Add(props) {
|
||||||
{ name: "deleteSignature", label: "删除的签字图片", onlyForLabel: true },
|
{ name: "deleteSignature", label: "删除的签字图片", onlyForLabel: true },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
{
|
{
|
||||||
hiddenAddModalOpen && (
|
hiddenAddModalOpen && (
|
||||||
<HiddenAddModal
|
<HiddenAddModal
|
||||||
|
|
@ -611,7 +608,7 @@ function Add(props) {
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Form, Space } from "antd";
|
import { Button, Form, Space } from "antd";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import AddIcon from "zy-react-library/components/Icon/AddIcon";
|
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";
|
import Search from "zy-react-library/components/Search";
|
||||||
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
||||||
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
||||||
|
|
@ -34,7 +35,7 @@ function List(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: 20 }}>
|
<Page isShowAllAction={!!props.headerTitle} headerTitle={props.headerTitle}>
|
||||||
<Search
|
<Search
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 8 }}
|
||||||
options={[
|
options={[
|
||||||
|
|
@ -140,7 +141,7 @@ function List(props) {
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Form, message, Modal, Space } from "antd";
|
import { Button, Form, message, Modal, Space } from "antd";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||||
|
import Page from "zy-react-library/components/Page";
|
||||||
import Search from "zy-react-library/components/Search";
|
import Search from "zy-react-library/components/Search";
|
||||||
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
||||||
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
||||||
|
|
@ -29,7 +30,7 @@ function List(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: 20 }}>
|
<Page isShowAllAction={false}>
|
||||||
<Search
|
<Search
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 8 }}
|
||||||
options={[
|
options={[
|
||||||
|
|
@ -101,7 +102,7 @@ function List(props) {
|
||||||
getData={getData}
|
getData={getData}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -125,20 +126,21 @@ function VerifyModalComponent(props) {
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
title="检查核实"
|
title="检查核实"
|
||||||
width={1000}
|
width={600}
|
||||||
open
|
open
|
||||||
maskClosable={false}
|
maskClosable={false}
|
||||||
onCancel={props.onCancel}
|
onCancel={props.onCancel}
|
||||||
onOk={form.submit}
|
onOk={form.submit}
|
||||||
loading={uploadFileLoading || props.inspection.inspectorLoading}
|
confirmLoading={uploadFileLoading || props.inspection.inspectorLoading}
|
||||||
>
|
>
|
||||||
<FormBuilder
|
<FormBuilder
|
||||||
|
loading={uploadFileLoading || props.inspection.inspectorLoading}
|
||||||
form={form}
|
form={form}
|
||||||
span={24}
|
span={24}
|
||||||
values={{
|
values={{
|
||||||
status: "1",
|
status: "1",
|
||||||
}}
|
}}
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 10 }}
|
||||||
showActionButtons={false}
|
showActionButtons={false}
|
||||||
onFinish={onSubmit}
|
onFinish={onSubmit}
|
||||||
options={[
|
options={[
|
||||||
|
|
|
||||||
|
|
@ -4,15 +4,16 @@ import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Form, message, Modal, Space, Spin } from "antd";
|
import { Button, Form, message, Modal, Space, Spin } from "antd";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import ExportIcon from "zy-react-library/components/Icon/ExportIcon";
|
import ExportIcon from "zy-react-library/components/Icon/ExportIcon";
|
||||||
|
import Page from "zy-react-library/components/Page";
|
||||||
import Search from "zy-react-library/components/Search";
|
import Search from "zy-react-library/components/Search";
|
||||||
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
||||||
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
||||||
import Table from "zy-react-library/components/Table";
|
import Table from "zy-react-library/components/Table";
|
||||||
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
||||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
|
||||||
import useUrlQueryCriteria from "zy-react-library/hooks/useUrlQueryCriteria";
|
|
||||||
import useDownloadBlob from "zy-react-library/hooks/useDownloadBlob";
|
import useDownloadBlob from "zy-react-library/hooks/useDownloadBlob";
|
||||||
|
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||||
import useTable from "zy-react-library/hooks/useTable";
|
import useTable from "zy-react-library/hooks/useTable";
|
||||||
|
import useUrlQueryCriteria from "zy-react-library/hooks/useUrlQueryCriteria";
|
||||||
import { getLabelName } from "zy-react-library/utils";
|
import { getLabelName } from "zy-react-library/utils";
|
||||||
import InspectionFlowModal from "~/components/InspectionFlowModal";
|
import InspectionFlowModal from "~/components/InspectionFlowModal";
|
||||||
import { INSPECTION_QUESTION_ENUM, INSPECTION_STATE_ENUM, PLAN_ENUM } from "~/enumerate/constant";
|
import { INSPECTION_QUESTION_ENUM, INSPECTION_STATE_ENUM, PLAN_ENUM } from "~/enumerate/constant";
|
||||||
|
|
@ -80,7 +81,7 @@ function List(props) {
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: 20 }}>
|
<Page isShowAllAction={!!query.headerTitle} headerTitle={query.headerTitle}>
|
||||||
<Search
|
<Search
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 8 }}
|
||||||
values={{
|
values={{
|
||||||
|
|
@ -151,7 +152,7 @@ function List(props) {
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
const exportParams = getUrlCriteriaQuery("searchFormKeys", "searchFormValues");
|
const exportParams = getUrlCriteriaQuery("searchFormKeys", "searchFormValues");
|
||||||
|
|
||||||
await downloadBlob("/accident/accident/export", { params: { ...exportParams, eqType: props.type } })
|
await downloadBlob("/accident/accident/export", { params: { ...exportParams, eqType: props.type } });
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
导出
|
导出
|
||||||
|
|
@ -228,7 +229,7 @@ function List(props) {
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,13 @@ import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Descriptions, Divider, Modal, Space, Spin } from "antd";
|
import { Button, Descriptions, Divider, Modal, Space, Spin } from "antd";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import { useReactToPrint } from "react-to-print";
|
import { useReactToPrint } from "react-to-print";
|
||||||
import HeaderBack from "zy-react-library/components/HeaderBack";
|
|
||||||
import HiddenInfo from "zy-react-library/components/HiddenInfo/gwj";
|
import HiddenInfo from "zy-react-library/components/HiddenInfo/gwj";
|
||||||
|
import Page from "zy-react-library/components/Page";
|
||||||
import PreviewImg from "zy-react-library/components/PreviewImg";
|
import PreviewImg from "zy-react-library/components/PreviewImg";
|
||||||
import Table from "zy-react-library/components/Table";
|
import Table from "zy-react-library/components/Table";
|
||||||
import { UPLOAD_FILE_TYPE_ENUM } from "zy-react-library/enum/uploadFile/gwj";
|
import { UPLOAD_FILE_TYPE_ENUM } from "zy-react-library/enum/uploadFile/gwj";
|
||||||
import useGetFile from "zy-react-library/hooks/useGetFile";
|
import useGetFile from "zy-react-library/hooks/useGetFile";
|
||||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||||
import useGetUserInfo from "zy-react-library/hooks/useGetUserInfo";
|
|
||||||
import { getFileUrl, getLabelName } from "zy-react-library/utils";
|
import { getFileUrl, getLabelName } from "zy-react-library/utils";
|
||||||
import HiddenFlowModal from "~/components/HiddenFlowModal";
|
import HiddenFlowModal from "~/components/HiddenFlowModal";
|
||||||
import { PLAN_ENUM } from "~/enumerate/constant";
|
import { PLAN_ENUM } from "~/enumerate/constant";
|
||||||
|
|
@ -19,7 +18,6 @@ import "./index.less";
|
||||||
function InspectionView(props) {
|
function InspectionView(props) {
|
||||||
const query = useGetUrlQuery();
|
const query = useGetUrlQuery();
|
||||||
const { loading: getFileLoading, getFile } = useGetFile();
|
const { loading: getFileLoading, getFile } = useGetFile();
|
||||||
const { getUserInfo } = useGetUserInfo();
|
|
||||||
|
|
||||||
const [info, setInfo] = useState({
|
const [info, setInfo] = useState({
|
||||||
inspectedPartyConfirmation: {},
|
inspectedPartyConfirmation: {},
|
||||||
|
|
@ -53,7 +51,6 @@ function InspectionView(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
const userInfo = await getUserInfo();
|
|
||||||
const { data } = await props["inspectionView"]({ inspectionId: query.id });
|
const { data } = await props["inspectionView"]({ inspectionId: query.id });
|
||||||
for (let i = 0; i < data.content.length; i++) {
|
for (let i = 0; i < data.content.length; i++) {
|
||||||
const files = await getFile({
|
const files = await getFile({
|
||||||
|
|
@ -62,12 +59,12 @@ function InspectionView(props) {
|
||||||
});
|
});
|
||||||
data.content[i].files = files;
|
data.content[i].files = files;
|
||||||
}
|
}
|
||||||
data.inspector.forEach(item => {
|
data.inspector.forEach((item) => {
|
||||||
setCurrentInspectorDepartmentName(prev => [...prev, item.departmentName || ""])
|
setCurrentInspectorDepartmentName(prev => [...prev, item.departmentName || ""]);
|
||||||
})
|
});
|
||||||
data.inspectorVerificationList.forEach(item => {
|
data.inspectorVerificationList.forEach((item) => {
|
||||||
setCurrentInspectorUserName(prev => [...prev, item.userName || ""])
|
setCurrentInspectorUserName(prev => [...prev, item.userName || ""]);
|
||||||
})
|
});
|
||||||
setInfo(data);
|
setInfo(data);
|
||||||
const { data: hiddenList } = await props["hiddenList"]({ foreignKey: query.inspectionId, pageIndex: 1, pageSize: 999 });
|
const { data: hiddenList } = await props["hiddenList"]({ foreignKey: query.inspectionId, pageIndex: 1, pageSize: 999 });
|
||||||
setHiddenList(hiddenList);
|
setHiddenList(hiddenList);
|
||||||
|
|
@ -77,10 +74,9 @@ function InspectionView(props) {
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Page headerTitle="查看">
|
||||||
<HeaderBack title="查看" />
|
|
||||||
<Spin spinning={props.inspection.inspectionLoading || getFileLoading}>
|
<Spin spinning={props.inspection.inspectionLoading || getFileLoading}>
|
||||||
<div style={{ padding: 20, paddingBottom: 0 }} ref={contentRef}>
|
<div ref={contentRef}>
|
||||||
<Divider orientation="left">
|
<Divider orientation="left">
|
||||||
{info.subject}
|
{info.subject}
|
||||||
现场安全检查记录
|
现场安全检查记录
|
||||||
|
|
@ -127,7 +123,8 @@ function InspectionView(props) {
|
||||||
{ title: "隐患描述", dataIndex: "hiddenDesc" },
|
{ title: "隐患描述", dataIndex: "hiddenDesc" },
|
||||||
{ title: "隐患部位", dataIndex: "hiddenPartName" },
|
{ title: "隐患部位", dataIndex: "hiddenPartName" },
|
||||||
{
|
{
|
||||||
title: "操作", render: (_, record) => (
|
title: "操作",
|
||||||
|
render: (_, record) => (
|
||||||
<Space>
|
<Space>
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
|
|
@ -149,7 +146,7 @@ function InspectionView(props) {
|
||||||
流程图
|
流程图
|
||||||
</Button>
|
</Button>
|
||||||
</Space>
|
</Space>
|
||||||
)
|
),
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
@ -245,7 +242,7 @@ function InspectionView(props) {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,7 @@
|
||||||
import HeaderBack from "zy-react-library/components/HeaderBack";
|
|
||||||
import InspectionList from "../../../Inspection/Inspection/List";
|
import InspectionList from "../../../Inspection/Inspection/List";
|
||||||
|
|
||||||
function InspectionRecords(props) {
|
function InspectionRecords(props) {
|
||||||
return (
|
return (<InspectionList updatePermissionKey="inspection-qy-check-edit2" headerTitle="检查记录" {...props} />);
|
||||||
<div>
|
|
||||||
<HeaderBack title="检查记录" />
|
|
||||||
<div style={{ paddingBottom: 10 }}>
|
|
||||||
<InspectionList updatePermissionKey="inspection-qy-check-edit2" {...props} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default InspectionRecords;
|
export default InspectionRecords;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Form, Modal, Space } from "antd";
|
import { Button, Form, Modal, Space } from "antd";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
import Page from "zy-react-library/components/Page";
|
||||||
import Search from "zy-react-library/components/Search";
|
import Search from "zy-react-library/components/Search";
|
||||||
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
||||||
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
||||||
|
|
@ -21,7 +22,7 @@ function List(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: 20 }}>
|
<Page isShowAllAction={false}>
|
||||||
<Search
|
<Search
|
||||||
options={[
|
options={[
|
||||||
{
|
{
|
||||||
|
|
@ -127,7 +128,7 @@ function List(props) {
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -144,14 +145,14 @@ const PlanExecutionPersonnelModalComponent = (props) => {
|
||||||
title="计划执行人员"
|
title="计划执行人员"
|
||||||
open
|
open
|
||||||
maskClosable={false}
|
maskClosable={false}
|
||||||
width={1000}
|
width={800}
|
||||||
onCancel={props.onCancel}
|
onCancel={props.onCancel}
|
||||||
footer={[
|
footer={[
|
||||||
<Button key="cancel" onClick={props.onCancel}>取消</Button>,
|
<Button key="cancel" onClick={props.onCancel}>取消</Button>,
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Search
|
<Search
|
||||||
labelCol={{ span: 6 }}
|
labelCol={{ span: 8 }}
|
||||||
options={[
|
options={[
|
||||||
{ name: "departmentId", label: "部门", render: <DepartmentSelectTree /> },
|
{ name: "departmentId", label: "部门", render: <DepartmentSelectTree /> },
|
||||||
{ name: "userName", label: "人员" },
|
{ name: "userName", label: "人员" },
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import dayjs from "dayjs";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import FormBuilder from "zy-react-library/components/FormBuilder";
|
import FormBuilder from "zy-react-library/components/FormBuilder";
|
||||||
import AddIcon from "zy-react-library/components/Icon/AddIcon";
|
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";
|
import Search from "zy-react-library/components/Search";
|
||||||
import PersonnelSelect from "zy-react-library/components/Select/Personnel/Gwj";
|
import PersonnelSelect from "zy-react-library/components/Select/Personnel/Gwj";
|
||||||
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
import DictionarySelectTree from "zy-react-library/components/SelectTree/Dictionary";
|
||||||
|
|
@ -49,7 +50,7 @@ function List(props) {
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: 20 }}>
|
<Page isShowAllAction={!!query.headerTitle} headerTitle={query.headerTitle}>
|
||||||
<Search
|
<Search
|
||||||
options={[
|
options={[
|
||||||
{
|
{
|
||||||
|
|
@ -208,7 +209,7 @@ function List(props) {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -271,17 +272,18 @@ const AddModalComponent = (props) => {
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
title={props.id ? "编辑" : "新增"}
|
title={props.id ? "编辑" : "新增"}
|
||||||
width={800}
|
width={600}
|
||||||
open
|
open
|
||||||
maskClosable={false}
|
maskClosable={false}
|
||||||
onOk={form.submit}
|
onOk={form.submit}
|
||||||
onCancel={props.onCancel}
|
onCancel={props.onCancel}
|
||||||
loading={props.plan.planLoading}
|
confirmLoading={props.plan.planLoading}
|
||||||
>
|
>
|
||||||
<FormBuilder
|
<FormBuilder
|
||||||
|
loading={props.plan.planLoading}
|
||||||
form={form}
|
form={form}
|
||||||
showActionButtons={false}
|
showActionButtons={false}
|
||||||
labelCol={{ span: 8 }}
|
labelCol={{ span: 10 }}
|
||||||
span={24}
|
span={24}
|
||||||
onFinish={onSubmit}
|
onFinish={onSubmit}
|
||||||
options={[
|
options={[
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Divider, Space } from "antd";
|
import { Button, Divider, Space } from "antd";
|
||||||
import HeaderBack from "zy-react-library/components/HeaderBack";
|
import Page from "zy-react-library/components/Page";
|
||||||
import Table from "zy-react-library/components/Table";
|
import Table from "zy-react-library/components/Table";
|
||||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||||
import useTable from "zy-react-library/hooks/useTable";
|
import useTable from "zy-react-library/hooks/useTable";
|
||||||
|
|
@ -14,9 +14,7 @@ function PersonnelExecutionDetails(props) {
|
||||||
const { tableProps } = useTable(props["inspectionList"], { params: { status: "", entrance: "2", checkUserId: query.userId } });
|
const { tableProps } = useTable(props["inspectionList"], { params: { status: "", entrance: "2", checkUserId: query.userId } });
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Page headerTitle="计划执行总次数" contentPadding="0 20px 20px 20px">
|
||||||
<HeaderBack title="计划执行总次数" />
|
|
||||||
<div style={{ padding: "0 20px 20px 20px" }}>
|
|
||||||
<Divider orientation="left">计划信息</Divider>
|
<Divider orientation="left">计划信息</Divider>
|
||||||
<ViewInfo id={query.planId} />
|
<ViewInfo id={query.planId} />
|
||||||
<Divider orientation="left">人员执行详情</Divider>
|
<Divider orientation="left">人员执行详情</Divider>
|
||||||
|
|
@ -59,8 +57,7 @@ function PersonnelExecutionDetails(props) {
|
||||||
options={false}
|
options={false}
|
||||||
{...tableProps}
|
{...tableProps}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Page>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Form } from "antd";
|
import { Button, Form } from "antd";
|
||||||
import HeaderBack from "zy-react-library/components/HeaderBack";
|
import Page from "zy-react-library/components/Page";
|
||||||
import Search from "zy-react-library/components/Search";
|
import Search from "zy-react-library/components/Search";
|
||||||
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
import DepartmentSelectTree from "zy-react-library/components/SelectTree/Department/Gwj";
|
||||||
import Table from "zy-react-library/components/Table";
|
import Table from "zy-react-library/components/Table";
|
||||||
|
|
@ -17,9 +17,7 @@ function PersonnelExecutionRecords(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Page headerTitle="人员执行情况" contentPadding="0 20px 20px 20px">
|
||||||
<HeaderBack title="人员执行情况" />
|
|
||||||
<div style={{ padding: "0 20px 20px 20px" }}>
|
|
||||||
<Search
|
<Search
|
||||||
labelCol={{ span: 4 }}
|
labelCol={{ span: 4 }}
|
||||||
options={[
|
options={[
|
||||||
|
|
@ -57,8 +55,7 @@ function PersonnelExecutionRecords(props) {
|
||||||
]}
|
]}
|
||||||
{...tableProps}
|
{...tableProps}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Page>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Divider, Space } from "antd";
|
import { Button, Divider, Space } from "antd";
|
||||||
import HeaderBack from "zy-react-library/components/HeaderBack";
|
import Page from "zy-react-library/components/Page";
|
||||||
import Table from "zy-react-library/components/Table";
|
import Table from "zy-react-library/components/Table";
|
||||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||||
import useTable from "zy-react-library/hooks/useTable";
|
import useTable from "zy-react-library/hooks/useTable";
|
||||||
|
|
@ -16,9 +16,7 @@ function PlanExecutionDetails(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Page headerTitle="计划执行总次数" contentPadding="0 20px 20px 20px">
|
||||||
<HeaderBack title="计划执行总次数" />
|
|
||||||
<div style={{ padding: "0 20px 20px 20px" }}>
|
|
||||||
<Divider orientation="left">计划信息</Divider>
|
<Divider orientation="left">计划信息</Divider>
|
||||||
<ViewInfo id={query.planId} />
|
<ViewInfo id={query.planId} />
|
||||||
<Divider orientation="left">计划执行详情</Divider>
|
<Divider orientation="left">计划执行详情</Divider>
|
||||||
|
|
@ -60,8 +58,7 @@ function PlanExecutionDetails(props) {
|
||||||
options={false}
|
options={false}
|
||||||
{...tableProps}
|
{...tableProps}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Page>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
import HiddenInfo from "zy-react-library/components/HiddenInfo/gwj";
|
import HiddenInfo from "zy-react-library/components/HiddenInfo/gwj";
|
||||||
|
import Page from "zy-react-library/components/Page";
|
||||||
|
|
||||||
function HiddenView() {
|
function HiddenView() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<Page headerTitle="查看" contentPadding="0 20px 20px 20px">
|
||||||
<HiddenInfo />
|
<HiddenInfo />
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,7 @@
|
||||||
import HeaderBack from "zy-react-library/components/HeaderBack";
|
|
||||||
import InspectionList from "../../../Inspection/Inspection/List";
|
import InspectionList from "../../../Inspection/Inspection/List";
|
||||||
|
|
||||||
function InspectionRecords(props) {
|
function InspectionRecords(props) {
|
||||||
return (
|
return (<InspectionList updatePermissionKey="inspection-jg-check-edit2" headerTitle="检查记录" {...props} />);
|
||||||
<div>
|
|
||||||
<HeaderBack title="检查记录" />
|
|
||||||
<div style={{ paddingBottom: 10 }}>
|
|
||||||
<InspectionList updatePermissionKey="inspection-jg-check-edit2" {...props} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default InspectionRecords;
|
export default InspectionRecords;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
import ViewInfoA from "~/pages/Container/BranchCompany/Plan/ViewInfo";
|
import ViewInfoA from "~/pages/Container/BranchCompany/Plan/ViewInfo";
|
||||||
|
|
||||||
function ViewInfo(props) {
|
function ViewInfo(props) {
|
||||||
return (
|
return (<ViewInfoA {...props} />);
|
||||||
<ViewInfoA {...props} />
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ViewInfo;
|
export default ViewInfo;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
import RecordsList from "~/pages/Container/Supervision/Inspection/Records/List";
|
||||||
|
|
||||||
|
function InspectionRecordsList(props) {
|
||||||
|
return <RecordsList {...props} />;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default InspectionRecordsList;
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Form } from "antd";
|
import { Button, Form } from "antd";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
|
import Page from "zy-react-library/components/Page";
|
||||||
import Search from "zy-react-library/components/Search";
|
import Search from "zy-react-library/components/Search";
|
||||||
import Table from "zy-react-library/components/Table";
|
import Table from "zy-react-library/components/Table";
|
||||||
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
||||||
|
|
@ -39,7 +40,7 @@ function List(props) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: 20 }}>
|
<Page isShowAllAction={false}>
|
||||||
<Search
|
<Search
|
||||||
values={{ dateType: "1" }}
|
values={{ dateType: "1" }}
|
||||||
options={[
|
options={[
|
||||||
|
|
@ -71,7 +72,7 @@ function List(props) {
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const dates = getDate();
|
const dates = getDate();
|
||||||
props.history.push(`../plan/management/list?corpId=${record.corpId}&startTime=${dates.startTime}&endTime=${dates.endTime}&entrance=statistics`);
|
props.history.push(`./planList?corpId=${record.corpId}&startTime=${dates.startTime}&endTime=${dates.endTime}&entrance=statistics&headerTitle=计划总数`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{record.planTotal}
|
{record.planTotal}
|
||||||
|
|
@ -86,7 +87,7 @@ function List(props) {
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const dates = getDate();
|
const dates = getDate();
|
||||||
props.history.push(`../plan/management/list?corpId=${record.corpId}&startTime=${dates.startTime}&endTime=${dates.endTime}&entrance=statistics&completedOnly=1`);
|
props.history.push(`./planList?corpId=${record.corpId}&startTime=${dates.startTime}&endTime=${dates.endTime}&entrance=statistics&completedOnly=1&headerTitle=已完成计划数`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{record.completedPlanCount}
|
{record.completedPlanCount}
|
||||||
|
|
@ -106,7 +107,7 @@ function List(props) {
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const dates = getDate();
|
const dates = getDate();
|
||||||
props.history.push(`../inspection/records/list?corpId=${record.corpId}&checkStartTime=${dates.startTime}&checkEndTime=${dates.endTime}&entrance=statistics`);
|
props.history.push(`./inspectionRecordsList?corpId=${record.corpId}&checkStartTime=${dates.startTime}&checkEndTime=${dates.endTime}&entrance=statistics&headerTitle=检查总数`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{record.inspectionTotal}
|
{record.inspectionTotal}
|
||||||
|
|
@ -121,7 +122,7 @@ function List(props) {
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const dates = getDate();
|
const dates = getDate();
|
||||||
props.history.push(`../inspection/records/list?corpId=${record.corpId}&checkStartTime=${dates.startTime}&checkEndTime=${dates.endTime}&entrance=statistics&planType=1`);
|
props.history.push(`./inspectionRecordsList?corpId=${record.corpId}&checkStartTime=${dates.startTime}&checkEndTime=${dates.endTime}&entrance=statistics&planType=1&headerTitle=计划内检查数`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{record.planInCount}
|
{record.planInCount}
|
||||||
|
|
@ -136,7 +137,7 @@ function List(props) {
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const dates = getDate();
|
const dates = getDate();
|
||||||
props.history.push(`../inspection/records/list?corpId=${record.corpId}&checkStartTime=${dates.startTime}&checkEndTime=${dates.endTime}&entrance=statistics&planType=0`);
|
props.history.push(`./inspectionRecordsList?corpId=${record.corpId}&checkStartTime=${dates.startTime}&checkEndTime=${dates.endTime}&entrance=statistics&planType=0&headerTitle=计划外检查数`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{record.planOutCount}
|
{record.planOutCount}
|
||||||
|
|
@ -148,7 +149,7 @@ function List(props) {
|
||||||
]}
|
]}
|
||||||
{...tableProps}
|
{...tableProps}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
import ManagementList from "~/pages/Container/Supervision/Plan/Management/List";
|
||||||
|
|
||||||
|
function PlanList(props) {
|
||||||
|
return <ManagementList {...props} />;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default PlanList;
|
||||||
Loading…
Reference in New Issue