qa-regulatory-gwj-app/api/index.js

111 lines
14 KiB
JavaScript
Raw Permalink Normal View History

2023-11-07 10:08:37 +08:00
import {post, upload, uploads} from "../utils/request";
export const submitLogin = (params) => post("/admin/check", params) // 登录
export const getHotWorkListByState = (params) => post("/app/hotworkapplication/list", params)//获取动火列表
export const getHotWorkGoEdit = (params) => post("/app/hotworkapplication/goEdit", params) //获取动火详情
export const getImgfilesListByKeyAndType = (params) => post("/app/imgfiles/listImgs", params) //获取附件表的信息
export const getDept = (params) => post("/app/sys/listTree", {loading: false, ...params}) //获取监管端的部门信息
export const getCorpDept = (params) => post("/app/corpDepartment/listTreeCorpDept", {loading: false, ...params}) //获取监管端的部门信息
export const getDeptUser = (params) => post("/AppUser/listAllManageAndCorp", {loading: false, ...params}) //获取监管端的部门的人员
export const getSafetyenvironmentalList = (params) => post("/app/safetyenvironmental/list", params) //获取安全环保检查列表
export const getSafetyenvironmentalCheckList = (params) => post("/app/safetyenvironmental/checkList", params) //获取安全环保检查列表(隐患指派及验收)
export const getpleadList = (params) => post("/app/safetyenvironmental/pleadList", params) //获取安全环保检查列表
export const getSafetyenvironmentalGoEdit = (params) => post("/app/safetyenvironmental/goEdit", params) //安全环保检查明细信息
export const setSafetyenvironmentalAdd = (params) => post("/app/safetyenvironmental/add", params) //新增安全环保检查
export const setSafetyenvironmentalAdd_plus = (params) => upload("/app/safetyenvironmental/add", params) //新增安全环保检查
export const setSafetyenvironmentalEdit = (params) => post("/app/safetyenvironmental/edit", params) //修改安全环保检查
export const setSafetyenvironmentalEdit_plus = (params) => upload("/app/safetyenvironmental/edit", params) //修改安全环保检查
export const setSafetyenvironmentalGoEdit = (params) => post("/app/safetyenvironmental/goEdit", params) //修改安全环保检查
export const getSafetyenvironmentalRedPoint = (params) => post("/app/safetyenvironmental/countCheck", params) //修改安全环保检查
export const setSafetyenvironmentalExplain = (params) => post("/app/safetyenvironmental/explain", params) //申辩
export const setSafetyenvironmentalFlow = (params) => post("/app/safetyenvironmental/showFlowChart", params) //申辩
export const setImgFilesAdd = (params) => uploads("/app/imgfiles/uploadFile", params) //上传图片
export const setImgFilesListAdd = (params) => uploads("/app/imgfiles/uploadFileList", params) //上传图片
export const setVideoAdd = (params) => upload("/app/imgfiles/add", params) //上传视频
export const setImgFilesAddVideo = (params) => uploads("/app/imgfiles/addVideo", params) //上传视频
export const getHiddenRegion = (params) => post("/app/hiddenRegion/gerRegionList", {loading: false, ...params}) //获取隐患部位
export const getInspectedDepartment = (params) => post("/app/corpDepartment/listTreeCorpDept", {loading: false, ...params}) //获取被检查部门
export const getInspectionDepartment = (params) => post("/app/corpDepartment/listTreeManageAndCorp", {loading: false, ...params}) //获取检查部门
export const getInspectors = (params) => post("/AppUser/listAllManageAndCorp", {loading: false, ...params}) //获取检查人员
export const getHiddenLevel = () => post("/app/dictionaries/listSelectTree", {loading: false, DICTIONARIES_ID: '5e7cf8620ba54ad89719d0be62133c7a'}) //获取隐患级别
export const getHiddenType = () => post("/app/dictionaries/listSelectTree", {loading: false, DICTIONARIES_ID: '3babc15144444bdc8d763d0af2bdfff6'}) //获取隐患类型
export const getInspectionType = () => post("/app/dictionaries/listSelectTree", {loading: false, DICTIONARIES_ID: '60e6481d96e44a5390ff5c347c4d1ffe'}) //获取检查类型
export const getSafetyenvironmentalinspectorList = (params) => post("/app/safetyenvironmentalinspector/list", params) //安全环保检查检查人确认列表
export const setSafetyenvironmentalVerify = (params) => upload("/app/safetyenvironmentalinspector/verify", params) //安全环保检查检查人确认
export const getCorpInfoList = (params) => post("/app/corpinfo/listRetrieval", params) //分公司信息列表
export const getCorpInfoGoEdit = (params) => post("/app/corpinfo/goMessage", params) //分公司信息查看
export const getCorpInfoPersonregistration = (params) => post("/AppUser/personregistration", params) //分公司信息查看入职从业人员登记
export const getCorpInfoLicenseList = (params) => post("/AppUser/licenseList", params) //分公司信息查看人员证照
export const getCorpInfoQualification = (params) => post("/app/qualifications/list", params) //分公司信息查看资质证照
export const getCorpInfoQualificationGoEdit = (params) => post("/app/qualifications/goEdit", params) //分公司信息查看资质证照查看
export const getCorpInfoLicenseListGoEdit = (params) => post("/AppUser/licenseList/goEdit", params) //分公司信息查看人员证照查看
export const getCorpInfoListRetrievalDepartment = (params) => post("/app/department/listTreeCorpInfo", params) //分公司部门管理列表查看
export const getCorpInfoListFindByCorpInfo = (params) => post("/AppUser/findByCorpInfo", params) //分公司人员管理列表查看
export const getCorpInfoListById = (params) => post("/AppUser/goEditCorpUser", params) //分公司人员管理列表查看
export const getBranchStatus = () => post("/app/dictionaries/getLevels", {loading: false, DICTIONARIES_ID: '07c2674470c1498ba1ebd74906b3b518'}) //获取分公司状态
export const getDepartmentLevel = () => post("/app/dictionaries/getLevels", {loading: false, DICTIONARIES_ID: '4a661fa8aedc4d158c9cddaa9d2ec47e'}) //获取部门级别
export const getCheckCycle = () => post("/app/dictionaries/getLevels", {loading: false, DICTIONARIES_ID: 'f60cf0e8315b4993b6d6049dd29f2ba5'}) //获取排查周期
export const getListType = () => post("/app/dictionaries/getLevels", {loading: false, DICTIONARIES_ID: '4a3d0d99b0ea4e268c11dd0b18866917'}) //获取清单类型
export const approveHotWorkSupervision = (params) => post("/app/hotworkapplication/editOpinion", params) //特级动火 安全监督部初审
export const approveHotWorkSupervisionAndFfile = (params) => upload("/app/hotworkapplication/editOpinion", params) //特级动火 安全监督部初审 增加签字附件
export const getInspectionReportCorpInfoList = (params) => post("/app/inspectionReport/corpinfo/list", params) //获取所有的分公司自查自报记录
export const getInspectionReportListManageList = (params) => post("/app/inspectionReport/listManage/list", params) //分公司的清单记录
export const getInspectionReportListManageRecordsList = (params) => post("/app/inspectionReport/listManage/records/list", params) //已检查信息与超期未检查记录
export const getInspectionReportListManageRecordsDetails = (params) => post("/app/inspectionReport/listManage/records/details", params) //检查记录详情
export const getIgnoreCountByCorpInfo = (params) => post("/app/hidden/getIgnoreCountByCorpinfo", params) //获取忽略隐患公司列表
export const getIgnoreHiddenList = (params) => post("/app/hidden/ignorelist", params) //获取忽略隐患列表
export const getHiddenGoEdit = (params) => post("/app/hidden/goEdit", params) //隐患详情
export const getCorpInfoRiskStatistics = (params) => post("/app/corpinfo/risk/statistics", params) //获取企业风险管理列表
export const getRiskUnitList = (params) => post("/app/riskunit/list", params) //获取公司风险点列表
export const getRiskUnitCustomizedList = (params) => post("/app/riskunit/customizedList", params) //获取公司风险点列表
export const getGeneralCountByCorpInfo = (params) => post("/app/hidden/hidden/list", params) //获取一般隐患公司列表
export const getGeneralHiddenList = (params) => post("/app/hidden/generalHiddenList", params) //获取一般隐患列表
export const getSpecialCountByCorpInfo = (params) => post("/app/hidden/speciallist", params) //获取特殊隐患列表
export const getSpecialHiddenList = (params) => post("/app/hidden/specialByCorpInfoId", params) //获取特殊隐患列表
export const getRiskFourColorMapList = (params) => post("/app/riskwarning/list", params) //获取风险四色图列表
export const getMajorCountByCorpInfo = (params) => post("/app/corpinfo/corpinfoList", params) //获取重大/较大隐患公司列表
export const getMajorHiddenList = (params) => post("/app/hidden/majorhiddenList", params) //获取重大/较大隐患列表
export const getMoreHiddenList = (params) => post("/app/hidden/morehiddenList", params) //较大隐患列表
export const getVersion = (params) => post("/app/versionmanagerReg/getVersion", params) //版本更新
export const setFeedbackUpload = (params) => upload("/app/feedback/upload", params) //反馈问题附件
export const setFeedbackAdd = (params) => post("/app/feedback/add", params) //反馈问题提交
export const setUpdatePassword = (params) => post("/app/user/editUserPwd", params) //修改密码
export const getAnnouncementNoticeList = (params) => post("/app/noticeregulatory/list", params) //公告通知列表
export const getPlatformReminderList = (params) => post("/app/service/notice/list", params) //平台提醒列表
export const getAnnouncementNoticeDetail = (params) => post("/app/noticeregulatory/goEdit", params) //公告通知详情
export const editAnnouncementNoticeUser = (params) => post("/app/noticeregulatory/editType", params) //公告通知详情
export const getPlatformReminderDetail = (params) => post("/app/service/notice/goEdit", params) //平台提醒详情
export const getHotWorkRedPoint = (params) => post("/app/hotworkapplication/getRedPoint", params) //特级动火 查询各步骤待办数
export const getListForSafetyEnvironmental = (params) => post("/app/hidden/listForSafetyEnvironmental", params) //获取安全环保检查验收隐患列表
export const setFinalCheck = (params) => post("/app/hidden/finalcheck", params) //提交安全环保检查验收
export const getCorpinfoDeptListTree = (params) => post("/app/corpDepartment/listTree", params) //获取企业的 部门信息
export const getSafetyenvironmentalExplain = (params) => post("/app/safetyenvironmental/getExplain", params) //获取安全环保检查申辩流程列表
export const getKeyProjectsListOutsourced = (params) => post("/app/keyProjects/listOutsourced", params) //获取重点工程管理被检查项目列表
export const getKeyProjectsListListByCorp = (params) => post("/api/outsourced/listByCorp", params) //获取重点工程管理按照公司分组
2023-11-07 10:08:37 +08:00
export const getKeyProjectsCheckList = (params) => post("/app/keyprojectcheck/list", params) //获取重点工程管理被检查项目检查列表
export const getKeyProjectsListAllUnits = (params) => post("/app/keyProjects/listAllUnits", params) //获取重点工程管理被检查项目检查被检查单位
export const getKeyProjectsListAllPersonnel = (params) => post("/app/keyProjects/listAllPersonnel", params) //获取重点工程管理被检查项目检查被检查人
export const setKeyProjectsCheckAdd = (params) => post("/app/keyprojectcheck/add", params) //获取重点工程管理被检查项目添加
export const getKeyProjectsCheckView = (params) => post("/app/keyprojectcheck/goEdit", params) //获取重点工程管理被检查项目查看
export const getKeyProjectsCheckHiddenList = (params) => post("/app/keyprojectcheck/listHidden", params) //获取重点工程管理隐患管理列表
export const getKeyProjectsCheckHiddenView = (params) => post("/app/keyprojectcheck/findHidden", params); // 获取隐患管理详情
export const getKeyProjectsCheckCheck = (params) => post("/app/keyprojectcheck/check", params); // 获取隐患管理验收
export const getKeyProjectsPunishAdd = (params) => post("/app/keyprojectpunish/add", params); // 获取隐患管理处罚
export const setKeyProjectsPunishList = (params) => post("/app/keyprojectpunish/list", params); // 获取处罚管理列表
export const getKeyProjectsPunishList = (params) => post("/app/keyprojectpunish/punishlist", params); // 获取处罚管理列表新 2023-11-06
export const setKeyProjectsPunishView = (params) => post("/app/keyprojectpunish/goEdit", params); // 获取处罚管理详情
export const getKeyProjectsAIWarningList = (params) => post("/app/aiwarning/list", params); // 获取AI报警列表
export const getKeyProjectsAIWarningView = (params) => post("/app/aiwarning/goEdit", params); // 获取AI报警详情
export const setKeyProjectsAIWarningAdd = (params) => post("/app/aiwarning/edit", params); // AI报警保存
export const getkeyprojectcount = (params) => post("/app/keyprojectcheck/keyProjectCount", params); // 重点工程统计
export const getPromiseUnsigned = (params) => post("/app/corppromise/ISSIGN", params); // 获取是否有需要签字的承诺书
export const getPromiseInfo = (params) => post("/app/corppromise/promise", params); // 获取需要签字的承诺书信息
export const setPromiseSign = (params) => upload("/app/corppromise/editpeople", params); // 承诺书提交签字
2024-04-12 15:34:51 +08:00
export const getMyPromiseList = (params) => post("/app/corppromise/promiseV2list", params); // 获取我的承诺列表
export const getReceivePromiseList = (params) => post("/app/corppromise/receiveV2PromiseList", params); // 获取接收承诺列表
2023-11-07 10:08:37 +08:00
export const getPromiseView = (params) => post("/app/corppromise/goEdit", params); // 查看承诺书
export const setPromiseIsRead = (params) => post("/app/corppromise/editIsRead", params); // 承诺书设置阅读状态
export const editHiddenIspunish = (params) => post("/app/keyprojectcheck/editHiddenIspunish", params); // 修改隐患信息
2024-04-12 15:34:51 +08:00
export const getPERSONNELMANAGEMENTID = (params) => post("/app/keyProjects/goEdit", params); // 重点工程默认回显负责人