Merge branch 'master' of http://47.109.37.87:3000/by2025/admin-vben5
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
2025-07-15 18:47:32 +08:00
17 changed files with 1061 additions and 175 deletions

View File

@@ -0,0 +1,61 @@
import type { DeviceLocationVO, DeviceLocationForm, DeviceLocationQuery } 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 deviceLocationList(params?: DeviceLocationQuery) {
return requestClient.get<PageResult<DeviceLocationVO>>('/property/deviceLocation/list', { params });
}
/**
* 导出设备位置列表
* @param params
* @returns 设备位置列表
*/
export function deviceLocationExport(params?: DeviceLocationQuery) {
return commonExport('/property/deviceLocation/export', params ?? {});
}
/**
* 查询设备位置详情
* @param id id
* @returns 设备位置详情
*/
export function deviceLocationInfo(id: ID) {
return requestClient.get<DeviceLocationVO>(`/property/deviceLocation/${id}`);
}
/**
* 新增设备位置
* @param data
* @returns void
*/
export function deviceLocationAdd(data: DeviceLocationForm) {
return requestClient.postWithMsg<void>('/property/deviceLocation', data);
}
/**
* 更新设备位置
* @param data
* @returns void
*/
export function deviceLocationUpdate(data: DeviceLocationForm) {
return requestClient.putWithMsg<void>('/property/deviceLocation', data);
}
/**
* 删除设备位置
* @param id id
* @returns void
*/
export function deviceLocationRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/deviceLocation/${id}`);
}

View File

@@ -0,0 +1,84 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface DeviceLocationVO {
/**
* 主键
*/
id: string | number;
/**
* 位置名称
*/
locationName: string;
/**
* 位置编号
*/
locationCode: string;
/**
* 位置类型
*/
locationType: string;
/**
* 搜索值
*/
searchValue: string;
}
export interface DeviceLocationForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 位置名称
*/
locationName?: string;
/**
* 位置编号
*/
locationCode?: string;
/**
* 位置类型
*/
locationType?: string;
/**
* 搜索值
*/
searchValue?: string;
}
export interface DeviceLocationQuery extends PageQuery {
/**
* 位置名称
*/
locationName?: string;
/**
* 位置编号
*/
locationCode?: string;
/**
* 位置类型
*/
locationType?: string;
/**
* 搜索值
*/
searchValue?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -59,7 +59,7 @@ export interface InspectionPlanVO {
/**
* 选择员工
*/
userId: string | number;
userId: string;
/**
* 备注
@@ -74,21 +74,22 @@ export interface InspectionPlanVO {
/**
* 巡检月
*/
inspectionMonth?:string;
inspectionMonth?: string;
/**
* 巡检日
*/
inspectionDay?:string;
inspectionDay?: string;
/**
* 巡检周
*/
inspectionWorkday?:string;
inspectionWorkday?: string;
/**
* 状态
*/
state?:string
state?: string
inspectionPlanStaffVoList?: any[]
}
export interface InspectionPlanForm extends BaseEntity {
@@ -159,15 +160,15 @@ export interface InspectionPlanForm extends BaseEntity {
/**
* 巡检月
*/
inspectionMonth?:string;
inspectionMonth?: string;
/**
* 巡检日
*/
inspectionDay?:string;
inspectionDay?: string;
/**
* 巡检周
*/
inspectionWorkday?:string;
inspectionWorkday?: string;
}
@@ -234,13 +235,13 @@ export interface InspectionPlanQuery extends PageQuery {
/**
* 巡检月
*/
inspectionMonth?:string;
inspectionMonth?: string;
/**
* 巡检日
*/
inspectionDay?:string;
inspectionDay?: string;
/**
* 巡检周
*/
inspectionWorkday?:string;
inspectionWorkday?: string;
}