增加电梯页面
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
15683799673
2025-07-10 08:45:59 +08:00
parent 0d2a4db6a6
commit ed2e88b99e
6 changed files with 912 additions and 1 deletions

View File

@@ -0,0 +1,61 @@
import type { ElevatorInfoVO, ElevatorInfoForm, ElevatorInfoQuery } 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 elevatorInfoList(params?: ElevatorInfoQuery) {
return requestClient.get<PageResult<ElevatorInfoVO>>('/sis/elevatorInfo/list', { params });
}
/**
* 导出电梯基本信息列表
* @param params
* @returns 电梯基本信息列表
*/
export function elevatorInfoExport(params?: ElevatorInfoQuery) {
return commonExport('/sis/elevatorInfo/export', params ?? {});
}
/**
* 查询电梯基本信息详情
* @param elevatorId id
* @returns 电梯基本信息详情
*/
export function elevatorInfoInfo(elevatorId: ID) {
return requestClient.get<ElevatorInfoVO>(`/sis/elevatorInfo/${elevatorId}`);
}
/**
* 新增电梯基本信息
* @param data
* @returns void
*/
export function elevatorInfoAdd(data: ElevatorInfoForm) {
return requestClient.postWithMsg<void>('/sis/elevatorInfo', data);
}
/**
* 更新电梯基本信息
* @param data
* @returns void
*/
export function elevatorInfoUpdate(data: ElevatorInfoForm) {
return requestClient.putWithMsg<void>('/sis/elevatorInfo', data);
}
/**
* 删除电梯基本信息
* @param elevatorId id
* @returns void
*/
export function elevatorInfoRemove(elevatorId: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/sis/elevatorInfo/${elevatorId}`);
}

View File

@@ -0,0 +1,294 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface ElevatorInfoVO {
/**
*
*/
elevatorId: string | number;
/**
* 电梯编号
*/
elevatorCode: string;
/**
* 电梯名称
*/
elevatorName: string;
/**
* 安装位置
*/
location: string;
/**
* 品牌
*/
brand: string;
/**
* 型号
*/
model: string;
/**
* 生产日期
*/
manufactureDate: string;
/**
* 安装日期
*/
installationDate: string;
/**
* 最大载重(kg)
*/
maxLoad: number;
/**
* 服务楼层数
*/
floorsServed: number;
/**
* 维保公司
*/
maintenanceCompany: string;
/**
* 维保电话
*/
maintenancePhone: string;
/**
* 上次年检日期
*/
lastInspectionDate: string;
/**
* 下次年检日期
*/
nextInspectionDate: string;
/**
* 梯控厂商
*/
controlFactory: string;
/**
* 梯控设备ip
*/
controlIp: string;
/**
* 梯控设备编码
*/
controlPort: number;
/**
* 梯控设备登录账号
*/
controlAccount: string;
/**
* 梯控设备登录密码
*/
controlPwd: string;
}
export interface ElevatorInfoForm extends BaseEntity {
/**
*
*/
elevatorId?: string | number;
/**
* 电梯编号
*/
elevatorCode?: string;
/**
* 电梯名称
*/
elevatorName?: string;
/**
* 安装位置
*/
location?: string;
/**
* 品牌
*/
brand?: string;
/**
* 型号
*/
model?: string;
/**
* 生产日期
*/
manufactureDate?: string;
/**
* 安装日期
*/
installationDate?: string;
/**
* 最大载重(kg)
*/
maxLoad?: number;
/**
* 服务楼层数
*/
floorsServed?: number;
/**
* 维保公司
*/
maintenanceCompany?: string;
/**
* 维保电话
*/
maintenancePhone?: string;
/**
* 上次年检日期
*/
lastInspectionDate?: string;
/**
* 下次年检日期
*/
nextInspectionDate?: string;
/**
* 梯控厂商
*/
controlFactory?: string;
/**
* 梯控设备ip
*/
controlIp?: string;
/**
* 梯控设备编码
*/
controlPort?: number;
/**
* 梯控设备登录账号
*/
controlAccount?: string;
/**
* 梯控设备登录密码
*/
controlPwd?: string;
}
export interface ElevatorInfoQuery extends PageQuery {
/**
* 电梯编号
*/
elevatorCode?: string;
/**
* 电梯名称
*/
elevatorName?: string;
/**
* 安装位置
*/
location?: string;
/**
* 品牌
*/
brand?: string;
/**
* 型号
*/
model?: string;
/**
* 生产日期
*/
manufactureDate?: string;
/**
* 安装日期
*/
installationDate?: string;
/**
* 最大载重(kg)
*/
maxLoad?: number;
/**
* 服务楼层数
*/
floorsServed?: number;
/**
* 维保公司
*/
maintenanceCompany?: string;
/**
* 维保电话
*/
maintenancePhone?: string;
/**
* 上次年检日期
*/
lastInspectionDate?: string;
/**
* 下次年检日期
*/
nextInspectionDate?: string;
/**
* 梯控厂商
*/
controlFactory?: string;
/**
* 梯控设备ip
*/
controlIp?: string;
/**
* 梯控设备编码
*/
controlPort?: number;
/**
* 梯控设备登录账号
*/
controlAccount?: string;
/**
* 梯控设备登录密码
*/
controlPwd?: string;
/**
* 日期范围参数
*/
params?: any;
}