hzyh_pad_app/src/apis/zhixing.ts

209 lines
4.2 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({
2025-11-09 10:40:43 +08:00
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',
2025-11-06 17:45:10 +08:00
// isPost: false,
isPost: '1'
})
}