2、添加巡检明细接口
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
import type { TaskDetailVO, TaskDetailForm, TaskDetailQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询巡检明细列表
|
||||
* @param params
|
||||
* @returns 巡检明细列表
|
||||
*/
|
||||
export function taskDetailList(params?: TaskDetailQuery) {
|
||||
return requestClient.get<PageResult<TaskDetailVO>>('/property/taskDetail/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出巡检明细列表
|
||||
* @param params
|
||||
* @returns 巡检明细列表
|
||||
*/
|
||||
export function taskDetailExport(params?: TaskDetailQuery) {
|
||||
return commonExport('/property/taskDetail/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询巡检明细详情
|
||||
* @param id id
|
||||
* @returns 巡检明细详情
|
||||
*/
|
||||
export function taskDetailInfo(id: ID) {
|
||||
return requestClient.get<TaskDetailVO>(`/property/taskDetail/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增巡检明细
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function taskDetailAdd(data: TaskDetailForm) {
|
||||
return requestClient.postWithMsg<void>('/property/taskDetail', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新巡检明细
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function taskDetailUpdate(data: TaskDetailForm) {
|
||||
return requestClient.putWithMsg<void>('/property/taskDetail', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除巡检明细
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function taskDetailRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/taskDetail/${id}`);
|
||||
}
|
201
apps/web-antd/src/api/property/inspectionManagement/inspectionDetail/model.d.ts
vendored
Normal file
201
apps/web-antd/src/api/property/inspectionManagement/inspectionDetail/model.d.ts
vendored
Normal file
@@ -0,0 +1,201 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface TaskDetailVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
taskId: string | number;
|
||||
|
||||
/**
|
||||
* 路线id
|
||||
*/
|
||||
routeId: string | number;
|
||||
|
||||
/**
|
||||
* 巡检计划id
|
||||
*/
|
||||
planId: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点id
|
||||
*/
|
||||
pointId: string | number;
|
||||
|
||||
/**
|
||||
* 巡检方式
|
||||
*/
|
||||
patrolType: string;
|
||||
|
||||
/**
|
||||
* 签到类型
|
||||
*/
|
||||
signType: string;
|
||||
|
||||
/**
|
||||
* 巡检状态(0未完成,1已完成)
|
||||
*/
|
||||
inspectionState: string;
|
||||
|
||||
/**
|
||||
* 巡检照片
|
||||
*/
|
||||
inspectionImag
|
||||
e: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
inspectionTime: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 点开始时间
|
||||
*/
|
||||
pointStartTime: string;
|
||||
|
||||
/**
|
||||
* 点结束时间
|
||||
*/
|
||||
pointEndTime: string;
|
||||
|
||||
}
|
||||
|
||||
export interface TaskDetailForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
taskId?: string | number;
|
||||
|
||||
/**
|
||||
* 路线id
|
||||
*/
|
||||
routeId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检计划id
|
||||
*/
|
||||
planId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点id
|
||||
*/
|
||||
pointId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检方式
|
||||
*/
|
||||
patrolType?: string;
|
||||
|
||||
/**
|
||||
* 签到类型
|
||||
*/
|
||||
signType?: string;
|
||||
|
||||
/**
|
||||
* 巡检状态(0未完成,1已完成)
|
||||
*/
|
||||
inspectionState?: string;
|
||||
|
||||
/**
|
||||
* 巡检照片
|
||||
*/
|
||||
inspectionImage?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
inspectionTime?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 点开始时间
|
||||
*/
|
||||
pointStartTime?: string;
|
||||
|
||||
/**
|
||||
* 点结束时间
|
||||
*/
|
||||
pointEndTime?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface TaskDetailQuery extends PageQuery {
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
taskId?: string | number;
|
||||
|
||||
/**
|
||||
* 路线id
|
||||
*/
|
||||
routeId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检计划id
|
||||
*/
|
||||
planId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点id
|
||||
*/
|
||||
pointId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检方式
|
||||
*/
|
||||
patrolType?: string;
|
||||
|
||||
/**
|
||||
* 签到类型
|
||||
*/
|
||||
signType?: string;
|
||||
|
||||
/**
|
||||
* 巡检状态(0未完成,1已完成)
|
||||
*/
|
||||
inspectionState?: string;
|
||||
|
||||
/**
|
||||
* 巡检照片
|
||||
*/
|
||||
inspectionImag
|
||||
e?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
inspectionTime?: string;
|
||||
|
||||
/**
|
||||
* 点开始时间
|
||||
*/
|
||||
pointStartTime?: string;
|
||||
|
||||
/**
|
||||
* 点结束时间
|
||||
*/
|
||||
pointEndTime?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user