巡检记录,巡检路线,巡检点完成,巡检项目完成

This commit is contained in:
Zy
2026-04-21 10:20:15 +08:00
parent 35cf75f377
commit df20099dfd
9 changed files with 227 additions and 68 deletions

View File

@@ -45,12 +45,23 @@ export const addItem = (data: ItemForm) => {
*/
export const updateItem = (data: ItemForm) => {
return request({
url: '/inspection/item',
method: 'put',
url: '/inspection/item/updateItem',
method: 'PUT',
data: data
});
};
/**
* 修改巡检项目 状态
* @param data
*/
export const updateItemStatus = (data: { id: string; status: string }) => {
return request({
url: `/inspection/item/changeStatus?id=${data.id}&status=${data.status}`,
method: 'PUT'
});
};
/**
* 删除巡检项目
* @param id

View File

@@ -52,7 +52,7 @@ export interface ItemVO {
/**
* 状态0-开启1-关闭
*/
status: number;
status: string;
/**
* 备注
@@ -114,7 +114,7 @@ export interface ItemForm extends BaseEntity {
/**
* 状态0-开启1-关闭
*/
status?: number;
status?: string;
/**
* 备注
@@ -171,7 +171,7 @@ export interface ItemQuery extends PageQuery {
/**
* 状态0-开启1-关闭
*/
status?: number;
status?: string;
/**
* 日期范围参数