From acd63bc96eb617c95a068d9a7e6709639246d5a9 Mon Sep 17 00:00:00 2001 From: 15683799673 Date: Sat, 28 Jun 2025 02:41:09 +0800 Subject: [PATCH] 1 --- .../src/api/property/building/index.ts | 20 +- .../src/api/property/building/model.d.ts | 288 +++++------------- .../src/api/property/community/index.ts | 20 +- .../src/api/property/community/model.d.ts | 211 +++++-------- apps/web-antd/src/api/property/floor/index.ts | 20 +- .../src/api/property/floor/model.d.ts | 102 ++++--- apps/web-antd/src/api/property/room/index.ts | 2 + .../web-antd/src/api/property/room/model.d.ts | 25 +- .../web-antd/src/api/property/unit/model.d.ts | 21 +- .../property/building/building-modal.vue | 13 +- .../src/views/property/building/data.ts | 246 +++++---------- .../src/views/property/building/index.vue | 53 ++-- .../property/community/community-modal.vue | 13 +- .../src/views/property/community/data.ts | 127 ++++---- .../src/views/property/community/index.vue | 54 ++-- .../web-antd/src/views/property/floor/data.ts | 103 +++---- .../src/views/property/floor/floor-modal.vue | 13 +- .../src/views/property/floor/index.vue | 37 ++- apps/web-antd/src/views/property/room/data.ts | 122 ++------ .../src/views/property/room/index.vue | 33 +- .../src/views/property/room/room-modal.vue | 13 +- apps/web-antd/src/views/property/unit/data.ts | 157 +--------- .../src/views/property/unit/index.vue | 23 +- 23 files changed, 670 insertions(+), 1046 deletions(-) diff --git a/apps/web-antd/src/api/property/building/index.ts b/apps/web-antd/src/api/property/building/index.ts index 55c81fd3..29a07cbd 100644 --- a/apps/web-antd/src/api/property/building/index.ts +++ b/apps/web-antd/src/api/property/building/index.ts @@ -1,38 +1,40 @@ import type { BuildingVO, BuildingForm, BuildingQuery } 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 建筑管理列表 +* @returns 建筑列表 */ export function buildingList(params?: BuildingQuery) { return requestClient.get>('/property/building/list', { params }); } /** - * 导出建筑管理列表 + * 导出建筑列表 * @param params - * @returns 建筑管理列表 + * @returns 建筑列表 */ export function buildingExport(params?: BuildingQuery) { return commonExport('/property/building/export', params ?? {}); } /** - * 查询建筑管理详情 + * 查询建筑详情 * @param id id - * @returns 建筑管理详情 + * @returns 建筑详情 */ export function buildingInfo(id: ID) { return requestClient.get(`/property/building/${id}`); } /** - * 新增建筑管理 + * 新增建筑 * @param data * @returns void */ @@ -41,7 +43,7 @@ export function buildingAdd(data: BuildingForm) { } /** - * 更新建筑管理 + * 更新建筑 * @param data * @returns void */ @@ -50,7 +52,7 @@ export function buildingUpdate(data: BuildingForm) { } /** - * 删除建筑管理 + * 删除建筑 * @param id id * @returns void */ diff --git a/apps/web-antd/src/api/property/building/model.d.ts b/apps/web-antd/src/api/property/building/model.d.ts index 2983ef7d..79085031 100644 --- a/apps/web-antd/src/api/property/building/model.d.ts +++ b/apps/web-antd/src/api/property/building/model.d.ts @@ -9,12 +9,7 @@ export interface BuildingVO { /** * 园区编码 */ - communityCode: string; - - /** - * 建筑编码 - */ - buildingCode: string; + communityId: string | number; /** * 建筑名称 @@ -36,6 +31,31 @@ export interface BuildingVO { */ district: string; + /** + * 总层数 + */ + floorCount: number; + + /** + * 单元数 + */ + unitCount: number; + + /** + * 建筑类型('1:住宅','2:商业','3:混合') + */ + buildType: number; + + /** + * 电梯数量 + */ + elevatorCount: number; + + /** + * 竣工日期 + */ + completionDate: string; + /** * 地址 */ @@ -111,26 +131,6 @@ export interface BuildingVO { */ sort: number; - /** - * 组织编码 - */ - orgCode: string; - - /** - * 数据状态:1有效,0无效 - */ - dataState: number; - - /** - * 修改时间 - */ - modifyTime: string; - - /** - * 搜索值 - */ - searchValue: string; - } export interface BuildingForm extends BaseEntity { @@ -142,12 +142,7 @@ export interface BuildingForm extends BaseEntity { /** * 园区编码 */ - communityCode?: string; - - /** - * 建筑编码 - */ - buildingCode?: string; + communityId?: string | number; /** * 建筑名称 @@ -169,6 +164,31 @@ export interface BuildingForm extends BaseEntity { */ district?: string; + /** + * 总层数 + */ + floorCount?: number; + + /** + * 单元数 + */ + unitCount?: number; + + /** + * 建筑类型('1:住宅','2:商业','3:混合') + */ + buildType?: number; + + /** + * 电梯数量 + */ + elevatorCount?: number; + + /** + * 竣工日期 + */ + completionDate?: string; + /** * 地址 */ @@ -244,25 +264,6 @@ export interface BuildingForm extends BaseEntity { */ sort?: number; - /** - * 组织编码 - */ - orgCode?: string; - - /** - * 数据状态:1有效,0无效 - */ - dataState?: number; - - /** - * 修改时间 - */ - modifyTime?: string; - - /** - * 搜索值 - */ - searchValue?: string; } @@ -270,12 +271,7 @@ export interface BuildingQuery extends PageQuery { /** * 园区编码 */ - communityCode?: string; - - /** - * 建筑编码 - */ - buildingCode?: string; + communityId?: string | number; /** * 建筑名称 @@ -297,6 +293,31 @@ export interface BuildingQuery extends PageQuery { */ district?: string; + /** + * 总层数 + */ + floorCount?: number; + + /** + * 单元数 + */ + unitCount?: number; + + /** + * 建筑类型('1:住宅','2:商业','3:混合') + */ + buildType?: number; + + /** + * 电梯数量 + */ + elevatorCount?: number; + + /** + * 竣工日期 + */ + completionDate?: string; + /** * 地址 */ @@ -372,161 +393,8 @@ export interface BuildingQuery extends PageQuery { */ sort?: number; - /** - * 组织编码 - */ - orgCode?: string; - - /** - * 数据状态:1有效,0无效 - */ - dataState?: number; - - /** - * 修改时间 - */ - modifyTime?: string; - - /** - * 搜索值 - */ - searchValue?: string; - /** * 日期范围参数 */ params?: any; } - -export interface Building extends BaseEntity { - /** - * 园区编码 - */ - communityCode?: string; - - /** - * 建筑编码 - */ - buildingCode?: string; - - /** - * 建筑名称 - */ - buildingName?: string; - - /** - * 省 - */ - province?: string; - - /** - * 市 - */ - city?: string; - - /** - * 区 - */ - district?: string; - - /** - * 地址 - */ - addr?: string; - - /** - * 经度 - */ - lon?: string; - - /** - * 维度 - */ - lat?: string; - - /** - * 产权性质(1:自持,2:承租,3:自持+承租,4:政府免费使用) - */ - cqxz?: number; - - /** - * 不动产编号 - */ - bdcbh?: string; - - /** - * 产权编号 - */ - cqbh?: string; - - /** - * 图地编号 - */ - tdbh?: string; - - /** - * 建筑面积 - */ - jzmj?: number; - - /** - * 产权面积 - */ - cqmj?: number; - - /** - * 可租面积 - */ - kzmj?: number; - - /** - * 自用面积 - */ - zymj?: number; - - /** - * 配套面积 - */ - ptmj?: number; - - /** - * 车位面积 - */ - cwmj?: number; - - /** - * 标准层高 - */ - bzcg?: number; - - /** - * 排序字段 - */ - sort?: number; - - /** - * 组织编码 - */ - orgCode?: string; - - /** - * 数据状态:1有效,0无效 - */ - dataState?: number; - - /** - * 修改时间 - */ - modifyTime?: string; - - /** - * 搜索值 - */ - searchValue?: string; - - /** - * 日期范围参数 - */ - params?: any; -} - diff --git a/apps/web-antd/src/api/property/community/index.ts b/apps/web-antd/src/api/property/community/index.ts index 14c933ce..33749cdb 100644 --- a/apps/web-antd/src/api/property/community/index.ts +++ b/apps/web-antd/src/api/property/community/index.ts @@ -1,38 +1,40 @@ import type { CommunityVO, CommunityForm, CommunityQuery } 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 小区管理列表 +* @returns 小区列表 */ export function communityList(params?: CommunityQuery) { return requestClient.get>('/property/community/list', { params }); } /** - * 导出小区管理列表 + * 导出小区列表 * @param params - * @returns 小区管理列表 + * @returns 小区列表 */ export function communityExport(params?: CommunityQuery) { return commonExport('/property/community/export', params ?? {}); } /** - * 查询小区管理详情 + * 查询小区详情 * @param id id - * @returns 小区管理详情 + * @returns 小区详情 */ export function communityInfo(id: ID) { return requestClient.get(`/property/community/${id}`); } /** - * 新增小区管理 + * 新增小区 * @param data * @returns void */ @@ -41,7 +43,7 @@ export function communityAdd(data: CommunityForm) { } /** - * 更新小区管理 + * 更新小区 * @param data * @returns void */ @@ -50,7 +52,7 @@ export function communityUpdate(data: CommunityForm) { } /** - * 删除小区管理 + * 删除小区 * @param id id * @returns void */ diff --git a/apps/web-antd/src/api/property/community/model.d.ts b/apps/web-antd/src/api/property/community/model.d.ts index a1045f5e..bcef3e5f 100644 --- a/apps/web-antd/src/api/property/community/model.d.ts +++ b/apps/web-antd/src/api/property/community/model.d.ts @@ -2,7 +2,7 @@ import type { PageQuery, BaseEntity } from '#/api/common'; export interface CommunityVO { /** - * 主键 + * */ id: string | number; @@ -11,11 +11,6 @@ export interface CommunityVO { */ communityName: string; - /** - * 社区编码 - */ - communityCode: string; - /** * 社区类型 1:园区,2:小区 */ @@ -51,31 +46,41 @@ export interface CommunityVO { */ lat: string; + /** + * 占地面积(平方米) + */ + area: number; + + /** + * + */ + builtYear: string; + + /** + * 物业公司 + */ + propertyCompany: string; + + /** + * 联系电话 + */ + contactPhone: string; + + /** + * 社区描述 + */ + description: string; + /** * 小图图片 */ img: string; - /** - * 组织编码 - */ - orgCode: string; - - /** - * 数据状态:1有效,0无效 - */ - dataState: number; - - /** - * 修改时间 - */ - modifyTime: string; - } export interface CommunityForm extends BaseEntity { /** - * 主键 + * */ id?: string | number; @@ -84,11 +89,6 @@ export interface CommunityForm extends BaseEntity { */ communityName?: string; - /** - * 社区编码 - */ - communityCode?: string; - /** * 社区类型 1:园区,2:小区 */ @@ -124,26 +124,36 @@ export interface CommunityForm extends BaseEntity { */ lat?: string; + /** + * 占地面积(平方米) + */ + area?: number; + + /** + * + */ + builtYear?: string; + + /** + * 物业公司 + */ + propertyCompany?: string; + + /** + * 联系电话 + */ + contactPhone?: string; + + /** + * 社区描述 + */ + description?: string; + /** * 小图图片 */ img?: string; - /** - * 组织编码 - */ - orgCode?: string; - - /** - * 数据状态:1有效,0无效 - */ - dataState?: number; - - /** - * 修改时间 - */ - modifyTime?: string; - } export interface CommunityQuery extends PageQuery { @@ -152,11 +162,6 @@ export interface CommunityQuery extends PageQuery { */ communityName?: string; - /** - * 社区编码 - */ - communityCode?: string; - /** * 社区类型 1:园区,2:小区 */ @@ -192,100 +197,38 @@ export interface CommunityQuery extends PageQuery { */ lat?: string; + /** + * 占地面积(平方米) + */ + area?: number; + + /** + * + */ + builtYear?: string; + + /** + * 物业公司 + */ + propertyCompany?: string; + + /** + * 联系电话 + */ + contactPhone?: string; + + /** + * 社区描述 + */ + description?: string; + /** * 小图图片 */ img?: string; - /** - * 组织编码 - */ - orgCode?: string; - - /** - * 数据状态:1有效,0无效 - */ - dataState?: number; - - /** - * 修改时间 - */ - modifyTime?: string; - /** * 日期范围参数 */ params?: any; } - -export interface Community extends BaseEntity { - /** - * 社区名称 - */ - communityName?: string; - - /** - * 社区编码 - */ - communityCode?: string; - - /** - * 社区类型 1:园区,2:小区 - */ - communityType?: number; - - /** - * 省 - */ - province?: string; - - /** - * 市 - */ - city?: string; - - /** - * 区 - */ - district?: string; - - /** - * 地址 - */ - addr?: string; - - /** - * 经度 - */ - lon?: string; - - /** - * 维度 - */ - lat?: string; - - /** - * 小图图片 - */ - img?: string; - - /** - * 组织编码 - */ - orgCode?: string; - - /** - * 数据状态:1有效,0无效 - */ - dataState?: number; - - /** - * 修改时间 - */ - modifyTime?: string; - - /** - * 日期范围参数 - */ - params?: any; -} diff --git a/apps/web-antd/src/api/property/floor/index.ts b/apps/web-antd/src/api/property/floor/index.ts index bad3ff83..8b154ce2 100644 --- a/apps/web-antd/src/api/property/floor/index.ts +++ b/apps/web-antd/src/api/property/floor/index.ts @@ -1,38 +1,40 @@ import type { FloorVO, FloorForm, FloorQuery } 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 楼层管理列表 +* @returns 楼层列表 */ export function floorList(params?: FloorQuery) { return requestClient.get>('/property/floor/list', { params }); } /** - * 导出楼层管理列表 + * 导出楼层列表 * @param params - * @returns 楼层管理列表 + * @returns 楼层列表 */ export function floorExport(params?: FloorQuery) { return commonExport('/property/floor/export', params ?? {}); } /** - * 查询楼层管理详情 + * 查询楼层详情 * @param id id - * @returns 楼层管理详情 + * @returns 楼层详情 */ export function floorInfo(id: ID) { return requestClient.get(`/property/floor/${id}`); } /** - * 新增楼层管理 + * 新增楼层 * @param data * @returns void */ @@ -41,7 +43,7 @@ export function floorAdd(data: FloorForm) { } /** - * 更新楼层管理 + * 更新楼层 * @param data * @returns void */ @@ -50,7 +52,7 @@ export function floorUpdate(data: FloorForm) { } /** - * 删除楼层管理 + * 删除楼层 * @param id id * @returns void */ diff --git a/apps/web-antd/src/api/property/floor/model.d.ts b/apps/web-antd/src/api/property/floor/model.d.ts index ef66bde1..747f002e 100644 --- a/apps/web-antd/src/api/property/floor/model.d.ts +++ b/apps/web-antd/src/api/property/floor/model.d.ts @@ -1,21 +1,15 @@ import type { PageQuery, BaseEntity } from '#/api/common'; export interface FloorVO { + /** + * + */ id: string | number; - /** - * 社区编码 - */ - communityCode: string; /** - * 建筑名称 + * 单元编码 */ - buildingCode: string; - - /** - * 楼层编码 - */ - floorCode: number; + unitId: string | number; /** * 楼层数名称 @@ -23,32 +17,37 @@ export interface FloorVO { floorName: string; /** - * 组织编码 + * 楼层号 */ - orgCode: string; + floorNumber: number; + + /** + * 楼层类型 + */ + floorType: number; + + /** + * 房间数量 + */ + roomCount: number; + + /** + * 层高 + */ + floorHeight: number; } export interface FloorForm extends BaseEntity { /** - * ID + * */ id?: string | number; /** - * 社区编码 + * 单元编码 */ - communityCode?: string; - - /** - * 建筑名称 - */ - buildingCode?: string; - - /** - * 楼层编码 - */ - floorCode?: number; + unitId?: string | number; /** * 楼层数名称 @@ -56,27 +55,32 @@ export interface FloorForm extends BaseEntity { floorName?: string; /** - * 组织编码 + * 楼层号 */ - orgCode?: string; + floorNumber?: number; + + /** + * 楼层类型 + */ + floorType?: number; + + /** + * 房间数量 + */ + roomCount?: number; + + /** + * 层高 + */ + floorHeight?: number; } export interface FloorQuery extends PageQuery { /** - * 社区编码 + * 单元编码 */ - communityCode?: string; - - /** - * 建筑名称 - */ - buildingCode?: string; - - /** - * 楼层编码 - */ - floorCode?: number; + unitId?: string | number; /** * 楼层数名称 @@ -84,14 +88,24 @@ export interface FloorQuery extends PageQuery { floorName?: string; /** - * 组织编码 + * 楼层号 */ - orgCode?: string; + floorNumber?: number; /** - * 数据状态:1有效,0无效 + * 楼层类型 */ - dataState?: number; + floorType?: number; + + /** + * 房间数量 + */ + roomCount?: number; + + /** + * 层高 + */ + floorHeight?: number; /** * 日期范围参数 diff --git a/apps/web-antd/src/api/property/room/index.ts b/apps/web-antd/src/api/property/room/index.ts index a9bcfb72..da07ffee 100644 --- a/apps/web-antd/src/api/property/room/index.ts +++ b/apps/web-antd/src/api/property/room/index.ts @@ -1,6 +1,8 @@ import type { RoomVO, RoomForm, RoomQuery } 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'; diff --git a/apps/web-antd/src/api/property/room/model.d.ts b/apps/web-antd/src/api/property/room/model.d.ts index 207b4a49..122d596b 100644 --- a/apps/web-antd/src/api/property/room/model.d.ts +++ b/apps/web-antd/src/api/property/room/model.d.ts @@ -2,19 +2,14 @@ import type { PageQuery, BaseEntity } from '#/api/common'; export interface RoomVO { /** - * 主键 + * */ id: string | number; /** * 所属楼层ID */ - floorCode: string; - - /** - * 房间编码 - */ - roomCode: string; + floorId: string | number; /** * 房间号(如101,202) @@ -55,19 +50,14 @@ export interface RoomVO { export interface RoomForm extends BaseEntity { /** - * 主键 + * */ id?: string | number; /** * 所属楼层ID */ - floorCode?: string; - - /** - * 房间编码 - */ - roomCode?: string; + floorId?: string | number; /** * 房间号(如101,202) @@ -110,12 +100,7 @@ export interface RoomQuery extends PageQuery { /** * 所属楼层ID */ - floorCode?: string; - - /** - * 房间编码 - */ - roomCode?: string; + floorId?: string | number; /** * 房间号(如101,202) diff --git a/apps/web-antd/src/api/property/unit/model.d.ts b/apps/web-antd/src/api/property/unit/model.d.ts index 22c21c69..4209d493 100644 --- a/apps/web-antd/src/api/property/unit/model.d.ts +++ b/apps/web-antd/src/api/property/unit/model.d.ts @@ -9,12 +9,7 @@ export interface UnitVO { /** * 建筑名称 */ - buildingCode: string; - - /** - * 单元编码 - */ - unitCode: string; + buildingId: string | number; /** * 单元名称 @@ -47,12 +42,7 @@ export interface UnitForm extends BaseEntity { /** * 建筑名称 */ - buildingCode?: string; - - /** - * 单元编码 - */ - unitCode?: string; + buildingId?: string | number; /** * 单元名称 @@ -80,12 +70,7 @@ export interface UnitQuery extends PageQuery { /** * 建筑名称 */ - buildingCode?: string; - - /** - * 单元编码 - */ - unitCode?: string; + buildingId?: string | number; /** * 单元名称 diff --git a/apps/web-antd/src/views/property/building/building-modal.vue b/apps/web-antd/src/views/property/building/building-modal.vue index ecdf7977..0bd00a6e 100644 --- a/apps/web-antd/src/views/property/building/building-modal.vue +++ b/apps/web-antd/src/views/property/building/building-modal.vue @@ -1,24 +1,30 @@