hzyh_pad_app/src/apis/zhixing.ts

156 lines
2.8 KiB
TypeScript
Raw Normal View History

2025-10-20 16:58:26 +08:00
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'
})
}
2025-11-06 17:45:10 +08:00
/**
*-web根据合同id查询执行中和已完结的项目-
* @returns
*/
export const getexecutionprojectlist = async (contractId: any) => {
return await request.http({
url: '/safety_hazard/execution/project/list/web/' + contractId,
// isPost: false,
isPost: '1'
})
}