添加站班会、安全巡检工单、安全日志、安全周报前端页面,以及修复部分后端逻辑

This commit is contained in:
lcj
2025-03-21 18:20:12 +08:00
parent 70175167ef
commit 4d2595e9ad
20 changed files with 2747 additions and 3 deletions

View File

@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { SafetyInspectionForm, SafetyInspectionQuery, SafetyInspectionVO } from '@/api/safety/safetyInspection/types';
/**
* 查询安全巡检工单列表
* @param query
* @returns {*}
*/
export const listSafetyInspection = (query?: SafetyInspectionQuery): AxiosPromise<SafetyInspectionVO[]> => {
return request({
url: '/safety/safetyInspection/list',
method: 'get',
params: query
});
};
/**
* 查询安全巡检工单详细
* @param id
*/
export const getSafetyInspection = (id: string | number): AxiosPromise<SafetyInspectionVO> => {
return request({
url: '/safety/safetyInspection/' + id,
method: 'get'
});
};
/**
* 新增安全巡检工单
* @param data
*/
export const addSafetyInspection = (data: SafetyInspectionForm) => {
return request({
url: '/safety/safetyInspection',
method: 'post',
data: data
});
};
/**
* 修改安全巡检工单
* @param data
*/
export const updateSafetyInspection = (data: SafetyInspectionForm) => {
return request({
url: '/safety/safetyInspection',
method: 'put',
data: data
});
};
/**
* 删除安全巡检工单
* @param id
*/
export const delSafetyInspection = (id: string | number | Array<string | number>) => {
return request({
url: '/safety/safetyInspection/' + id,
method: 'delete'
});
};