2023-11-07 10:24:08 +08:00
|
|
|
import {post, upload, uploads} from "../utils/request";
|
2024-07-11 18:04:46 +08:00
|
|
|
import {setSecurityMeasures} from "@/utils/submitHomeworkProcess";
|
2023-11-07 10:24:08 +08:00
|
|
|
|
|
|
|
export const submitLogin = (params) => post("/app/admin/check", params) // 登录
|
|
|
|
export const getIDCardDeduplication = (params) => post("/app/user/hasCardIdForApp", params) // 身份证去重
|
|
|
|
export const getUserDeduplication = (params) => post("/app/user/hasUserNameForApp", params) // 用户名去重
|
|
|
|
export const getPhoneNumberDeduplication = (params) => post("/app/user/hasPhoneForApp", params) // 手机号去重
|
|
|
|
export const setRegister = (params) => post("/app/admin/register", params) // 注册
|
|
|
|
export const setForgotPassword = (params) => post("/app/admin/forgetPassword", params) // 忘记密码
|
|
|
|
export const getElectronicWorkCard = (params) => post("/app/user/getUserDetailInfoByUserIdForApp", params) // 电子工牌
|
|
|
|
export const getElectronicWorkCardQRCode = (params) => post("/app/user/generateQRCodeImageByUserId", params) // 电子工牌二维码
|
|
|
|
export const getEmployedBy = (params) => post("/app/employmentApplyManagement/getEmploymentRecordByUserIdOrCorpInfoId", params) // 就职单位列表
|
|
|
|
export const setResignationApplication = (params) => post("/app/employmentApplyManagement/edit", params) // 离职申请
|
|
|
|
export const setRelatedPartyScanning = (params) => post("/app/user/updateUserInfoAfterScanQRCode", params) // 相关方扫码
|
|
|
|
export const getDataDictionary = (params) => post("/app/dictionaries/getLevels", params) // 数据字典
|
|
|
|
export const setUploadAttachments = (params) => upload("/app/imgFiles/addSingleImg", params) // 上传附件
|
|
|
|
export const removeUploadAttachments = (params) => post("/app/imgFiles/deleteImg", params) // 删除附件
|
|
|
|
export const setRelatedPartyRegistration = (params) => post("/app/user/saveUser", params) // 相关方注册
|
|
|
|
export const setRelatedPartyUpdate = (params) => post("/app/user/editUser", params) // 相关方修改
|
|
|
|
export const checkRelatedUnitsPersonCount = (params) => post("/app/user/checkUserCountForApp", params) // 检查相关方单位流动人员数和单位总人数
|
|
|
|
export const getServiceUnitList = (params) => post("/app/user/getRelatedUnitsListByUserId", params) // 服务单位列表
|
|
|
|
export const getServiceUnitView = (params) => post("/app/user/getRelatedUnitsDetailById", params) // 服务单位查看
|
|
|
|
export const setFeedbackUpload = (params) => upload("/app/feedback/upload", params) //反馈问题附件
|
|
|
|
export const setFeedbackAdd = (params) => post("/app/feedback/add", params) //反馈问题提交
|
|
|
|
export const getVersion = (params) => post("/app/versionmanager/getVersion", params) //版本更新
|
|
|
|
export const setUpdatePassword = (params) => post("/app/user/editUserPasswordByUserId", params) //修改密码
|
|
|
|
export const getUserInfo = (params) => post("/app/user/getDetailByUserIdAndCorpInfoId", params) //用户信息
|
|
|
|
export const setUserInfo = (params) => post("/app/user/edit", params) //修改用户信息
|
|
|
|
export const getCertificateInformationList = (params) => post("/app/specialUser/list", params) //证书信息列表
|
|
|
|
export const getCertificateInformationView = (params) => post("/app/specialUser/goEdit", params) //证书信息查看
|
|
|
|
export const setCertificateInformationAdd = (params) => upload("/app/specialUser/add", params) //证书信息添加
|
|
|
|
export const setCertificateInformationEdit = (params) => upload("/app/specialUser/edit", params) //证书信息修改
|
|
|
|
export const setCertificateInformationEditPost = (params) => post("/app/specialUser/edit", params) //证书信息修改
|
|
|
|
export const getDeptTree = (params) => post("/api/department/listzTree", params) //用户信息
|
2024-06-25 18:01:18 +08:00
|
|
|
export const getEMPLOYMENTAPPLYMANAGEMENTID = (params) => post("/app/user/getEMPLOYMENTAPPLYMANAGEMENTID",
|
|
|
|
params) //获取EMPLOYMENTAPPLYMANAGEMENTID
|
2024-07-04 17:57:31 +08:00
|
|
|
|
|
|
|
// 以下接口八项作业流程使用
|
|
|
|
export const getCorpInfoList = (params) => post("/app/util/getCorp", params) //获取公司列表
|
2024-07-11 18:04:46 +08:00
|
|
|
export const getConfinedSpaceSelectList = (params) => post("/app/eightWork/getSpace", params) //获取受限空间名称选择列表
|
|
|
|
export const getConfinedSpaceGasInfo = (params) => post("/app/eightWork/getGasInfo",params) //获取受限空间气体检测详情
|
|
|
|
export const setConfinedSpaceGasInfoSave = (params) => post("/app/eightWork/initGas", params) //受限空间气体检测详情保存
|
|
|
|
export const setConfinedSpaceGasDelete = (params) => post("/app/eightWork/deleteGas", params) //保存受限空间气体检测删除
|
2024-07-04 17:57:31 +08:00
|
|
|
export const getOtherAssignmentsSelectList = (params) => post("/app/Task/getAllUnEndList", params) //关联的其他特殊作业及安全作业票编号选择列表
|
|
|
|
export const getRiskIdentificationResultsSelectList = (params) => post("/app/eightWork/getInfo", params) //风险辨识结果选择列表
|
2024-08-29 16:19:09 +08:00
|
|
|
export const getHotWorkMethodSelectList = (params) => post("/app/util/getDicList", params) // 动火方法选择列表
|
2024-07-04 17:57:31 +08:00
|
|
|
export const setTaskSave = (params) => post("/app/Task/init", params) //八项作业、隐患整改、安全环保检查任务保存更新接口
|
|
|
|
export const getCurrentNextOperation = (params) => post("/app/Task/getSupplementInfo", params) //获取当前任务的下一步操作
|
|
|
|
export const getDepartmentTree = (params) => post("/app/util/getDepartmentTree", params) //获取部门树
|
|
|
|
export const getUserList = (params) => post("/app/util/getUserList", params) //获取人员
|
2024-07-08 17:59:08 +08:00
|
|
|
export const getToDoTaskList = (params) => post("/app/Task/getAllList", params) //获取待办列表
|
2024-07-05 18:01:23 +08:00
|
|
|
export const getTaskTechnologicalProcess = (params) => post("/app/Task/getAgencyList", params) //获取流程
|
|
|
|
export const getTaskInfo = (params) => post("/app/Task/getInfo", params) //查看信息
|
2024-07-08 17:59:08 +08:00
|
|
|
export const setTaskFile = (params) => upload("/app/util/uploadFile", params) //上传文件
|
|
|
|
export const setTaskSign = (params) => post("/app/Task/sign", params) //审批意见签字提交
|
2024-07-11 18:04:46 +08:00
|
|
|
export const setSecurityMeasuresSave = (params) => post("/app/Task/setQues", params) //安全措施提交
|
|
|
|
export const setOtherSecurityMeasuresSave = (params) => post("/app/Task/setOtherQues", params) //其它安全措施提交
|
2024-07-04 17:57:31 +08:00
|
|
|
// 结束
|