This commit is contained in:
@@ -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}`);
|
||||
}
|
139
apps/web-antd/src/api/property/inspectionManagement/inspectionPoint/model.d.ts
vendored
Normal file
139
apps/web-antd/src/api/property/inspectionManagement/inspectionPoint/model.d.ts
vendored
Normal 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;
|
||||
}
|
@@ -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}`);
|
||||
}
|
169
apps/web-antd/src/api/property/inspectionManagement/inspectionTask/model.d.ts
vendored
Normal file
169
apps/web-antd/src/api/property/inspectionManagement/inspectionTask/model.d.ts
vendored
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user