diff --git a/apps/web-antd/src/api/property/inspectionManagement/inspectionItem/index.ts b/apps/web-antd/src/api/property/inspectionManagement/inspectionItem/index.ts new file mode 100644 index 00000000..1ce5f52a --- /dev/null +++ b/apps/web-antd/src/api/property/inspectionManagement/inspectionItem/index.ts @@ -0,0 +1,61 @@ +import type { InspectionItemVO, InspectionItemForm, InspectionItemQuery } 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 inspectionItemList(params?: InspectionItemQuery) { + return requestClient.get>('/property/inspectionItem/list', { params }); +} + +/** + * 导出巡检项目列表 + * @param params + * @returns 巡检项目列表 + */ +export function inspectionItemExport(params?: InspectionItemQuery) { + return commonExport('/property/inspectionItem/export', params ?? {}); +} + +/** + * 查询巡检项目详情 + * @param id id + * @returns 巡检项目详情 + */ +export function inspectionItemInfo(id: ID) { + return requestClient.get(`/property/inspectionItem/${id}`); +} + +/** + * 新增巡检项目 + * @param data + * @returns void + */ +export function inspectionItemAdd(data: InspectionItemForm) { + return requestClient.postWithMsg('/property/inspectionItem', data); +} + +/** + * 更新巡检项目 + * @param data + * @returns void + */ +export function inspectionItemUpdate(data: InspectionItemForm) { + return requestClient.putWithMsg('/property/inspectionItem', data); +} + +/** + * 删除巡检项目 + * @param id id + * @returns void + */ +export function inspectionItemRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/inspectionItem/${id}`); +} diff --git a/apps/web-antd/src/api/property/inspectionManagement/inspectionItem/model.d.ts b/apps/web-antd/src/api/property/inspectionManagement/inspectionItem/model.d.ts new file mode 100644 index 00000000..358c473d --- /dev/null +++ b/apps/web-antd/src/api/property/inspectionManagement/inspectionItem/model.d.ts @@ -0,0 +1,49 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface InspectionItemVO { + /** + * 主键id + */ + id: string | number; + + /** + * 项目名称 + */ + itemName: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface InspectionItemForm extends BaseEntity { + /** + * 主键id + */ + id?: string | number; + + /** + * 项目名称 + */ + itemName?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface InspectionItemQuery extends PageQuery { + /** + * 项目名称 + */ + itemName?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/inspectionManagement/inspectionPlan/index.ts b/apps/web-antd/src/api/property/inspectionManagement/inspectionPlan/index.ts new file mode 100644 index 00000000..2411dcb8 --- /dev/null +++ b/apps/web-antd/src/api/property/inspectionManagement/inspectionPlan/index.ts @@ -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>('/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(`/property/inspectionPlan/${id}`); +} + +/** + * 新增巡检计划 + * @param data + * @returns void + */ +export function inspectionPlanAdd(data: InspectionPlanForm) { + return requestClient.postWithMsg('/property/inspectionPlan', data); +} + +/** + * 更新巡检计划 + * @param data + * @returns void + */ +export function inspectionPlanUpdate(data: InspectionPlanForm) { + return requestClient.putWithMsg('/property/inspectionPlan', data); +} + +/** + * 删除巡检计划 + * @param id id + * @returns void + */ +export function inspectionPlanRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/inspectionPlan/${id}`); +} diff --git a/apps/web-antd/src/api/property/inspectionManagement/inspectionPlan/model.d.ts b/apps/web-antd/src/api/property/inspectionManagement/inspectionPlan/model.d.ts new file mode 100644 index 00000000..951a8553 --- /dev/null +++ b/apps/web-antd/src/api/property/inspectionManagement/inspectionPlan/model.d.ts @@ -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; +} diff --git a/apps/web-antd/src/api/property/inspectionManagement/inspectionPoint/index.ts b/apps/web-antd/src/api/property/inspectionManagement/inspectionPoint/index.ts new file mode 100644 index 00000000..c96eb528 --- /dev/null +++ b/apps/web-antd/src/api/property/inspectionManagement/inspectionPoint/index.ts @@ -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>('/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(`/property/inspectionPoint/${id}`); +} + +/** + * 新增巡检点 + * @param data + * @returns void + */ +export function inspectionPointAdd(data: InspectionPointForm) { + return requestClient.postWithMsg('/property/inspectionPoint', data); +} + +/** + * 更新巡检点 + * @param data + * @returns void + */ +export function inspectionPointUpdate(data: InspectionPointForm) { + return requestClient.putWithMsg('/property/inspectionPoint', data); +} + +/** + * 删除巡检点 + * @param id id + * @returns void + */ +export function inspectionPointRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/inspectionPoint/${id}`); +} diff --git a/apps/web-antd/src/api/property/inspectionManagement/inspectionPoint/model.d.ts b/apps/web-antd/src/api/property/inspectionManagement/inspectionPoint/model.d.ts new file mode 100644 index 00000000..dd4e4824 --- /dev/null +++ b/apps/web-antd/src/api/property/inspectionManagement/inspectionPoint/model.d.ts @@ -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; +} diff --git a/apps/web-antd/src/api/property/inspectionManagement/inspectionRoute/index.ts b/apps/web-antd/src/api/property/inspectionManagement/inspectionRoute/index.ts new file mode 100644 index 00000000..84eb165c --- /dev/null +++ b/apps/web-antd/src/api/property/inspectionManagement/inspectionRoute/index.ts @@ -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>('/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(`/property/inspectionRoute/${id}`); +} + +/** + * 新增巡检路线 + * @param data + * @returns void + */ +export function inspectionRouteAdd(data: InspectionRouteForm) { + return requestClient.postWithMsg('/property/inspectionRoute', data); +} + +/** + * 更新巡检路线 + * @param data + * @returns void + */ +export function inspectionRouteUpdate(data: InspectionRouteForm) { + return requestClient.putWithMsg('/property/inspectionRoute', data); +} + +/** + * 删除巡检路线 + * @param id id + * @returns void + */ +export function inspectionRouteRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/inspectionRoute/${id}`); +} diff --git a/apps/web-antd/src/api/property/inspectionManagement/inspectionRoute/model.d.ts b/apps/web-antd/src/api/property/inspectionManagement/inspectionRoute/model.d.ts new file mode 100644 index 00000000..5b4b0836 --- /dev/null +++ b/apps/web-antd/src/api/property/inspectionManagement/inspectionRoute/model.d.ts @@ -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; +} diff --git a/apps/web-antd/src/api/property/inspectionManagement/inspectionTask/index.ts b/apps/web-antd/src/api/property/inspectionManagement/inspectionTask/index.ts new file mode 100644 index 00000000..1d94e435 --- /dev/null +++ b/apps/web-antd/src/api/property/inspectionManagement/inspectionTask/index.ts @@ -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>('/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(`/property/inspectionTask/${id}`); +} + +/** + * 新增巡检任务 + * @param data + * @returns void + */ +export function inspectionTaskAdd(data: InspectionTaskForm) { + return requestClient.postWithMsg('/property/inspectionTask', data); +} + +/** + * 更新巡检任务 + * @param data + * @returns void + */ +export function inspectionTaskUpdate(data: InspectionTaskForm) { + return requestClient.putWithMsg('/property/inspectionTask', data); +} + +/** + * 删除巡检任务 + * @param id id + * @returns void + */ +export function inspectionTaskRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/inspectionTask/${id}`); +} diff --git a/apps/web-antd/src/api/property/inspectionManagement/inspectionTask/model.d.ts b/apps/web-antd/src/api/property/inspectionManagement/inspectionTask/model.d.ts new file mode 100644 index 00000000..80d0adbb --- /dev/null +++ b/apps/web-antd/src/api/property/inspectionManagement/inspectionTask/model.d.ts @@ -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; +} diff --git a/apps/web-antd/src/api/sis/elevatorInfo/index.ts b/apps/web-antd/src/api/sis/elevatorInfo/index.ts new file mode 100644 index 00000000..83501334 --- /dev/null +++ b/apps/web-antd/src/api/sis/elevatorInfo/index.ts @@ -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>('/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(`/sis/elevatorInfo/${elevatorId}`); +} + +/** + * 新增电梯基本信息 + * @param data + * @returns void + */ +export function elevatorInfoAdd(data: ElevatorInfoForm) { + return requestClient.postWithMsg('/sis/elevatorInfo', data); +} + +/** + * 更新电梯基本信息 + * @param data + * @returns void + */ +export function elevatorInfoUpdate(data: ElevatorInfoForm) { + return requestClient.putWithMsg('/sis/elevatorInfo', data); +} + +/** + * 删除电梯基本信息 + * @param elevatorId id + * @returns void + */ +export function elevatorInfoRemove(elevatorId: ID | IDS) { + return requestClient.deleteWithMsg(`/sis/elevatorInfo/${elevatorId}`); +} diff --git a/apps/web-antd/src/api/sis/elevatorInfo/model.d.ts b/apps/web-antd/src/api/sis/elevatorInfo/model.d.ts new file mode 100644 index 00000000..f9fe457a --- /dev/null +++ b/apps/web-antd/src/api/sis/elevatorInfo/model.d.ts @@ -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; +} diff --git a/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts b/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts index 2cc814ab..8c47da51 100644 --- a/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts +++ b/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts @@ -4,6 +4,8 @@ import {renderDict} from "#/utils/render"; import {getDictOptions} from "#/utils/dict"; import {h} from "vue"; import {Rate} from "ant-design-vue"; +import type {Dayjs} from "dayjs"; +import dayjs from "dayjs"; export const querySchema: FormSchemaGetter = () => [ @@ -39,6 +41,11 @@ export const columns: VxeGridProps['columns'] = [ field: 'orderName', minWidth: 180, }, + { + title: '工单类型', + field: 'typeName', + minWidth: 150, + }, { title: '派单时间', field: 'dispatchTime', @@ -73,8 +80,8 @@ export const columns: VxeGridProps['columns'] = [ title: '评价', field: 'serviceEvalua', width: 180, - slots:{ - default: ({ row }) => { + slots: { + default: ({row}) => { return h(Rate, { value: row.serviceEvalua || 0, disabled: true, @@ -143,6 +150,7 @@ export const modalSchema: FormSchemaGetter = () => [ showTime: true, format: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD HH:mm:ss', + disabledDate: disabledDate }, rules: 'selectRequired', }, @@ -208,3 +216,6 @@ export const modalSchema: FormSchemaGetter = () => [ rules: 'selectRequired', }, ]; +const disabledDate = (current: Dayjs) => { + return current && current < dayjs().endOf('day'); +}; diff --git a/apps/web-antd/src/views/property/businessManagement/workOrders/index.vue b/apps/web-antd/src/views/property/businessManagement/workOrders/index.vue index b07e1cc2..a3fa1dfd 100644 --- a/apps/web-antd/src/views/property/businessManagement/workOrders/index.vue +++ b/apps/web-antd/src/views/property/businessManagement/workOrders/index.vue @@ -35,6 +35,14 @@ const formOptions: VbenFormProps = { }, schema: querySchema(), wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4', + handleReset: async () => { + ordersType.value = '0'; + const { formApi, reload } = tableApi; + await formApi.resetForm(); + const formValues = formApi.form.values; + formApi.setLatestSubmissionValues(formValues); + await reload(formValues); + }, }; const gridOptions: VxeGridProps = { @@ -53,6 +61,7 @@ const gridOptions: VxeGridProps = { proxyConfig: { ajax: { query: async ({page}, formValues = {}) => { + formValues.type = ordersType.value=='0'?undefined:ordersType.value; return await workOrdersList({ pageNum: page.currentPage, pageSize: page.pageSize, @@ -85,7 +94,7 @@ function handleAdd() { modalApi.setData({}); modalApi.open(); } -function handleInfo(row) { +function handleInfo(row:any) { detailApi.setData({id:row.id}); detailApi.open(); } @@ -139,21 +148,14 @@ async function queryOrderType() { onMounted(async () => { await queryOrderType() }); - -async function changeOrdersType(val: string) { - await tableApi.formApi.setValues({ - type: val === '0' ? undefined : val, // '0' 表示全部工单,传 undefined 或清除该字段 - }); - console.log(tableApi.formApi.getValues(),'==================') - await tableApi.query() -}