This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
import type { InspectionPlanVO, InspectionPlanForm, InspectionPlanQuery } 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 inspectionPlanList(params?: InspectionPlanQuery) {
|
||||
return requestClient.get<PageResult<InspectionPlanVO>>('/property/inspectionPlan/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出巡检计划列表
|
||||
* @param params
|
||||
* @returns 巡检计划列表
|
||||
*/
|
||||
export function inspectionPlanExport(params?: InspectionPlanQuery) {
|
||||
return commonExport('/property/inspectionPlan/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询巡检计划详情
|
||||
* @param id id
|
||||
* @returns 巡检计划详情
|
||||
*/
|
||||
export function inspectionPlanInfo(id: ID) {
|
||||
return requestClient.get<InspectionPlanVO>(`/property/inspectionPlan/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增巡检计划
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function inspectionPlanAdd(data: InspectionPlanForm) {
|
||||
return requestClient.postWithMsg<void>('/property/inspectionPlan', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新巡检计划
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function inspectionPlanUpdate(data: InspectionPlanForm) {
|
||||
return requestClient.putWithMsg<void>('/property/inspectionPlan', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除巡检计划
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function inspectionPlanRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/inspectionPlan/${id}`);
|
||||
}
|
199
apps/web-antd/src/api/property/inspectionManagement/inspectionPlan/model.d.ts
vendored
Normal file
199
apps/web-antd/src/api/property/inspectionManagement/inspectionPlan/model.d.ts
vendored
Normal file
@@ -0,0 +1,199 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface InspectionPlanVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 巡检计划名称
|
||||
*/
|
||||
planName: string;
|
||||
|
||||
/**
|
||||
* 巡检路线id
|
||||
*/
|
||||
inspectionRouteId: string | number;
|
||||
|
||||
/**
|
||||
* 巡检周期
|
||||
*/
|
||||
inspectionPlanPeriod: number;
|
||||
|
||||
/**
|
||||
* 任务提前分组
|
||||
*/
|
||||
beforeTime: number;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
startDate: string;
|
||||
|
||||
/**
|
||||
* 结束日期
|
||||
*/
|
||||
endDate: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 签到方式(0现场定位,1现场定位)
|
||||
*/
|
||||
signType: number;
|
||||
|
||||
/**
|
||||
* 允许补检(0允许1不允许)
|
||||
*/
|
||||
canReexamine: number;
|
||||
|
||||
/**
|
||||
* 选择员工
|
||||
*/
|
||||
userId: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface InspectionPlanForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检计划名称
|
||||
*/
|
||||
planName?: string;
|
||||
|
||||
/**
|
||||
* 巡检路线id
|
||||
*/
|
||||
inspectionRouteId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检周期
|
||||
*/
|
||||
inspectionPlanPeriod?: number;
|
||||
|
||||
/**
|
||||
* 任务提前分组
|
||||
*/
|
||||
beforeTime?: number;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
startDate?: string;
|
||||
|
||||
/**
|
||||
* 结束日期
|
||||
*/
|
||||
endDate?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 签到方式(0现场定位,1现场定位)
|
||||
*/
|
||||
signType?: number;
|
||||
|
||||
/**
|
||||
* 允许补检(0允许1不允许)
|
||||
*/
|
||||
canReexamine?: number;
|
||||
|
||||
/**
|
||||
* 选择员工
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface InspectionPlanQuery extends PageQuery {
|
||||
/**
|
||||
* 巡检计划名称
|
||||
*/
|
||||
planName?: string;
|
||||
|
||||
/**
|
||||
* 巡检路线id
|
||||
*/
|
||||
inspectionRouteId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检周期
|
||||
*/
|
||||
inspectionPlanPeriod?: number;
|
||||
|
||||
/**
|
||||
* 任务提前分组
|
||||
*/
|
||||
beforeTime?: number;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
startDate?: string;
|
||||
|
||||
/**
|
||||
* 结束日期
|
||||
*/
|
||||
endDate?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 签到方式(0现场定位,1现场定位)
|
||||
*/
|
||||
signType?: number;
|
||||
|
||||
/**
|
||||
* 允许补检(0允许1不允许)
|
||||
*/
|
||||
canReexamine?: number;
|
||||
|
||||
/**
|
||||
* 选择员工
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { InspectionRouteVO, InspectionRouteForm, InspectionRouteQuery } 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 inspectionRouteList(params?: InspectionRouteQuery) {
|
||||
return requestClient.get<PageResult<InspectionRouteVO>>('/property/inspectionRoute/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出巡检路线列表
|
||||
* @param params
|
||||
* @returns 巡检路线列表
|
||||
*/
|
||||
export function inspectionRouteExport(params?: InspectionRouteQuery) {
|
||||
return commonExport('/property/inspectionRoute/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询巡检路线详情
|
||||
* @param id id
|
||||
* @returns 巡检路线详情
|
||||
*/
|
||||
export function inspectionRouteInfo(id: ID) {
|
||||
return requestClient.get<InspectionRouteVO>(`/property/inspectionRoute/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增巡检路线
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function inspectionRouteAdd(data: InspectionRouteForm) {
|
||||
return requestClient.postWithMsg<void>('/property/inspectionRoute', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新巡检路线
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function inspectionRouteUpdate(data: InspectionRouteForm) {
|
||||
return requestClient.putWithMsg<void>('/property/inspectionRoute', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除巡检路线
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function inspectionRouteRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/inspectionRoute/${id}`);
|
||||
}
|
49
apps/web-antd/src/api/property/inspectionManagement/inspectionRoute/model.d.ts
vendored
Normal file
49
apps/web-antd/src/api/property/inspectionManagement/inspectionRoute/model.d.ts
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface InspectionRouteVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 路线名称
|
||||
*/
|
||||
routeName: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface InspectionRouteForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 路线名称
|
||||
*/
|
||||
routeName?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface InspectionRouteQuery extends PageQuery {
|
||||
/**
|
||||
* 路线名称
|
||||
*/
|
||||
routeName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user