预约记录
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 { InspectionPointVO, InspectionPointForm, InspectionPointQuery } 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 inspectionPointList(params?: InspectionPointQuery) {
return requestClient.get<PageResult<InspectionPointVO>>('/property/inspectionPoint/list', { params });
}
/**
* 导出巡检点列表
* @param params
* @returns 巡检点列表
*/
export function inspectionPointExport(params?: InspectionPointQuery) {
return commonExport('/property/inspectionPoint/export', params ?? {});
}
/**
* 查询巡检点详情
* @param id id
* @returns 巡检点详情
*/
export function inspectionPointInfo(id: ID) {
return requestClient.get<InspectionPointVO>(`/property/inspectionPoint/${id}`);
}
/**
* 新增巡检点
* @param data
* @returns void
*/
export function inspectionPointAdd(data: InspectionPointForm) {
return requestClient.postWithMsg<void>('/property/inspectionPoint', data);
}
/**
* 更新巡检点
* @param data
* @returns void
*/
export function inspectionPointUpdate(data: InspectionPointForm) {
return requestClient.putWithMsg<void>('/property/inspectionPoint', data);
}
/**
* 删除巡检点
* @param id id
* @returns void
*/
export function inspectionPointRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/inspectionPoint/${id}`);
}

View File

@@ -0,0 +1,139 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface InspectionPointVO {
/**
* 主键id
*/
id: string | number;
/**
* 巡检项目id
*/
itemId: string | number;
/**
* 巡检点名称
*/
pointName: string;
/**
* 巡检点类型
*/
pointType: number;
/**
* nfc编码
*/
nfcCode: string;
/**
* 备注
*/
remark: string;
/**
* 创建人id
*/
createById: string | number;
/**
* 更新人id
*/
updateById: string | number;
/**
* 搜索值
*/
searchValue: string;
}
export interface InspectionPointForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 巡检项目id
*/
itemId?: string | number;
/**
* 巡检点名称
*/
pointName?: string;
/**
* 巡检点类型
*/
pointType?: number;
/**
* nfc编码
*/
nfcCode?: string;
/**
* 备注
*/
remark?: string;
/**
* 创建人id
*/
createById?: string | number;
/**
* 更新人id
*/
updateById?: string | number;
/**
* 搜索值
*/
searchValue?: string;
}
export interface InspectionPointQuery extends PageQuery {
/**
* 巡检项目id
*/
itemId?: string | number;
/**
* 巡检点名称
*/
pointName?: string;
/**
* 巡检点类型
*/
pointType?: number;
/**
* nfc编码
*/
nfcCode?: string;
/**
* 创建人id
*/
createById?: string | number;
/**
* 更新人id
*/
updateById?: string | number;
/**
* 搜索值
*/
searchValue?: string;
/**
* 日期范围参数
*/
params?: any;
}

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;
}