改BUG
parent
872650cc66
commit
6a35cebbda
|
|
@ -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.3.0",
|
"react-to-print": "^3.3.0",
|
||||||
"zy-react-library": "^1.2.13"
|
"zy-react-library": "^1.3.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^5.4.1",
|
"@antfu/eslint-config": "^5.4.1",
|
||||||
|
|
|
||||||
|
|
@ -44,3 +44,7 @@ export const corpInfoList = declareRequest(
|
||||||
"eightworkLoading",
|
"eightworkLoading",
|
||||||
"Post > @/basicInfo/corpInfo/list",
|
"Post > @/basicInfo/corpInfo/list",
|
||||||
);
|
);
|
||||||
|
export const corpInfoListAll = declareRequest(
|
||||||
|
"basicInfoLoading",
|
||||||
|
"Get > /basicInfo/corpInfo/listAll",
|
||||||
|
);
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ function OpinionSign({
|
||||||
<span>
|
<span>
|
||||||
{signPath && <Image src={getFileUrl() + signPath} width={50} height={50} />}
|
{signPath && <Image src={getFileUrl() + signPath} width={50} height={50} />}
|
||||||
</span>
|
</span>
|
||||||
<span>{signTime}</span>
|
<div>{signTime}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@ import dayjs from "dayjs";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import Page from "zy-react-library/components/Page";
|
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 BasicSelectTree from "zy-react-library/components/SelectTree/Basic";
|
|
||||||
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";
|
||||||
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";
|
||||||
|
|
@ -21,7 +19,7 @@ import useApplyDepartment from "~/utils/useApplyDepartment";
|
||||||
function List(props) {
|
function List(props) {
|
||||||
const [form] = Search.useForm();
|
const [form] = Search.useForm();
|
||||||
const query = useGetUrlQuery();
|
const query = useGetUrlQuery();
|
||||||
const { departmentTree } = useApplyDepartment(props, query);
|
const { departmentTree, serviceDepartmentData } = useApplyDepartment(props, query);
|
||||||
|
|
||||||
const [eightworkType, setEightworkType] = useState([]);
|
const [eightworkType, setEightworkType] = useState([]);
|
||||||
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
||||||
|
|
@ -78,14 +76,18 @@ function List(props) {
|
||||||
},
|
},
|
||||||
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
||||||
{
|
{
|
||||||
name: "inDepartmentId",
|
name: "eqTenantId",
|
||||||
label: "申请单位",
|
label: "申请单位",
|
||||||
render: <BasicSelectTree treeData={departmentTree} multiple />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: departmentTree,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "todo",
|
name: "corpinfoId",
|
||||||
label: "服务单位",
|
label: "服务单位",
|
||||||
render: <DepartmentSelectTree searchType="inType" params={{ enterpriseType: [1, 2] }} />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: serviceDepartmentData,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
hidden: !(props.entrance === "stakeholder"),
|
hidden: !(props.entrance === "stakeholder"),
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
|
@ -94,7 +96,7 @@ function List(props) {
|
||||||
/>
|
/>
|
||||||
<Table
|
<Table
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "服务单位", dataIndex: "todo", hidden: !(props.entrance === "stakeholder") },
|
{ title: "服务单位", dataIndex: "corpinfoName", hidden: !(props.entrance === "stakeholder") },
|
||||||
{ title: "编号", dataIndex: "checkNo" },
|
{ title: "编号", dataIndex: "checkNo" },
|
||||||
{
|
{
|
||||||
title: "作业类型",
|
title: "作业类型",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { Button, Divider, Image } from "antd";
|
import { Button, Divider, Image,Radio } from "antd";
|
||||||
import dayjs from "dayjs";
|
|
||||||
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 Page from "zy-react-library/components/Page";
|
import Page from "zy-react-library/components/Page";
|
||||||
|
|
@ -42,6 +41,11 @@ function View(props) {
|
||||||
getData();
|
getData();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
const blindboardWorkParams = Array.isArray(info?.info?.blindboardWorkParams)
|
||||||
|
&& info.info.blindboardWorkParams.length > 0
|
||||||
|
? info.info.blindboardWorkParams
|
||||||
|
: [{}];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page
|
<Page
|
||||||
headerTitle="审批表详情"
|
headerTitle="审批表详情"
|
||||||
|
|
@ -75,8 +79,8 @@ function View(props) {
|
||||||
<tr>
|
<tr>
|
||||||
<td className="title">申请单位</td>
|
<td className="title">申请单位</td>
|
||||||
<td colSpan={3}>{info?.info?.applyUnit}</td>
|
<td colSpan={3}>{info?.info?.applyUnit}</td>
|
||||||
<td className="title">申请时间</td>
|
<td className="title">作业单位</td>
|
||||||
<td colSpan={2}>{dayjs(info?.info?.applyTime || info?.createTime).format("YYYY-MM-DD HH:mm:ss")}</td>
|
<td colSpan={2}>{info?.info?.step_21?.actUserDepartmentName}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td className="title">作业人</td>
|
<td className="title">作业人</td>
|
||||||
|
|
@ -97,18 +101,35 @@ function View(props) {
|
||||||
<td className="title center">规格</td>
|
<td className="title center">规格</td>
|
||||||
<td className="title center">编号</td>
|
<td className="title center">编号</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
{blindboardWorkParams.map((item, index) => (
|
||||||
<td className="center">{info?.info?.devicePipelineName}</td>
|
<tr key={item.id || index}>
|
||||||
<td className="center">{info?.info?.mediumName}</td>
|
{index === 0 && (
|
||||||
<td className="center">{info?.info?.temperature}</td>
|
<>
|
||||||
<td className="center">{info?.info?.pressure}</td>
|
<td className="center" rowSpan={blindboardWorkParams.length}>{info?.info?.devicePipelineName}</td>
|
||||||
<td className="center">{info?.info?.matertal}</td>
|
<td className="center" rowSpan={blindboardWorkParams.length}>{info?.info?.mediumName}</td>
|
||||||
<td className="center">{info?.info?.specification}</td>
|
<td className="center" rowSpan={blindboardWorkParams.length}>{info?.info?.temperature}</td>
|
||||||
<td className="center">{info?.info?.number}</td>
|
<td className="center" rowSpan={blindboardWorkParams.length}>{info?.info?.pressure}</td>
|
||||||
</tr>
|
</>
|
||||||
|
)}
|
||||||
|
<td className="center">{item?.matertal}</td>
|
||||||
|
<td className="center">{item?.specification}</td>
|
||||||
|
<td className="center">{item?.number}</td>
|
||||||
|
</tr>
|
||||||
|
))}
|
||||||
<tr>
|
<tr>
|
||||||
<td className="title">作业类别</td>
|
<td className="title">作业类别</td>
|
||||||
<td colSpan={6}>{info?.info?.blindboardWorkTypeName}</td>
|
<td colSpan={6}>
|
||||||
|
<Radio.Group
|
||||||
|
name="blindboardWorkType"
|
||||||
|
value={info?.info?.blindboardWorkType}
|
||||||
|
disabled
|
||||||
|
options={[
|
||||||
|
{ value: "blindboardWorkType001", label: "抽盲板" },
|
||||||
|
{ value: "blindboardWorkType002", label: "堵盲板" },
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td className="title">盲板抽堵位置图</td>
|
<td className="title">盲板抽堵位置图</td>
|
||||||
|
|
@ -149,45 +170,45 @@ function View(props) {
|
||||||
lastColSpan={3}
|
lastColSpan={3}
|
||||||
safetyRemarks={info?.info?.step_18?.remarks}
|
safetyRemarks={info?.info?.step_18?.remarks}
|
||||||
safetySignPath={info?.info?.step_18?.signPath}
|
safetySignPath={info?.info?.step_18?.signPath}
|
||||||
safetySignTime={info?.info?.step_18?.signTime}
|
safetySignTime={info?.info?.step_18?.status !== 0 && info?.info?.step_18?.signTime}
|
||||||
AcceptRemarks={info?.info?.step_19?.remarks}
|
AcceptRemarks={info?.info?.step_19?.remarks}
|
||||||
AcceptSignPath={info?.info?.step_19?.signPath}
|
AcceptSignPath={info?.info?.step_19?.signPath}
|
||||||
AcceptSignTime={info?.info?.step_19?.signTime}
|
AcceptSignTime={info?.info?.step_19?.status !== 0 && info?.info?.step_19?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="作业负责人意见"
|
title="作业负责人意见"
|
||||||
colSpan={7}
|
colSpan={7}
|
||||||
remarks={info?.info?.step_21?.remarks}
|
remarks={info?.info?.step_21?.remarks}
|
||||||
signPath={info?.info?.step_21?.signPath}
|
signPath={info?.info?.step_21?.signPath}
|
||||||
signTime={info?.info?.step_21?.signTime}
|
signTime={info?.info?.step_21?.status !== 0 && info?.info?.step_21?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="所在单位意见"
|
title="所在单位意见"
|
||||||
colSpan={7}
|
colSpan={7}
|
||||||
remarks={info?.info?.step_22?.remarks}
|
remarks={info?.info?.step_22?.remarks}
|
||||||
signPath={info?.info?.step_22?.signPath}
|
signPath={info?.info?.step_22?.signPath}
|
||||||
signTime={info?.info?.step_22?.signTime}
|
signTime={info?.info?.step_22?.status !== 0 && info?.info?.step_22?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="审核部门意见"
|
title="审核部门意见"
|
||||||
colSpan={7}
|
colSpan={7}
|
||||||
remarks={info?.info?.step_23?.remarks}
|
remarks={info?.info?.step_23?.remarks}
|
||||||
signPath={info?.info?.step_23?.signPath}
|
signPath={info?.info?.step_23?.signPath}
|
||||||
signTime={info?.info?.step_23?.signTime}
|
signTime={info?.info?.step_23?.status !== 0 && info?.info?.step_23?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="审批部门意见"
|
title="审批部门意见"
|
||||||
colSpan={7}
|
colSpan={7}
|
||||||
remarks={info?.info?.step_24?.remarks}
|
remarks={info?.info?.step_24?.remarks}
|
||||||
signPath={info?.info?.step_24?.signPath}
|
signPath={info?.info?.step_24?.signPath}
|
||||||
signTime={info?.info?.step_24?.signTime}
|
signTime={info?.info?.step_24?.status !== 0 && info?.info?.step_24?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="完工验收"
|
title="完工验收"
|
||||||
colSpan={7}
|
colSpan={7}
|
||||||
remarks={info?.info?.step_25?.remarks}
|
remarks={info?.info?.step_25?.remarks}
|
||||||
signPath={info?.info?.step_25?.signPath}
|
signPath={info?.info?.step_25?.signPath}
|
||||||
signTime={info?.info?.step_25?.signTime}
|
signTime={info?.info?.step_25?.status !== 0 && info?.info?.step_25?.signTime}
|
||||||
/>
|
/>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ import { Button, Space } from "antd";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import Page from "zy-react-library/components/Page";
|
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 BasicSelectTree from "zy-react-library/components/SelectTree/Basic";
|
|
||||||
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";
|
||||||
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
||||||
|
|
@ -20,7 +19,7 @@ import useApplyDepartment from "~/utils/useApplyDepartment";
|
||||||
function List(props) {
|
function List(props) {
|
||||||
const [form] = Search.useForm();
|
const [form] = Search.useForm();
|
||||||
const query = useGetUrlQuery();
|
const query = useGetUrlQuery();
|
||||||
const { departmentTree } = useApplyDepartment(props, query);
|
const { departmentTree, serviceDepartmentData } = useApplyDepartment(props, query);
|
||||||
|
|
||||||
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
||||||
const [flowModalOpen, setFlowModalOpen] = useState(false);
|
const [flowModalOpen, setFlowModalOpen] = useState(false);
|
||||||
|
|
@ -31,11 +30,12 @@ function List(props) {
|
||||||
|
|
||||||
const { tableProps, getData } = useTable(props["eightworkList"], {
|
const { tableProps, getData } = useTable(props["eightworkList"], {
|
||||||
form,
|
form,
|
||||||
params: { eqWorkType: "confinedspace_work", corpinfoId: query.corpinfoId },
|
params: { eqWorkType: "confinedspace_work" },
|
||||||
transform: formData => ({
|
transform: formData => ({
|
||||||
geCreateTime: formData.createTime?.[0],
|
geCreateTime: formData.createTime?.[0],
|
||||||
leCreateTime: formData.createTime?.[1],
|
leCreateTime: formData.createTime?.[1],
|
||||||
eqStatus: props.status || formData.eqStatus,
|
eqStatus: props.status || formData.eqStatus,
|
||||||
|
corpinfoId: formData.corpinfoId ? formData.corpinfoId : query.corpinfoId,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -59,16 +59,20 @@ function List(props) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
||||||
{ name: "todo", label: "有限空间名称" },
|
{ name: "likeLimitedSpaceNameAndCode", label: "有限空间名称" },
|
||||||
{
|
{
|
||||||
name: "inDepartmentId",
|
name: "eqTenantId",
|
||||||
label: "申请单位",
|
label: "申请单位",
|
||||||
render: <BasicSelectTree treeData={departmentTree} multiple />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: departmentTree,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "todo",
|
name: "corpinfoId",
|
||||||
label: "服务单位",
|
label: "服务单位",
|
||||||
render: <DepartmentSelectTree searchType="inType" params={{ enterpriseType: [1, 2] }} />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: serviceDepartmentData,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
hidden: !(props.entrance === "stakeholder"),
|
hidden: !(props.entrance === "stakeholder"),
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
|
@ -77,7 +81,7 @@ function List(props) {
|
||||||
/>
|
/>
|
||||||
<Table
|
<Table
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "服务单位", dataIndex: "todo", hidden: !(props.entrance === "stakeholder") },
|
{ title: "服务单位", dataIndex: "corpinfoName", hidden: !(props.entrance === "stakeholder") },
|
||||||
{ title: "编号", dataIndex: "checkNo" },
|
{ title: "编号", dataIndex: "checkNo" },
|
||||||
{
|
{
|
||||||
title: "作业类型",
|
title: "作业类型",
|
||||||
|
|
@ -89,11 +93,11 @@ function List(props) {
|
||||||
{ title: "申请时间", dataIndex: ["info", "applyTime"] },
|
{ title: "申请时间", dataIndex: ["info", "applyTime"] },
|
||||||
{ title: "作业人", dataIndex: ["info", "workUserName"] },
|
{ title: "作业人", dataIndex: ["info", "workUserName"] },
|
||||||
{ title: "作业单位", dataIndex: ["info", "workDepartmentName"] },
|
{ title: "作业单位", dataIndex: ["info", "workDepartmentName"] },
|
||||||
{
|
// {
|
||||||
title: "作业时间",
|
// title: "作业时间",
|
||||||
dataIndex: ["info", "workStartTime"],
|
// dataIndex: ["info", "workStartTime"],
|
||||||
render: (_, record) => `${record.info.workStartTime || ""}-${record.info.workEndTime || ""}`,
|
// render: (_, record) => `${record.info.workStartTime || ""}-${record.info.workEndTime || ""}`,
|
||||||
},
|
// },
|
||||||
{ title: "作业内容", dataIndex: ["info", "workContent"] },
|
{ title: "作业内容", dataIndex: ["info", "workContent"] },
|
||||||
{ title: "有限空间名称", dataIndex: ["info", "limitedSpaceNameAndCode"] },
|
{ title: "有限空间名称", dataIndex: ["info", "limitedSpaceNameAndCode"] },
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -216,8 +216,8 @@ function View(props) {
|
||||||
{info?.info?.step_14?.signPath
|
{info?.info?.step_14?.signPath
|
||||||
&& <Image src={getFileUrl() + info?.info?.step_14?.signPath} width={50} height={50} />}
|
&& <Image src={getFileUrl() + info?.info?.step_14?.signPath} width={50} height={50} />}
|
||||||
</div>
|
</div>
|
||||||
<div>{info?.info?.step_14?.signTime}</div>
|
<div>{ info?.info?.step_14?.status !== 0 && info?.info?.step_14?.signTime}</div>
|
||||||
<div className="remarks">{info?.info?.step_14?.remarks}</div>
|
{/* <div className="remarks">{info?.info?.step_14?.remarks}</div> */}
|
||||||
</td>
|
</td>
|
||||||
<td className="title">管理单位发包部门意见</td>
|
<td className="title">管理单位发包部门意见</td>
|
||||||
<td className="right" style={{ width: 200 }}>
|
<td className="right" style={{ width: 200 }}>
|
||||||
|
|
@ -225,8 +225,8 @@ function View(props) {
|
||||||
{info?.info?.step_15?.signPath
|
{info?.info?.step_15?.signPath
|
||||||
&& <Image src={getFileUrl() + info?.info?.step_15?.signPath} width={50} height={50} />}
|
&& <Image src={getFileUrl() + info?.info?.step_15?.signPath} width={50} height={50} />}
|
||||||
</div>
|
</div>
|
||||||
<div>{info?.info?.step_15?.signTime}</div>
|
<div>{info?.info?.step_15?.status !== 0 && info?.info?.step_15?.signTime}</div>
|
||||||
<div className="remarks">{info?.info?.step_15?.remarks}</div>
|
{/* <div className="remarks">{info?.info?.step_15?.remarks}</div> */}
|
||||||
</td>
|
</td>
|
||||||
<td className="title">管理单位安监部门意见</td>
|
<td className="title">管理单位安监部门意见</td>
|
||||||
<td className="right" style={{ width: 200 }}>
|
<td className="right" style={{ width: 200 }}>
|
||||||
|
|
@ -234,8 +234,8 @@ function View(props) {
|
||||||
{info?.info?.step_16?.signPath
|
{info?.info?.step_16?.signPath
|
||||||
&& <Image src={getFileUrl() + info?.info?.step_16?.signPath} width={50} height={50} />}
|
&& <Image src={getFileUrl() + info?.info?.step_16?.signPath} width={50} height={50} />}
|
||||||
</div>
|
</div>
|
||||||
<div>{info?.info?.step_16?.signTime}</div>
|
<div>{info?.info?.step_16?.status !== 0 && info?.info?.step_16?.signTime}</div>
|
||||||
<div className="remarks">{info?.info?.step_16?.remarks}</div>
|
{/* <div className="remarks">{info?.info?.step_16?.remarks}</div> */}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import useApplyDepartment from "~/utils/useApplyDepartment";
|
||||||
function List(props) {
|
function List(props) {
|
||||||
const [form] = Search.useForm();
|
const [form] = Search.useForm();
|
||||||
const query = useGetUrlQuery();
|
const query = useGetUrlQuery();
|
||||||
const { departmentTree } = useApplyDepartment(props, query);
|
const { departmentTree, serviceDepartmentData } = useApplyDepartment(props, query);
|
||||||
|
|
||||||
const [eightworkType, setEightworkType] = useState([]);
|
const [eightworkType, setEightworkType] = useState([]);
|
||||||
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
||||||
|
|
@ -78,14 +78,18 @@ function List(props) {
|
||||||
},
|
},
|
||||||
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
||||||
{
|
{
|
||||||
name: "inDepartmentId",
|
name: "eqTenantId",
|
||||||
label: "申请单位",
|
label: "申请单位",
|
||||||
render: <BasicSelectTree treeData={departmentTree} multiple />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: departmentTree,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "todo",
|
name: "corpinfoId",
|
||||||
label: "服务单位",
|
label: "服务单位",
|
||||||
render: <DepartmentSelectTree searchType="inType" params={{ enterpriseType: [1, 2] }} />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: serviceDepartmentData,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
hidden: !(props.entrance === "stakeholder"),
|
hidden: !(props.entrance === "stakeholder"),
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
|
@ -94,7 +98,7 @@ function List(props) {
|
||||||
/>
|
/>
|
||||||
<Table
|
<Table
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "服务单位", dataIndex: "todo", hidden: !(props.entrance === "stakeholder") },
|
{ title: "服务单位", dataIndex: "corpinfoName", hidden: !(props.entrance === "stakeholder") },
|
||||||
{ title: "编号", dataIndex: "checkNo" },
|
{ title: "编号", dataIndex: "checkNo" },
|
||||||
{
|
{
|
||||||
title: "作业类型",
|
title: "作业类型",
|
||||||
|
|
|
||||||
|
|
@ -132,45 +132,45 @@ function View(props) {
|
||||||
colSpan={2}
|
colSpan={2}
|
||||||
safetyRemarks={info?.info?.step_18?.remarks}
|
safetyRemarks={info?.info?.step_18?.remarks}
|
||||||
safetySignPath={info?.info?.step_18?.signPath}
|
safetySignPath={info?.info?.step_18?.signPath}
|
||||||
safetySignTime={info?.info?.step_18?.signTime}
|
safetySignTime={info?.info?.step_18?.status !== 0 && info?.info?.step_18?.signTime}
|
||||||
AcceptRemarks={info?.info?.step_19?.remarks}
|
AcceptRemarks={info?.info?.step_19?.remarks}
|
||||||
AcceptSignPath={info?.info?.step_19?.signPath}
|
AcceptSignPath={info?.info?.step_19?.signPath}
|
||||||
AcceptSignTime={info?.info?.step_19?.signTime}
|
AcceptSignTime={info?.info?.step_19?.status !== 0 && info?.info?.step_19?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="作业负责人意见"
|
title="作业负责人意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_21?.remarks}
|
remarks={info?.info?.step_21?.remarks}
|
||||||
signPath={info?.info?.step_21?.signPath}
|
signPath={info?.info?.step_21?.signPath}
|
||||||
signTime={info?.info?.step_21?.signTime}
|
signTime={info?.info?.step_21?.status !== 0 && info?.info?.step_21?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="所在单位意见"
|
title="所在单位意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_22?.remarks}
|
remarks={info?.info?.step_22?.remarks}
|
||||||
signPath={info?.info?.step_22?.signPath}
|
signPath={info?.info?.step_22?.signPath}
|
||||||
signTime={info?.info?.step_22?.signTime}
|
signTime={info?.info?.step_22?.status !== 0 && info?.info?.step_22?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="消防、安全管理部门意见"
|
title="消防、安全管理部门意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_27?.remarks}
|
remarks={info?.info?.step_27?.remarks}
|
||||||
signPath={info?.info?.step_27?.signPath}
|
signPath={info?.info?.step_27?.signPath}
|
||||||
signTime={info?.info?.step_27?.signTime}
|
signTime={info?.info?.step_27?.status !== 0 && info?.info?.step_27?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="审批部门意见"
|
title="审批部门意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_24?.remarks}
|
remarks={info?.info?.step_24?.remarks}
|
||||||
signPath={info?.info?.step_24?.signPath}
|
signPath={info?.info?.step_24?.signPath}
|
||||||
signTime={info?.info?.step_24?.signTime}
|
signTime={info?.info?.step_24?.status !== 0 && info?.info?.step_24?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="完工验收"
|
title="完工验收"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_25?.remarks}
|
remarks={info?.info?.step_25?.remarks}
|
||||||
signPath={info?.info?.step_25?.signPath}
|
signPath={info?.info?.step_25?.signPath}
|
||||||
signTime={info?.info?.step_25?.signTime}
|
signTime={info?.info?.step_24?.status !== 0 && info?.info?.step_25?.signTime}
|
||||||
/>
|
/>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import useApplyDepartment from "~/utils/useApplyDepartment";
|
||||||
function List(props) {
|
function List(props) {
|
||||||
const [form] = Search.useForm();
|
const [form] = Search.useForm();
|
||||||
const query = useGetUrlQuery();
|
const query = useGetUrlQuery();
|
||||||
const { departmentTree } = useApplyDepartment(props, query);
|
const { departmentTree, serviceDepartmentData } = useApplyDepartment(props, query);
|
||||||
|
|
||||||
const [eightworkType, setEightworkType] = useState([]);
|
const [eightworkType, setEightworkType] = useState([]);
|
||||||
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
||||||
|
|
@ -78,14 +78,18 @@ function List(props) {
|
||||||
},
|
},
|
||||||
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
||||||
{
|
{
|
||||||
name: "inDepartmentId",
|
name: "eqTenantId",
|
||||||
label: "申请单位",
|
label: "申请单位",
|
||||||
render: <BasicSelectTree treeData={departmentTree} multiple />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: departmentTree,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "todo",
|
name: "corpinfoId",
|
||||||
label: "服务单位",
|
label: "服务单位",
|
||||||
render: <DepartmentSelectTree searchType="inType" params={{ enterpriseType: [1, 2] }} />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: serviceDepartmentData,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
hidden: !(props.entrance === "stakeholder"),
|
hidden: !(props.entrance === "stakeholder"),
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
|
@ -94,7 +98,7 @@ function List(props) {
|
||||||
/>
|
/>
|
||||||
<Table
|
<Table
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "服务单位", dataIndex: "todo", hidden: !(props.entrance === "stakeholder") },
|
{ title: "服务单位", dataIndex: "corpinfoName", hidden: !(props.entrance === "stakeholder") },
|
||||||
{ title: "编号", dataIndex: "checkNo" },
|
{ title: "编号", dataIndex: "checkNo" },
|
||||||
{
|
{
|
||||||
title: "作业类型",
|
title: "作业类型",
|
||||||
|
|
|
||||||
|
|
@ -132,45 +132,45 @@ function View(props) {
|
||||||
colSpan={2}
|
colSpan={2}
|
||||||
safetyRemarks={info?.info?.step_18?.remarks}
|
safetyRemarks={info?.info?.step_18?.remarks}
|
||||||
safetySignPath={info?.info?.step_18?.signPath}
|
safetySignPath={info?.info?.step_18?.signPath}
|
||||||
safetySignTime={info?.info?.step_18?.signTime}
|
safetySignTime={info?.info?.step_18?.status !== 0 && info?.info?.step_18?.signTime}
|
||||||
AcceptRemarks={info?.info?.step_19?.remarks}
|
AcceptRemarks={info?.info?.step_19?.remarks}
|
||||||
AcceptSignPath={info?.info?.step_19?.signPath}
|
AcceptSignPath={info?.info?.step_19?.signPath}
|
||||||
AcceptSignTime={info?.info?.step_19?.signTime}
|
AcceptSignTime={info?.info?.step_19?.status !== 0 && info?.info?.step_19?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="作业负责人意见"
|
title="作业负责人意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_21?.remarks}
|
remarks={info?.info?.step_21?.remarks}
|
||||||
signPath={info?.info?.step_21?.signPath}
|
signPath={info?.info?.step_21?.signPath}
|
||||||
signTime={info?.info?.step_21?.signTime}
|
signTime={info?.info?.step_21?.status !== 0 && info?.info?.step_21?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="所在单位意见"
|
title="所在单位意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_22?.remarks}
|
remarks={info?.info?.step_22?.remarks}
|
||||||
signPath={info?.info?.step_22?.signPath}
|
signPath={info?.info?.step_22?.signPath}
|
||||||
signTime={info?.info?.step_22?.signTime}
|
signTime={info?.info?.step_22?.status !== 0 && info?.info?.step_22?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="有关部门意见"
|
title="有关部门意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_26?.remarks}
|
remarks={info?.info?.step_26?.remarks}
|
||||||
signPath={info?.info?.step_26?.signPath}
|
signPath={info?.info?.step_26?.signPath}
|
||||||
signTime={info?.info?.step_26?.signTime}
|
signTime={info?.info?.step_26?.status !== 0 && info?.info?.step_26?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="审批部门意见"
|
title="审批部门意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_24?.remarks}
|
remarks={info?.info?.step_24?.remarks}
|
||||||
signPath={info?.info?.step_24?.signPath}
|
signPath={info?.info?.step_24?.signPath}
|
||||||
signTime={info?.info?.step_24?.signTime}
|
signTime={info?.info?.step_24?.status !== 0 && info?.info?.step_24?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="完工验收"
|
title="完工验收"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_25?.remarks}
|
remarks={info?.info?.step_25?.remarks}
|
||||||
signPath={info?.info?.step_25?.signPath}
|
signPath={info?.info?.step_25?.signPath}
|
||||||
signTime={info?.info?.step_25?.signTime}
|
signTime={info?.info?.step_25?.status !== 0 && info?.info?.step_25?.signTime}
|
||||||
/>
|
/>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import useApplyDepartment from "~/utils/useApplyDepartment";
|
||||||
function List(props) {
|
function List(props) {
|
||||||
const [form] = Search.useForm();
|
const [form] = Search.useForm();
|
||||||
const query = useGetUrlQuery();
|
const query = useGetUrlQuery();
|
||||||
const { departmentTree } = useApplyDepartment(props, query);
|
const { departmentTree, serviceDepartmentData } = useApplyDepartment(props, query);
|
||||||
|
|
||||||
const [eightworkType, setEightworkType] = useState([]);
|
const [eightworkType, setEightworkType] = useState([]);
|
||||||
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
||||||
|
|
@ -78,14 +78,18 @@ function List(props) {
|
||||||
},
|
},
|
||||||
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
||||||
{
|
{
|
||||||
name: "inDepartmentId",
|
name: "eqTenantId",
|
||||||
label: "申请单位",
|
label: "申请单位",
|
||||||
render: <BasicSelectTree treeData={departmentTree} multiple />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: departmentTree,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "todo",
|
name: "corpinfoId",
|
||||||
label: "服务单位",
|
label: "服务单位",
|
||||||
render: <DepartmentSelectTree searchType="inType" params={{ enterpriseType: [1, 2] }} />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: serviceDepartmentData,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
hidden: !(props.entrance === "stakeholder"),
|
hidden: !(props.entrance === "stakeholder"),
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
|
@ -94,7 +98,7 @@ function List(props) {
|
||||||
/>
|
/>
|
||||||
<Table
|
<Table
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "服务单位", dataIndex: "todo", hidden: !(props.entrance === "stakeholder") },
|
{ title: "服务单位", dataIndex: "corpinfoName", hidden: !(props.entrance === "stakeholder") },
|
||||||
{ title: "编号", dataIndex: "checkNo" },
|
{ title: "编号", dataIndex: "checkNo" },
|
||||||
{
|
{
|
||||||
title: "作业类型",
|
title: "作业类型",
|
||||||
|
|
|
||||||
|
|
@ -170,38 +170,38 @@ function View(props) {
|
||||||
colSpan={2}
|
colSpan={2}
|
||||||
safetyRemarks={info?.info?.step_18?.remarks}
|
safetyRemarks={info?.info?.step_18?.remarks}
|
||||||
safetySignPath={info?.info?.step_18?.signPath}
|
safetySignPath={info?.info?.step_18?.signPath}
|
||||||
safetySignTime={info?.info?.step_18?.signTime}
|
safetySignTime={info?.info?.step_18?.status !== 0 && info?.info?.step_18?.signTime}
|
||||||
AcceptRemarks={info?.info?.step_19?.remarks}
|
AcceptRemarks={info?.info?.step_19?.remarks}
|
||||||
AcceptSignPath={info?.info?.step_19?.signPath}
|
AcceptSignPath={info?.info?.step_19?.signPath}
|
||||||
AcceptSignTime={info?.info?.step_19?.signTime}
|
AcceptSignTime={info?.info?.step_19?.status !== 0 && info?.info?.step_19?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="作业负责人意见"
|
title="作业负责人意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_21?.remarks}
|
remarks={info?.info?.step_21?.remarks}
|
||||||
signPath={info?.info?.step_21?.signPath}
|
signPath={info?.info?.step_21?.signPath}
|
||||||
signTime={info?.info?.step_21?.signTime}
|
signTime={info?.info?.step_21?.status !== 0 && info?.info?.step_21?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="用电单位意见"
|
title="用电单位意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_28?.remarks}
|
remarks={info?.info?.step_28?.remarks}
|
||||||
signPath={info?.info?.step_28?.signPath}
|
signPath={info?.info?.step_28?.signPath}
|
||||||
signTime={info?.info?.step_28?.signTime}
|
signTime={info?.info?.step_28?.status !== 0 && info?.info?.step_28?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="配送电单位意见"
|
title="配送电单位意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_29?.remarks}
|
remarks={info?.info?.step_29?.remarks}
|
||||||
signPath={info?.info?.step_29?.signPath}
|
signPath={info?.info?.step_29?.signPath}
|
||||||
signTime={info?.info?.step_29?.signTime}
|
signTime={info?.info?.step_29?.status !== 0 && info?.info?.step_29?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="完工验收"
|
title="完工验收"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_25?.remarks}
|
remarks={info?.info?.step_25?.remarks}
|
||||||
signPath={info?.info?.step_25?.signPath}
|
signPath={info?.info?.step_25?.signPath}
|
||||||
signTime={info?.info?.step_25?.signTime}
|
signTime={info?.info?.step_25?.status !== 0 && info?.info?.step_25?.signTime}
|
||||||
/>
|
/>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@ import dayjs from "dayjs";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import Page from "zy-react-library/components/Page";
|
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 BasicSelectTree from "zy-react-library/components/SelectTree/Basic";
|
|
||||||
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";
|
||||||
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";
|
||||||
|
|
@ -21,7 +19,7 @@ import useApplyDepartment from "~/utils/useApplyDepartment";
|
||||||
function List(props) {
|
function List(props) {
|
||||||
const [form] = Search.useForm();
|
const [form] = Search.useForm();
|
||||||
const query = useGetUrlQuery();
|
const query = useGetUrlQuery();
|
||||||
const { departmentTree } = useApplyDepartment(props, query);
|
const { departmentTree, serviceDepartmentData } = useApplyDepartment(props, query);
|
||||||
|
|
||||||
const [eightworkType, setEightworkType] = useState([]);
|
const [eightworkType, setEightworkType] = useState([]);
|
||||||
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
||||||
|
|
@ -78,14 +76,18 @@ function List(props) {
|
||||||
},
|
},
|
||||||
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
||||||
{
|
{
|
||||||
name: "inDepartmentId",
|
name: "eqTenantId",
|
||||||
label: "申请单位",
|
label: "申请单位",
|
||||||
render: <BasicSelectTree treeData={departmentTree} multiple />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: departmentTree,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "todo",
|
name: "corpinfoId",
|
||||||
label: "服务单位",
|
label: "服务单位",
|
||||||
render: <DepartmentSelectTree searchType="inType" params={{ enterpriseType: [1, 2] }} />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: serviceDepartmentData,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
hidden: !(props.entrance === "stakeholder"),
|
hidden: !(props.entrance === "stakeholder"),
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
|
@ -94,7 +96,7 @@ function List(props) {
|
||||||
/>
|
/>
|
||||||
<Table
|
<Table
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "服务单位", dataIndex: "todo", hidden: !(props.entrance === "stakeholder") },
|
{ title: "服务单位", dataIndex: "corpinfoName", hidden: !(props.entrance === "stakeholder") },
|
||||||
{ title: "编号", dataIndex: "checkNo" },
|
{ title: "编号", dataIndex: "checkNo" },
|
||||||
{
|
{
|
||||||
title: "作业类型",
|
title: "作业类型",
|
||||||
|
|
|
||||||
|
|
@ -129,45 +129,45 @@ function View(props) {
|
||||||
colSpan={2}
|
colSpan={2}
|
||||||
safetyRemarks={info?.info?.step_18?.remarks}
|
safetyRemarks={info?.info?.step_18?.remarks}
|
||||||
safetySignPath={info?.info?.step_18?.signPath}
|
safetySignPath={info?.info?.step_18?.signPath}
|
||||||
safetySignTime={info?.info?.step_18?.signTime}
|
safetySignTime={info?.info?.step_18?.status !== 0 && info?.info?.step_18?.signTime}
|
||||||
AcceptRemarks={info?.info?.step_19?.remarks}
|
AcceptRemarks={info?.info?.step_19?.remarks}
|
||||||
AcceptSignPath={info?.info?.step_19?.signPath}
|
AcceptSignPath={info?.info?.step_19?.signPath}
|
||||||
AcceptSignTime={info?.info?.step_19?.signTime}
|
AcceptSignTime={info?.info?.step_19?.status !== 0 && info?.info?.step_19?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="作业负责人意见"
|
title="作业负责人意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_21?.remarks}
|
remarks={info?.info?.step_21?.remarks}
|
||||||
signPath={info?.info?.step_21?.signPath}
|
signPath={info?.info?.step_21?.signPath}
|
||||||
signTime={info?.info?.step_21?.signTime}
|
signTime={info?.info?.step_21?.status !== 0 && info?.info?.step_21?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="所在单位意见"
|
title="所在单位意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_22?.remarks}
|
remarks={info?.info?.step_22?.remarks}
|
||||||
signPath={info?.info?.step_22?.signPath}
|
signPath={info?.info?.step_22?.signPath}
|
||||||
signTime={info?.info?.step_22?.signTime}
|
signTime={info?.info?.step_22?.status !== 0 && info?.info?.step_22?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="审核部门意见"
|
title="审核部门意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_23?.remarks}
|
remarks={info?.info?.step_23?.remarks}
|
||||||
signPath={info?.info?.step_23?.signPath}
|
signPath={info?.info?.step_23?.signPath}
|
||||||
signTime={info?.info?.step_23?.signTime}
|
signTime={info?.info?.step_23?.status !== 0 && info?.info?.step_23?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="审批部门意见"
|
title="审批部门意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_24?.remarks}
|
remarks={info?.info?.step_24?.remarks}
|
||||||
signPath={info?.info?.step_24?.signPath}
|
signPath={info?.info?.step_24?.signPath}
|
||||||
signTime={info?.info?.step_24?.signTime}
|
signTime={info?.info?.step_24?.status !== 0 && info?.info?.step_24?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="完工验收"
|
title="完工验收"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_25?.remarks}
|
remarks={info?.info?.step_25?.remarks}
|
||||||
signPath={info?.info?.step_25?.signPath}
|
signPath={info?.info?.step_25?.signPath}
|
||||||
signTime={info?.info?.step_25?.signTime}
|
signTime={info?.info?.step_25?.status !== 0 && info?.info?.step_25?.signTime}
|
||||||
/>
|
/>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@ import { Button, Space } from "antd";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import Page from "zy-react-library/components/Page";
|
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 BasicSelectTree from "zy-react-library/components/SelectTree/Basic";
|
|
||||||
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";
|
||||||
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";
|
||||||
|
|
@ -20,7 +18,7 @@ import useApplyDepartment from "~/utils/useApplyDepartment";
|
||||||
function List(props) {
|
function List(props) {
|
||||||
const [form] = Search.useForm();
|
const [form] = Search.useForm();
|
||||||
const query = useGetUrlQuery();
|
const query = useGetUrlQuery();
|
||||||
const { departmentTree } = useApplyDepartment(props, query);
|
const { departmentTree, serviceDepartmentData } = useApplyDepartment(props);
|
||||||
|
|
||||||
const [eightworkType, setEightworkType] = useState([]);
|
const [eightworkType, setEightworkType] = useState([]);
|
||||||
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
||||||
|
|
@ -32,11 +30,12 @@ function List(props) {
|
||||||
|
|
||||||
const { tableProps, getData } = useTable(props["eightworkList"], {
|
const { tableProps, getData } = useTable(props["eightworkList"], {
|
||||||
form,
|
form,
|
||||||
params: { eqWorkType: "hot_work", corpinfoId: query.corpinfoId },
|
params: { eqWorkType: "hot_work" },
|
||||||
transform: formData => ({
|
transform: formData => ({
|
||||||
geCreateTime: formData.createTime?.[0],
|
geCreateTime: formData.createTime?.[0],
|
||||||
leCreateTime: formData.createTime?.[1],
|
leCreateTime: formData.createTime?.[1],
|
||||||
eqStatus: props.status || formData.eqStatus,
|
eqStatus: props.status || formData.eqStatus,
|
||||||
|
corpinfoId: formData.corpinfoId ? formData.corpinfoId : query.corpinfoId,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -77,14 +76,18 @@ function List(props) {
|
||||||
},
|
},
|
||||||
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
||||||
{
|
{
|
||||||
name: "inDepartmentId",
|
name: "eqTenantId",
|
||||||
label: "申请单位",
|
label: "申请单位",
|
||||||
render: <BasicSelectTree treeData={departmentTree} multiple />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: departmentTree,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "todo",
|
name: "corpinfoId",
|
||||||
label: "服务单位",
|
label: "服务单位",
|
||||||
render: <DepartmentSelectTree searchType="inType" params={{ enterpriseType: [1, 2] }} />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: serviceDepartmentData,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
hidden: !(props.entrance === "stakeholder"),
|
hidden: !(props.entrance === "stakeholder"),
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
|
@ -93,7 +96,7 @@ function List(props) {
|
||||||
/>
|
/>
|
||||||
<Table
|
<Table
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "服务单位", dataIndex: "todo", hidden: !(props.entrance === "stakeholder") },
|
{ title: "服务单位", dataIndex: "corpinfoName", hidden: !(props.entrance === "stakeholder") },
|
||||||
{ title: "编号", dataIndex: "checkNo" },
|
{ title: "编号", dataIndex: "checkNo" },
|
||||||
{
|
{
|
||||||
title: "作业类型",
|
title: "作业类型",
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ function View(props) {
|
||||||
{info?.info?.step_4?.signPath
|
{info?.info?.step_4?.signPath
|
||||||
&& <Image src={getFileUrl() + info?.info?.step_4?.signPath} width={50} height={50} />}
|
&& <Image src={getFileUrl() + info?.info?.step_4?.signPath} width={50} height={50} />}
|
||||||
</div>
|
</div>
|
||||||
<div>{info?.info?.step_4?.signTime}</div>
|
<div>{info?.info?.step_4?.status !== 0 && info?.info?.step_4?.signTime}</div>
|
||||||
<div className="remarks">{info?.info?.step_4?.remarks}</div>
|
<div className="remarks">{info?.info?.step_4?.remarks}</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="title">项目发包单位(部门)人员意见</td>
|
<td className="title">项目发包单位(部门)人员意见</td>
|
||||||
|
|
@ -154,7 +154,7 @@ function View(props) {
|
||||||
{info?.info?.step_5?.signPath
|
{info?.info?.step_5?.signPath
|
||||||
&& <Image src={getFileUrl() + info?.info?.step_5?.signPath} width={50} height={50} />}
|
&& <Image src={getFileUrl() + info?.info?.step_5?.signPath} width={50} height={50} />}
|
||||||
</div>
|
</div>
|
||||||
<div>{info?.info?.step_5?.signTime}</div>
|
<div>{info?.info?.step_5?.status !== 0 && info?.info?.step_5?.signTime}</div>
|
||||||
<div className="remarks">{info?.info?.step_5?.remarks}</div>
|
<div className="remarks">{info?.info?.step_5?.remarks}</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -165,7 +165,7 @@ function View(props) {
|
||||||
{info?.info?.step_6?.signPath
|
{info?.info?.step_6?.signPath
|
||||||
&& <Image src={getFileUrl() + info?.info?.step_6?.signPath} width={50} height={50} />}
|
&& <Image src={getFileUrl() + info?.info?.step_6?.signPath} width={50} height={50} />}
|
||||||
</div>
|
</div>
|
||||||
<div>{info?.info?.step_6?.signTime}</div>
|
<div>{info?.info?.step_6?.status !== 0 && info?.info?.step_6?.signTime}</div>
|
||||||
<div className="remarks">{info?.info?.step_6?.remarks}</div>
|
<div className="remarks">{info?.info?.step_6?.remarks}</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="title">动火许可证签发单位意见</td>
|
<td className="title">动火许可证签发单位意见</td>
|
||||||
|
|
@ -174,7 +174,7 @@ function View(props) {
|
||||||
{info?.info?.step_7?.signPath
|
{info?.info?.step_7?.signPath
|
||||||
&& <Image src={getFileUrl() + info?.info?.step_7?.signPath} width={50} height={50} />}
|
&& <Image src={getFileUrl() + info?.info?.step_7?.signPath} width={50} height={50} />}
|
||||||
</div>
|
</div>
|
||||||
<div>{info?.info?.step_7?.signTime}</div>
|
<div>{info?.info?.step_7?.status !== 0 && info?.info?.step_7?.signTime}</div>
|
||||||
<div className="remarks">{info?.info?.step_7?.remarks}</div>
|
<div className="remarks">{info?.info?.step_7?.remarks}</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -185,7 +185,7 @@ function View(props) {
|
||||||
{info?.info?.step_9?.signPath
|
{info?.info?.step_9?.signPath
|
||||||
&& <Image src={getFileUrl() + info?.info?.step_9?.signPath} width={50} height={50} />}
|
&& <Image src={getFileUrl() + info?.info?.step_9?.signPath} width={50} height={50} />}
|
||||||
</div>
|
</div>
|
||||||
<div>{info?.info?.step_9?.signTime}</div>
|
<div>{info?.info?.step_9?.status !== 0 && info?.info?.step_9?.signTime}</div>
|
||||||
<div className="remarks">{info?.info?.step_9?.remarks}</div>
|
<div className="remarks">{info?.info?.step_9?.remarks}</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="title">动火后管辖单位现场人员验收</td>
|
<td className="title">动火后管辖单位现场人员验收</td>
|
||||||
|
|
@ -194,7 +194,7 @@ function View(props) {
|
||||||
{info?.info?.step_11?.signPath
|
{info?.info?.step_11?.signPath
|
||||||
&& <Image src={getFileUrl() + info?.info?.step_11?.signPath} width={50} height={50} />}
|
&& <Image src={getFileUrl() + info?.info?.step_11?.signPath} width={50} height={50} />}
|
||||||
</div>
|
</div>
|
||||||
<div>{info?.info?.step_11?.signTime}</div>
|
<div>{info?.info?.step_11?.status !== 0 && info?.info?.step_11?.signTime}</div>
|
||||||
<div className="remarks">{info?.info?.step_11?.remarks}</div>
|
<div className="remarks">{info?.info?.step_11?.remarks}</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import useApplyDepartment from "~/utils/useApplyDepartment";
|
||||||
function List(props) {
|
function List(props) {
|
||||||
const [form] = Search.useForm();
|
const [form] = Search.useForm();
|
||||||
const query = useGetUrlQuery();
|
const query = useGetUrlQuery();
|
||||||
const { departmentTree } = useApplyDepartment(props, query);
|
const { departmentTree, serviceDepartmentData } = useApplyDepartment(props, query);
|
||||||
|
|
||||||
const [eightworkType, setEightworkType] = useState([]);
|
const [eightworkType, setEightworkType] = useState([]);
|
||||||
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
const [forceTerminationModalOpen, setForceTerminationModalOpen] = useState(false);
|
||||||
|
|
@ -78,14 +78,18 @@ function List(props) {
|
||||||
},
|
},
|
||||||
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
{ name: "eqXgfFlag", label: "作业类型", render: FORM_ITEM_RENDER_ENUM.SELECT, items: WORK_TYPE_ENUM },
|
||||||
{
|
{
|
||||||
name: "inDepartmentId",
|
name: "eqTenantId",
|
||||||
label: "申请单位",
|
label: "申请单位",
|
||||||
render: <BasicSelectTree treeData={departmentTree} multiple />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: departmentTree,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "todo",
|
name: "corpinfoId",
|
||||||
label: "服务单位",
|
label: "服务单位",
|
||||||
render: <DepartmentSelectTree searchType="inType" params={{ enterpriseType: [1, 2] }} />,
|
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||||
|
items: serviceDepartmentData,
|
||||||
|
itemsField: { labelKey: "corpName", valueKey: "id" },
|
||||||
hidden: !(props.entrance === "stakeholder"),
|
hidden: !(props.entrance === "stakeholder"),
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
|
|
@ -94,7 +98,7 @@ function List(props) {
|
||||||
/>
|
/>
|
||||||
<Table
|
<Table
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "服务单位", dataIndex: "todo", hidden: !(props.entrance === "stakeholder") },
|
{ title: "服务单位", dataIndex: "corpinfoName", hidden: !(props.entrance === "stakeholder") },
|
||||||
{ title: "编号", dataIndex: "checkNo" },
|
{ title: "编号", dataIndex: "checkNo" },
|
||||||
{
|
{
|
||||||
title: "作业类型",
|
title: "作业类型",
|
||||||
|
|
|
||||||
|
|
@ -141,45 +141,45 @@ function View(props) {
|
||||||
colSpan={2}
|
colSpan={2}
|
||||||
safetyRemarks={info?.info?.step_18?.remarks}
|
safetyRemarks={info?.info?.step_18?.remarks}
|
||||||
safetySignPath={info?.info?.step_18?.signPath}
|
safetySignPath={info?.info?.step_18?.signPath}
|
||||||
safetySignTime={info?.info?.step_18?.signTime}
|
safetySignTime={info?.info?.step_18?.status !== 0 && info?.info?.step_18?.signTime}
|
||||||
AcceptRemarks={info?.info?.step_19?.remarks}
|
AcceptRemarks={info?.info?.step_19?.remarks}
|
||||||
AcceptSignPath={info?.info?.step_19?.signPath}
|
AcceptSignPath={info?.info?.step_19?.signPath}
|
||||||
AcceptSignTime={info?.info?.step_19?.signTime}
|
AcceptSignTime={info?.info?.step_19?.status !== 0 && info?.info?.step_19?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="作业指挥负责人意见"
|
title="作业指挥负责人意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_21?.remarks}
|
remarks={info?.info?.step_21?.remarks}
|
||||||
signPath={info?.info?.step_21?.signPath}
|
signPath={info?.info?.step_21?.signPath}
|
||||||
signTime={info?.info?.step_21?.signTime}
|
signTime={info?.info?.step_21?.status !== 0 && info?.info?.step_21?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="所在单位意见"
|
title="所在单位意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_22?.remarks}
|
remarks={info?.info?.step_22?.remarks}
|
||||||
signPath={info?.info?.step_22?.signPath}
|
signPath={info?.info?.step_22?.signPath}
|
||||||
signTime={info?.info?.step_22?.signTime}
|
signTime={info?.info?.step_22?.status !== 0 && info?.info?.step_22?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="审核部门意见"
|
title="审核部门意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_23?.remarks}
|
remarks={info?.info?.step_23?.remarks}
|
||||||
signPath={info?.info?.step_23?.signPath}
|
signPath={info?.info?.step_23?.signPath}
|
||||||
signTime={info?.info?.step_23?.signTime}
|
signTime={info?.info?.step_23?.status !== 0 && info?.info?.step_23?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="审批部门意见"
|
title="审批部门意见"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_24?.remarks}
|
remarks={info?.info?.step_24?.remarks}
|
||||||
signPath={info?.info?.step_24?.signPath}
|
signPath={info?.info?.step_24?.signPath}
|
||||||
signTime={info?.info?.step_24?.signTime}
|
signTime={info?.info?.step_24?.status !== 0 && info?.info?.step_24?.signTime}
|
||||||
/>
|
/>
|
||||||
<OpinionSign
|
<OpinionSign
|
||||||
title="完工验收"
|
title="完工验收"
|
||||||
colSpan={4}
|
colSpan={4}
|
||||||
remarks={info?.info?.step_25?.remarks}
|
remarks={info?.info?.step_25?.remarks}
|
||||||
signPath={info?.info?.step_25?.signPath}
|
signPath={info?.info?.step_25?.signPath}
|
||||||
signTime={info?.info?.step_25?.signTime}
|
signTime={info?.info?.step_25?.status !== 0 && info?.info?.step_25?.signTime}
|
||||||
/>
|
/>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ function List(props) {
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
props.history.push(`./recordsList?corpinfoId=${record.id}&headerTitle=申请总数`);
|
props.history.push(`./recordsList?corpinfoId=${record.id}&headerTitle=申请总数&corpName=${record.corpName}`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{(record.doneCount + record.rejectedCount + record.doingCount + record.forceTerminateCount) || 0}
|
{(record.doneCount + record.rejectedCount + record.doingCount + record.forceTerminateCount) || 0}
|
||||||
|
|
@ -68,7 +68,7 @@ function List(props) {
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
props.history.push(`./recordsList?corpinfoId=${record.id}&status=999&headerTitle=完成数`);
|
props.history.push(`./recordsList?corpinfoId=${record.id}&status=999&headerTitle=完成数&corpName=${record.corpName}`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{record.doneCount || 0}
|
{record.doneCount || 0}
|
||||||
|
|
@ -82,7 +82,7 @@ function List(props) {
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
props.history.push(`./recordsList?corpinfoId=${record.id}&status=1&headerTitle=进行数`);
|
props.history.push(`./recordsList?corpinfoId=${record.id}&status=1&headerTitle=进行数&corpName=${record.corpName}`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{(record.doingCount) || 0}
|
{(record.doingCount) || 0}
|
||||||
|
|
@ -96,7 +96,7 @@ function List(props) {
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
props.history.push(`./recordsList?corpinfoId=${record.id}&status=2&headerTitle=打回数`);
|
props.history.push(`./recordsList?corpinfoId=${record.id}&status=2&headerTitle=打回数&corpName=${record.corpName}`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{(record.rejectedCount) || 0}
|
{(record.rejectedCount) || 0}
|
||||||
|
|
@ -110,7 +110,7 @@ function List(props) {
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
props.history.push(`./recordsList?corpinfoId=${record.id}&status=998&headerTitle=废除数`);
|
props.history.push(`./recordsList?corpinfoId=${record.id}&status=998&headerTitle=废除数&corpName=${record.corpName}`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{record.forceTerminateCount || 0}
|
{record.forceTerminateCount || 0}
|
||||||
|
|
|
||||||
|
|
@ -150,10 +150,10 @@ export const getFlowData = (list) => {
|
||||||
target: branchNodeId,
|
target: branchNodeId,
|
||||||
type: "smoothstep",
|
type: "smoothstep",
|
||||||
animated: true,
|
animated: true,
|
||||||
style: { stroke: "#c41a1a", strokeWidth: 3 },
|
style: { stroke: "#1890ff", strokeWidth: 3 },
|
||||||
markerEnd: {
|
markerEnd: {
|
||||||
type: "arrowclosed",
|
type: "arrowclosed",
|
||||||
color: "#c41a1a",
|
color: "#1890ff",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -167,10 +167,10 @@ export const getFlowData = (list) => {
|
||||||
target: branchNodeId,
|
target: branchNodeId,
|
||||||
type: "straight",
|
type: "straight",
|
||||||
animated: true,
|
animated: true,
|
||||||
style: { stroke: "#c41a1a", strokeWidth: 3 },
|
style: { stroke: "#1890ff", strokeWidth: 3 },
|
||||||
markerEnd: {
|
markerEnd: {
|
||||||
type: "arrowclosed",
|
type: "arrowclosed",
|
||||||
color: "#c41a1a",
|
color: "#1890ff",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -183,10 +183,10 @@ export const getFlowData = (list) => {
|
||||||
target: `node-${mergeIndex}`,
|
target: `node-${mergeIndex}`,
|
||||||
type: "straight",
|
type: "straight",
|
||||||
animated: true,
|
animated: true,
|
||||||
style: { stroke: "#c41a1a", strokeWidth: 3 },
|
style: { stroke: "#1890ff", strokeWidth: 3 },
|
||||||
markerEnd: {
|
markerEnd: {
|
||||||
type: "arrowclosed",
|
type: "arrowclosed",
|
||||||
color: "#c41a1a",
|
color: "#1890ff",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,51 @@
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||||
|
import useGetUserInfo from "zy-react-library/hooks/useGetUserInfo";
|
||||||
|
|
||||||
export default function useApplyDepartment(props, query) {
|
export default function useApplyDepartment(props) {
|
||||||
const [departmentTree, setDepartmentTree] = useState([]);
|
const [departmentTree, setDepartmentTree] = useState([]);
|
||||||
|
const [serviceDepartmentData, setServiceDepartmentData] = useState([]);
|
||||||
|
const { entrance } = props;
|
||||||
|
|
||||||
const getDepartmentTree = async () => {
|
const corpInfoListAll = props["corpInfoListAll"];
|
||||||
if (!props.entrance) {
|
const query = useGetUrlQuery();
|
||||||
const { data: currentDepartmentTree } = await props["departmentListTree"]();
|
|
||||||
const { data: stakeholderDepartmentTree } = await props["departmentListAllTreeByCorpType"]({ enterpriseType: [3] });
|
const { getUserInfo } = useGetUserInfo();
|
||||||
setDepartmentTree([...currentDepartmentTree, ...stakeholderDepartmentTree]);
|
|
||||||
}
|
|
||||||
else if (props.entrance === "stakeholder") {
|
|
||||||
const { data: currentDepartmentTree } = await props["departmentListTree"]();
|
|
||||||
setDepartmentTree(currentDepartmentTree);
|
|
||||||
}
|
|
||||||
else if (props.entrance === "supervision") {
|
|
||||||
const { data: currentDepartmentTree } = await props["departmentListTree"]({ eqCorpinfoId: query.corpinfoId });
|
|
||||||
setDepartmentTree(currentDepartmentTree);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getDepartmentTree();
|
const getInfoData = async () => {
|
||||||
|
const corpData = await getUserInfo();
|
||||||
|
const currentDepartment = { corpName: corpData.corpinfoName, id: corpData.corpinfoId };
|
||||||
|
|
||||||
|
if (entrance === "stakeholder") {
|
||||||
|
const { data = [] } = await corpInfoListAll({ inType: [0, 1] });
|
||||||
|
setServiceDepartmentData(data);
|
||||||
|
setDepartmentTree([currentDepartment, ...data]);
|
||||||
|
}
|
||||||
|
else if (
|
||||||
|
!entrance
|
||||||
|
) {
|
||||||
|
const [{ data: departmentTreeData = [] }, { data: departmentData = [] }] = await Promise.all([
|
||||||
|
corpInfoListAll({ inType: [3, 4, 5] }),
|
||||||
|
corpInfoListAll({ inType: [0, 1] }),
|
||||||
|
]);
|
||||||
|
|
||||||
|
setServiceDepartmentData(departmentData);
|
||||||
|
setDepartmentTree([currentDepartment, ...departmentTreeData]);
|
||||||
|
}
|
||||||
|
else if (entrance === "supervision") {
|
||||||
|
const [{ data: departmentTreeData = [] }, { data: departmentData = [] }] = await Promise.all([
|
||||||
|
corpInfoListAll({ inType: [3, 4, 5] }),
|
||||||
|
corpInfoListAll({ inType: [0, 1] }),
|
||||||
|
]);
|
||||||
|
|
||||||
|
setServiceDepartmentData(departmentData);
|
||||||
|
setDepartmentTree([{ corpName: query.corpName, id: query.corpinfoId }, ...departmentTreeData]);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
getInfoData();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return { departmentTree };
|
return { departmentTree, serviceDepartmentData };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue