隐患详情重新设计,检查计划重新设计成做题排查式

This commit is contained in:
王利强
2026-06-21 16:30:12 +08:00
parent 1fe87ec438
commit cc94d3e3e9
256 changed files with 12542 additions and 5956 deletions

View File

@@ -7,6 +7,15 @@ export function getCheckPlanList(params) {
data: params
});
}
// 获取检查计划详情-按任务(每天/每周/每月/每季度)
export function getPlanTableDetail(params) {
return requestAPI({
url: '/frontend/plan/tableDetail',
method: 'GET',
data: params
});
}
//进入巡检(获取第一个未完成的任务)
export function enterCheckPlan(oneTableId) {
return requestAPI({
@@ -14,6 +23,15 @@ export function enterCheckPlan(oneTableId) {
method: 'GET'
});
}
// 进入巡检(一次性获取全部任务)
export function getAllTask(oneTableId, taskDate) {
const date = String(taskDate || '').split(' ')[0];
return requestAPI({
url: `/frontend/task/getAllTask/${oneTableId}/${date}`,
method: 'GET'
});
}
//获取指定任务详情
export function getCheckTaskDetail(taskId) {
return requestAPI({
@@ -29,6 +47,14 @@ export function submitCheckResult(params) {
data: params
});
}
// 批量提交巡检结果
export function submitAllTask(data) {
return requestAPI({
url: '/frontend/task/submitAll',
method: 'POST',
data
});
}
//新增隐患
export function addHiddenDanger(params) {
return requestAPI({
@@ -71,7 +97,7 @@ export function getMyHiddenDangerList(params) {
data: params
});
}
//获取隐患详情
//获取隐患详情(小程序流程页:整改/验收等,支持 assignId
export function getHiddenDangerDetail(params) {
// 过滤掉 assignId 为 null、undefined、'null'、空字符串的情况
const filteredParams = { ...params };
@@ -84,6 +110,14 @@ export function getHiddenDangerDetail(params) {
data: filteredParams
});
}
// 获取隐患详情(详情页:完整历史流程)
export function getHazardDetail(hazardId) {
return requestAPI({
url: `/admin/hazard/detail/${hazardId}`,
method: 'GET'
});
}
//获取隐患排查列表
export function getHiddenDangerList(params) {
return requestAPI({
@@ -169,6 +203,22 @@ export function lockOrUnlockMember(params) {
data: params
});
}
// 获取添加成员表单选项(角色、岗位等)
export function getSystemUserFormOptions() {
return requestAPI({
url: '/system/user/',
method: 'GET',
loadingText: false
});
}
// 根据部门ID获取岗位列表
export function listPostByDeptId(deptId) {
return requestAPI({
url: `/system/post/listByDeptId/${deptId}`,
method: 'GET',
loadingText: false
});
}
//销号申请
//申请销号
export function applyDelete(params) {
@@ -245,6 +295,14 @@ export function getCheckTableDetail(params) {
});
}
// 获取检查表详情(排查验证用,新流程)
export function getOneTableInspectDetail(id) {
return requestAPI({
url: `/admin/oneTable/detail/${id}`,
method: 'GET'
});
}
// 获取企业类型下拉列表
export function getEnterprisetype() {