预约记录
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
FLL
2025-07-10 17:31:58 +08:00
parent 2cd8d752eb
commit af0cfc3804
11 changed files with 1351 additions and 5 deletions

View File

@@ -0,0 +1,61 @@
import type { InspectionTaskVO, InspectionTaskForm, InspectionTaskQuery } 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 inspectionTaskList(params?: InspectionTaskQuery) {
return requestClient.get<PageResult<InspectionTaskVO>>('/property/inspectionTask/list', { params });
}
/**
* 导出巡检任务列表
* @param params
* @returns 巡检任务列表
*/
export function inspectionTaskExport(params?: InspectionTaskQuery) {
return commonExport('/property/inspectionTask/export', params ?? {});
}
/**
* 查询巡检任务详情
* @param id id
* @returns 巡检任务详情
*/
export function inspectionTaskInfo(id: ID) {
return requestClient.get<InspectionTaskVO>(`/property/inspectionTask/${id}`);
}
/**
* 新增巡检任务
* @param data
* @returns void
*/
export function inspectionTaskAdd(data: InspectionTaskForm) {
return requestClient.postWithMsg<void>('/property/inspectionTask', data);
}
/**
* 更新巡检任务
* @param data
* @returns void
*/
export function inspectionTaskUpdate(data: InspectionTaskForm) {
return requestClient.putWithMsg<void>('/property/inspectionTask', data);
}
/**
* 删除巡检任务
* @param id id
* @returns void
*/
export function inspectionTaskRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/inspectionTask/${id}`);
}

View File

@@ -0,0 +1,169 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface InspectionTaskVO {
/**
* 主键id
*/
id: string | number;
/**
* 巡检计划id
*/
inspectionPlanId: string | number;
/**
* 实际巡检时间
*/
actInsTime: string;
/**
* 当前巡检人
*/
actUserId: string | number;
/**
* 巡检方式
*/
taskType: string;
/**
* 转移描述
*/
transferDesc: string;
/**
* 巡检状态
*/
status: string;
/**
* 备注
*/
remark: string;
/**
* 创建人id
*/
createById: string | number;
/**
* 更新人id
*/
updateById: string | number;
/**
* 搜索值
*/
searchValue: string;
}
export interface InspectionTaskForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 巡检计划id
*/
inspectionPlanId?: string | number;
/**
* 实际巡检时间
*/
actInsTime?: string;
/**
* 当前巡检人
*/
actUserId?: string | number;
/**
* 巡检方式
*/
taskType?: string;
/**
* 转移描述
*/
transferDesc?: string;
/**
* 巡检状态
*/
status?: string;
/**
* 备注
*/
remark?: string;
/**
* 创建人id
*/
createById?: string | number;
/**
* 更新人id
*/
updateById?: string | number;
/**
* 搜索值
*/
searchValue?: string;
}
export interface InspectionTaskQuery extends PageQuery {
/**
* 巡检计划id
*/
inspectionPlanId?: string | number;
/**
* 实际巡检时间
*/
actInsTime?: string;
/**
* 当前巡检人
*/
actUserId?: string | number;
/**
* 巡检方式
*/
taskType?: string;
/**
* 转移描述
*/
transferDesc?: string;
/**
* 巡检状态
*/
status?: string;
/**
* 创建人id
*/
createById?: string | number;
/**
* 更新人id
*/
updateById?: string | number;
/**
* 搜索值
*/
searchValue?: string;
/**
* 日期范围参数
*/
params?: any;
}