import { request } from '@/utils/http' /** * 检查结果列表 * * @returns */ export const getsafety_hazardInfo = async (data: any) => { return await request.http({ url: '/safety_hazard/table/list', // isPost: false, isPost: '1', data: data }) } /** * 问卷列表 * * @returns */ export const getsafety_hazardwjlist = async (data: any) => { return await request.http({ url: '/safety_hazard/questionnaire/list', // isPost: false, isPost: '1', data: data }) } /** * 项目编号查单位 * * @returns */ export const getxmdwdefaultconditionlist = async (data: any) => { return await request.http({ url: '/safety_hazard/table/list/defaultcondition', // isPost: false, isPost: '1', data: data }) } /** * 标准库检查表 * * @returns */ export const getchecktablelist = async (data: any) => { return await request.http({ url: '/safety_hazard/standard/checktable/list/edit', // isPost: false, isPost: '1', data: data }) } /** * 获取建筑物 * * @returns */ export const getbuildinglist = async (data: any) => { return await request.http({ url: '/safety_hazard/building/list', // isPost: false, isPost: '1', data: data }) } /** * 新增检查点 * @returns */ export const addsafety_hazard = async (data: any) => { return await request.http({ url: '/safety_hazard/table', data: data, // isPost: true, isPost: '0' }) } /** *修改检查点 * @returns */ export const upsafety_hazard = async (data: any) => { return await request.http({ url: '/safety_hazard/table', data: data, // isPost: true, isPost: '2' }) } /** *删除检查点 * @returns */ export const delsafety_hazard = async (checkTableId: any) => { return await request.http({ url: '/safety_hazard/table', data: checkTableId, // isPost: true, isPost: '3' }) } /** *查检查点详情 * @returns */ export const getcheckTableIdinfo = async (checkTableId: any) => { return await request.http({ url: '/safety_hazard/table/' + checkTableId, // isPost: false, isPost: '1' }) } /** *查检查点变更看历史 * @returns */ export const getloginfo = async (checkTableId: any) => { return await request.http({ url: '/safety_hazard/log/list/' + checkTableId, // isPost: false, isPost: '1' }) } /** *树 * @returns */ export const getcheckTableIdtree = async () => { return await request.http({ url: '/safety_hazard/standard/checktable/tree', // isPost: false, isPost: '1' }) } /** *项目-web根据合同id查询执行中和已完结的项目-不分页 * @returns */ export const getexecutionprojectlist = async (contractId: any) => { return await request.http({ url: '/safety_hazard/execution/project/list/pad/' + contractId, // isPost: false, isPost: '1' }) } /** *保存当前某端使用的项目 safety_hazard:project:list * @returns */ export const setprojectcurrent = async (projectId: any) => { return await request.http({ // url: `/safety_hazard/execution/project/current/${appType}/${projectId}`, // isPost: false, url: `/safety_hazard/execution/project/current/1/${projectId}`, isPost: '0' }) } /** * 保存当前某端使用的合同 safety_hazard:contract:list * @returns */ export const setcontractcurrent = async (contractId: any) => { return await request.http({ // url: `/safety_hazard/execution/contract/current/${appType}/${contractId}`, url: `/safety_hazard/execution/contract/current/1/${contractId}`, // isPost: false, isPost: '0' }) } /** *根据APP类型获取当前使用的项目(字典app_type ) safety_hazard:project:list * @returns */ export const getprojectcurrent = async () => { return await request.http({ //url: '/safety_hazard/execution/project/current/' + appType, // isPost: false, url: '/safety_hazard/execution/project/current/1', isPost: '1' }) } /** *根据APP类型获取当前使用的合同(字典app_type ) safety_hazard:contract:list * @returns */ export const getcontractcurrent = async () => { return await request.http({ // url: '/safety_hazard/execution/contract/current/' + appType, url: '/safety_hazard/execution/contract/current/1', // isPost: false, isPost: '1' }) }