145 lines
2.5 KiB
TypeScript
145 lines
2.5 KiB
TypeScript
|
|
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'
|
||
|
|
})
|
||
|
|
}
|