2024-08-15 16:11:23 +08:00
|
|
|
import { post, upload, uploads } from "../../utils/request";
|
|
|
|
|
|
|
|
/** 获取监管端的部门的人员 */
|
2024-09-04 16:48:26 +08:00
|
|
|
export const getDeptUser = (params) => post("/app/user/listAll", {loading: false, ...params});
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 获取隐患级别 */
|
2024-09-04 16:48:26 +08:00
|
|
|
export const getHiddenLevel = () => post("/app/dictionaries", {loading: false, DICTIONARIES_ID: '5e7cf8620ba54ad89719d0be62133c7a'});
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 获取隐患部位 */
|
2024-09-02 11:57:02 +08:00
|
|
|
export const getHiddenRegion = (params) =>
|
|
|
|
post("/app/hiddenRegion/gerRegionList", { loading: false, ...params });
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 获取隐患类型 */
|
2024-09-04 16:48:26 +08:00
|
|
|
export const getHiddenType = () => post("/app/dictionaries", {loading: false, DICTIONARIES_ID: '3babc15144444bdc8d763d0af2bdfff6'});
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 获取被检查部门 */
|
2024-09-04 16:48:26 +08:00
|
|
|
export const getInspectedDepartment = (params) => post("/app/corpDepartment/listzTree", {loading: false, CORPINFO_ID: params});
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 获取检查部门 */
|
2024-09-04 16:48:26 +08:00
|
|
|
export const getInspectionDepartment = (params) => post("/app/corpDepartment/listzTree", {loading: false, CORPINFO_ID: params});
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 获取检查类型 */
|
2024-09-02 11:57:02 +08:00
|
|
|
export const getInspectionType = () =>
|
|
|
|
post("/app/dictionaries/listSelectTree", {
|
|
|
|
loading: false,
|
|
|
|
DICTIONARIES_ID: "60e6481d96e44a5390ff5c347c4d1ffe",
|
|
|
|
});
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 获取检查人员 */
|
2024-09-04 16:48:26 +08:00
|
|
|
export const getInspectors = (params) => post("/app/user/listAll", {loading: false, ...params});
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 安全环保检查明细信息 */
|
2024-09-04 16:48:26 +08:00
|
|
|
export const getSafetyenvironmentalGoEdit = (params) => post("/app/safetyenvironmental/goShow", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 上传图片 */
|
2024-09-02 11:57:02 +08:00
|
|
|
export const setImgFilesAdd = (params) =>
|
|
|
|
uploads("/app/imgfiles/uploadFile", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 新增安全环保检查 */
|
2024-09-02 11:57:02 +08:00
|
|
|
export const setSafetyenvironmentalAdd = (params) =>
|
|
|
|
post("/app/safetyenvironmental/add", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 安全环保检查检查人确认 */
|
2024-09-04 16:48:26 +08:00
|
|
|
export const setSafetyenvironmentalVerify = (params) => upload("/app/safetyenvironmental/verify", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 新增安全环保检查 - plus */
|
2024-09-02 11:57:02 +08:00
|
|
|
export const setSafetyenvironmentalAdd_plus = (params) =>
|
|
|
|
upload("/app/safetyenvironmental/add", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 修改安全环保检查 */
|
2024-09-02 11:57:02 +08:00
|
|
|
export const setSafetyenvironmentalEdit = (params) =>
|
|
|
|
post("/app/safetyenvironmental/edit", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 获取安全环保检查列表(隐患指派及验收) */
|
2024-09-02 11:57:02 +08:00
|
|
|
export const getSafetyenvironmentalCheckList = (params) =>
|
|
|
|
post("/app/safetyenvironmental/checkList", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 修改安全环保检查 */
|
2024-09-02 11:57:02 +08:00
|
|
|
export const setSafetyenvironmentalGoEdit = (params) =>
|
|
|
|
post("/app/safetyenvironmental/goEdit", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 申辩 */
|
2024-09-02 11:57:02 +08:00
|
|
|
export const setSafetyenvironmentalExplain = (params) =>
|
2024-09-05 11:16:13 +08:00
|
|
|
post("/app/safetyenvironmental/checkverify", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 设置安全环境流程 */
|
2024-09-04 16:48:26 +08:00
|
|
|
export const setSafetyenvironmentalFlow = (params) => post("/app/safetyenvironmental/getFlow", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 修改安全环保检查 - plus */
|
2024-09-02 11:57:02 +08:00
|
|
|
export const setSafetyenvironmentalEdit_plus = (params) =>
|
|
|
|
upload("/app/safetyenvironmental/edit", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 获取安全环保检查验收隐患列表 */
|
2024-09-02 11:57:02 +08:00
|
|
|
export const getListForSafetyEnvironmental = (params) =>
|
|
|
|
post("/app/hidden/listForSafetyEnvironmental", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 上传视频 */
|
|
|
|
export const setVideoAdd = (params) => upload("/app/imgfiles/add", params);
|
|
|
|
|
|
|
|
/** 获取安全环保检查列表 */
|
2024-09-02 11:57:02 +08:00
|
|
|
export const getSafetyenvironmentalList = (params) =>
|
|
|
|
post("/app/safetyenvironmental/list", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
2024-09-04 16:48:26 +08:00
|
|
|
/** 获取安全环保检查申辩记录列表 */
|
|
|
|
export const getpleadList = (params) => post("/app/safetyenvironmental/pleadList", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 获取安全环保检查申辩流程列表 */
|
2024-09-02 11:57:02 +08:00
|
|
|
export const getSafetyenvironmentalExplain = (params) =>
|
|
|
|
post("/app/safetyenvironmental/getExplain", params);
|
2024-08-15 16:11:23 +08:00
|
|
|
|
|
|
|
/** 隐患详情 */
|
|
|
|
export const getHiddenGoEdit = (params) => post("/app/hidden/goEdit", params);
|
|
|
|
|
|
|
|
/** 提交安全环保检查验收 */
|
|
|
|
export const setFinalCheck = (params) => post("/app/hidden/finalcheck", params);
|
|
|
|
|
|
|
|
/** 安全环保检查检查人确认列表 */
|
2024-09-04 16:48:26 +08:00
|
|
|
export const getSafetyenvironmentalinspectorList = (params) => post("/app/safetyenvironmental/prosecutors/list", params);
|
2024-09-02 11:57:02 +08:00
|
|
|
|
|
|
|
/** 获取被检查人签字/申辩列表 */
|
|
|
|
export const getInspectedList = (params) =>
|
|
|
|
post(
|
2024-09-04 16:48:26 +08:00
|
|
|
`/app/safetyenvironmental/list?showCount=${params.showCount}¤tPage=${params.currentPage}`
|
2024-09-02 11:57:02 +08:00
|
|
|
);
|
2024-09-03 15:37:46 +08:00
|
|
|
|
|
|
|
/** 获取被检查人签字/申辩确认前的详情记录 */
|
|
|
|
export const getInspectedItemGoShow = (params) => post("/app/safetyenvironmental/goShow", params);
|