Merge branch 'master' of http://47.109.37.87:3000/by2025/admin-vben5
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7m3s

# Conflicts:
#	packages/@core/base/shared/src/constants/dict-enum.ts
This commit is contained in:
lxj
2025-06-26 22:03:17 +08:00
62 changed files with 4940 additions and 453 deletions

View File

@@ -0,0 +1,65 @@
import type { AssetTypeVO, AssetTypeForm, AssetTypeQuery } 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 assetTypeList(params?: AssetTypeQuery) {
return requestClient.get<PageResult<AssetTypeVO>>('/property/assetType/list', { params });
}
export function assetTypeselect() {
return requestClient.get<AssetTypeVO[]>('/property/assetType/list');
}
/**
* 导出资产类型列表
* @param params
* @returns 资产类型列表
*/
export function assetTypeExport(params?: AssetTypeQuery) {
return commonExport('/property/assetType/export', params ?? {});
}
/**
* 查询资产类型详情
* @param id id
* @returns 资产类型详情
*/
export function assetTypeInfo(id: ID) {
return requestClient.get<AssetTypeVO>(`/property/assetType/${id}`);
}
/**
* 新增资产类型
* @param data
* @returns void
*/
export function assetTypeAdd(data: AssetTypeForm) {
return requestClient.postWithMsg<void>('/property/assetType', data);
}
/**
* 更新资产类型
* @param data
* @returns void
*/
export function assetTypeUpdate(data: AssetTypeForm) {
return requestClient.putWithMsg<void>('/property/assetType', data);
}
/**
* 删除资产类型
* @param id id
* @returns void
*/
export function assetTypeRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/assetType/${id}`);
}

View File

@@ -0,0 +1,64 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface AssetTypeVO {
/**
* 主键
*/
id: string | number;
/**
* 分类名称
*/
assetTypeName: string;
/**
* 排序
*/
sort: number;
/**
* 创建时间
*/
createTime: string;
/**
* 创建人
*/
createBy: string;
}
export interface AssetTypeForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 分类名称
*/
assetTypeName?: string;
/**
* 排序
*/
sort?: number;
}
export interface AssetTypeQuery extends PageQuery {
/**
* 分类名称
*/
assetTypeName?: string;
/**
* 排序
*/
sort?: number;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -2,7 +2,7 @@ import type { PageQuery, BaseEntity } from '#/api/common';
export interface BuildingVO {
/**
*
*
*/
id: string | number;
@@ -135,7 +135,7 @@ export interface BuildingVO {
export interface BuildingForm extends BaseEntity {
/**
*
*
*/
id?: string | number;
@@ -397,3 +397,136 @@ export interface BuildingQuery extends PageQuery {
*/
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;
}

View File

@@ -217,3 +217,74 @@ export interface CommunityQuery extends PageQuery {
*/
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;
}

View File

@@ -0,0 +1,61 @@
import type { PropertyVO, PropertyForm, PropertyQuery } 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 plantsProductList(params?: PropertyQuery) {
return requestClient.get<PageResult<PropertyVO>>('/property/plantsProduct/list', { params });
}
/**
* 导出绿植租赁-绿植产品列表
* @param params
* @returns 绿植租赁-绿植产品列表
*/
export function plantsProductExport(params?: PropertyQuery) {
return commonExport('/property/plantsProduct/export', params ?? {});
}
/**
* 查询绿植租赁-绿植产品详情
* @param id id
* @returns 绿植租赁-绿植产品详情
*/
export function plantsProductInfo(id: ID) {
return requestClient.get<PropertyVO>(`/property/plantsProduct/${id}`);
}
/**
* 新增绿植租赁-绿植产品
* @param data
* @returns void
*/
export function plantsProductAdd(data: PropertyForm) {
return requestClient.postWithMsg<void>('/property/plantsProduct', data);
}
/**
* 更新绿植租赁-绿植产品
* @param data
* @returns void
*/
export function plantsProductUpdate(data: PropertyForm) {
return requestClient.putWithMsg<void>('/property/plantsProduct', data);
}
/**
* 删除绿植租赁-绿植产品
* @param id id
* @returns void
*/
export function plantsProductRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/plantsProduct/${id}`);
}

View File

@@ -0,0 +1,211 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface PropertyVO {
/**
* 主键
*/
id: string | number;
/**
* 产品编号
*/
plantCode: string;
/**
* 产品名称
*/
plantName: string;
/**
* 产品分类
*/
plantType: number;
/**
* 产品图片
*/
imgPath: string;
/**
* 规格
*/
specification: string;
/**
* 租金
*/
rent: number;
/**
* 库存数量
*/
inventory: number;
/**
* 状态0下架 1上架
*/
state: number;
/**
* 备注
*/
remark: string;
}
export interface PropertyForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 产品编号
*/
plantCode?: string;
/**
* 产品名称
*/
plantName?: string;
/**
* 产品分类
*/
plantType?: number;
/**
* 产品图片
*/
imgPath?: string;
/**
* 规格
*/
specification?: string;
/**
* 租金
*/
rent?: number;
/**
* 库存数量
*/
inventory?: number;
/**
* 状态0下架 1上架
*/
state?: number;
/**
* 备注
*/
remark?: string;
}
export interface PropertyQuery extends PageQuery {
/**
* 产品编号
*/
plantCode?: string;
/**
* 产品名称
*/
plantName?: string;
/**
* 产品分类
*/
plantType?: number;
/**
* 产品图片
*/
imgPath?: string;
/**
* 规格
*/
specification?: string;
/**
* 租金
*/
rent?: number;
/**
* 库存数量
*/
inventory?: number;
/**
* 状态0下架 1上架
*/
state?: number;
/**
* 日期范围参数
*/
params?: any;
}
export interface plantsProduct extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 产品编号
*/
plantCode?: string;
/**
* 产品名称
*/
plantName?: string;
/**
* 产品分类
*/
plantType?: number;
/**
* 产品图片
*/
imgPath?: string;
/**
* 规格
*/
specification?: string;
/**
* 租金
*/
rent?: number;
/**
* 库存数量
*/
inventory?: number;
/**
* 状态0下架 1上架
*/
state?: number;
/**
* 备注
*/
remark?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -0,0 +1,61 @@
import type { RentalOrderVO, RentalOrderForm, RentalOrderQuery } 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 rentalOrderList(params?: RentalOrderQuery) {
return requestClient.get<PageResult<RentalOrderVO>>('/property/rentalOrder/list', { params });
}
/**
* 导出绿植租赁-订单管理列表
* @param params
* @returns 绿植租赁-订单管理列表
*/
export function rentalOrderExport(params?: RentalOrderQuery) {
return commonExport('/property/rentalOrder/export', params ?? {});
}
/**
* 查询绿植租赁-订单管理详情
* @param id id
* @returns 绿植租赁-订单管理详情
*/
export function rentalOrderInfo(id: ID) {
return requestClient.get<RentalOrderVO>(`/property/rentalOrder/${id}`);
}
/**
* 新增绿植租赁-订单管理
* @param data
* @returns void
*/
export function rentalOrderAdd(data: RentalOrderForm) {
return requestClient.postWithMsg<void>('/property/rentalOrder', data);
}
/**
* 更新绿植租赁-订单管理
* @param data
* @returns void
*/
export function rentalOrderUpdate(data: RentalOrderForm) {
return requestClient.putWithMsg<void>('/property/rentalOrder', data);
}
/**
* 删除绿植租赁-订单管理
* @param id id
* @returns void
*/
export function rentalOrderRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/rentalOrder/${id}`);
}

View File

@@ -0,0 +1,249 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface RentalOrderVO {
/**
* 主键
*/
id: string | number;
/**
* 订单号
*/
orderNo: string;
/**
* 客户名称
*/
customerName: string;
/**
* 客户类型
*/
customerType: number;
/**
* 租赁周期
*/
rentalPeriod: number;
/**
* 租赁开始时间
*/
startTime: string;
/**
* 租赁结束时间
*/
endTime: string;
/**
* 应付总额
*/
totalAmount: number;
/**
* 租赁方式
*/
rentalType: number;
/**
* 租赁方案id
*/
planId: string | number;
/**
* 绿植产品id
*/
productId: string | number;
/**
* 租赁产品数量
*/
productNum: number;
/**
* 支付状态
*/
paymentStatus: number;
/**
* 是否续租
*/
isRelet: number;
/**
* 合同状态
*/
contractStatus: number;
/**
* 签署时间
*/
signTime: string;
}
export interface RentalOrderForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 订单号
*/
orderNo?: string;
/**
* 客户名称
*/
customerName?: string;
/**
* 客户类型
*/
customerType?: number;
/**
* 租赁周期
*/
rentalPeriod?: number;
/**
* 租赁开始时间
*/
startTime?: string;
/**
* 租赁结束时间
*/
endTime?: string;
/**
* 应付总额
*/
totalAmount?: number;
/**
* 租赁方式
*/
rentalType?: number;
/**
* 租赁方案id
*/
planId?: string | number;
/**
* 绿植产品id
*/
productId?: string | number;
/**
* 租赁产品数量
*/
productNum?: number;
/**
* 支付状态
*/
paymentStatus?: number;
/**
* 是否续租
*/
isRelet?: number;
/**
* 合同状态
*/
contractStatus?: number;
/**
* 签署时间
*/
signTime?: string;
}
export interface RentalOrderQuery extends PageQuery {
/**
* 订单号
*/
orderNo?: string;
/**
* 客户名称
*/
customerName?: string;
/**
* 客户类型
*/
customerType?: number;
/**
* 租赁周期
*/
rentalPeriod?: number;
/**
* 租赁开始时间
*/
startTime?: string;
/**
* 租赁结束时间
*/
endTime?: string;
/**
* 应付总额
*/
totalAmount?: number;
/**
* 租赁方式
*/
rentalType?: number;
/**
* 租赁方案id
*/
planId?: string | number;
/**
* 绿植产品id
*/
productId?: string | number;
/**
* 租赁产品数量
*/
productNum?: number;
/**
* 支付状态
*/
paymentStatus?: number;
/**
* 是否续租
*/
isRelet?: number;
/**
* 合同状态
*/
contractStatus?: number;
/**
* 签署时间
*/
signTime?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -0,0 +1,61 @@
import type { RentalPlanVO, RentalPlanForm, RentalPlanQuery } 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 rentalPlanList(params?: RentalPlanQuery) {
return requestClient.get<PageResult<RentalPlanVO>>('/property/rentalPlan/list', { params });
}
/**
* 导出绿植租赁-租赁方案列表
* @param params
* @returns 绿植租赁-租赁方案列表
*/
export function rentalPlanExport(params?: RentalPlanQuery) {
return commonExport('/property/rentalPlan/export', params ?? {});
}
/**
* 查询绿植租赁-租赁方案详情
* @param id id
* @returns 绿植租赁-租赁方案详情
*/
export function rentalPlanInfo(id: ID) {
return requestClient.get<RentalPlanVO>(`/property/rentalPlan/${id}`);
}
/**
* 新增绿植租赁-租赁方案
* @param data
* @returns void
*/
export function rentalPlanAdd(data: RentalPlanForm) {
return requestClient.postWithMsg<void>('/property/rentalPlan', data);
}
/**
* 更新绿植租赁-租赁方案
* @param data
* @returns void
*/
export function rentalPlanUpdate(data: RentalPlanForm) {
return requestClient.putWithMsg<void>('/property/rentalPlan', data);
}
/**
* 删除绿植租赁-租赁方案
* @param id id
* @returns void
*/
export function rentalPlanRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/rentalPlan/${id}`);
}

View File

@@ -0,0 +1,114 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface RentalPlanVO {
/**
* 主键
*/
id: string | number;
/**
* 方案名称
*/
planName: string;
/**
* 租赁周期
*/
rentalPeriod: number;
/**
* 适用场景
*/
scene: string;
/**
* 价格
*/
price: number;
/**
* 状态
*/
state: number;
/**
* 备注
*/
remarks: string;
}
export interface RentalPlanForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 方案名称
*/
planName?: string;
/**
* 租赁周期
*/
rentalPeriod?: number;
/**
* 适用场景
*/
scene?: string;
/**
* 价格
*/
price?: number;
/**
* 状态
*/
state?: number;
/**
* 备注
*/
remarks?: string;
}
export interface RentalPlanQuery extends PageQuery {
/**
* 方案名称
*/
planName?: string;
/**
* 租赁周期
*/
rentalPeriod?: number;
/**
* 适用场景
*/
scene?: string;
/**
* 价格
*/
price?: number;
/**
* 状态
*/
state?: number;
/**
* 备注
*/
remarks?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -0,0 +1,61 @@
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';
/**
* 查询房间信息列表
* @param params
* @returns 房间信息列表
*/
export function roomList(params?: RoomQuery) {
return requestClient.get<PageResult<RoomVO>>('/property/room/list', { params });
}
/**
* 导出房间信息列表
* @param params
* @returns 房间信息列表
*/
export function roomExport(params?: RoomQuery) {
return commonExport('/property/room/export', params ?? {});
}
/**
* 查询房间信息详情
* @param id id
* @returns 房间信息详情
*/
export function roomInfo(id: ID) {
return requestClient.get<RoomVO>(`/property/room/${id}`);
}
/**
* 新增房间信息
* @param data
* @returns void
*/
export function roomAdd(data: RoomForm) {
return requestClient.postWithMsg<void>('/property/room', data);
}
/**
* 更新房间信息
* @param data
* @returns void
*/
export function roomUpdate(data: RoomForm) {
return requestClient.putWithMsg<void>('/property/room', data);
}
/**
* 删除房间信息
* @param id id
* @returns void
*/
export function roomRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/room/${id}`);
}

View File

@@ -0,0 +1,159 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface RoomVO {
/**
* 主键
*/
id: string | number;
/**
* 所属楼层ID
*/
floorCode: string;
/**
* 房间编码
*/
roomCode: string;
/**
* 房间号(如101,202)
*/
roomNumber: string;
/**
* 房间类型('住宅','商铺','办公室','设备间','公共区域')
*/
roomType: number;
/**
* 面积(平方米)
*/
area: number;
/**
* 户型(如2室1厅1卫)
*/
layout: string;
/**
* 朝向('东','南','西','北','东南','东北','西南','西北')
*/
orientation: number;
/**
* 是否可售
*/
isForSale: number;
/**
* 状态('空置','已售','已租','自用'
*/
status: number;
}
export interface RoomForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 所属楼层ID
*/
floorCode?: string;
/**
* 房间编码
*/
roomCode?: string;
/**
* 房间号(如101,202)
*/
roomNumber?: string;
/**
* 房间类型('住宅','商铺','办公室','设备间','公共区域')
*/
roomType?: number;
/**
* 面积(平方米)
*/
area?: number;
/**
* 户型(如2室1厅1卫)
*/
layout?: string;
/**
* 朝向('东','南','西','北','东南','东北','西南','西北')
*/
orientation?: number;
/**
* 是否可售
*/
isForSale?: number;
/**
* 状态('空置','已售','已租','自用'
*/
status?: number;
}
export interface RoomQuery extends PageQuery {
/**
* 所属楼层ID
*/
floorCode?: string;
/**
* 房间编码
*/
roomCode?: string;
/**
* 房间号(如101,202)
*/
roomNumber?: string;
/**
* 房间类型('住宅','商铺','办公室','设备间','公共区域')
*/
roomType?: number;
/**
* 面积(平方米)
*/
area?: number;
/**
* 户型(如2室1厅1卫)
*/
layout?: string;
/**
* 朝向('东','南','西','北','东南','东北','西南','西北')
*/
orientation?: number;
/**
* 是否可售
*/
isForSale?: number;
/**
* 状态('空置','已售','已租','自用'
*/
status?: number;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -0,0 +1,61 @@
import type { UnitVO, UnitForm, UnitQuery } 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 unitList(params?: UnitQuery) {
return requestClient.get<PageResult<UnitVO>>('/property/unit/list', { params });
}
/**
* 导出单元列表
* @param params
* @returns 单元列表
*/
export function unitExport(params?: UnitQuery) {
return commonExport('/property/unit/export', params ?? {});
}
/**
* 查询单元详情
* @param id id
* @returns 单元详情
*/
export function unitInfo(id: ID) {
return requestClient.get<UnitVO>(`/property/unit/${id}`);
}
/**
* 新增单元
* @param data
* @returns void
*/
export function unitAdd(data: UnitForm) {
return requestClient.postWithMsg<void>('/property/unit', data);
}
/**
* 更新单元
* @param data
* @returns void
*/
export function unitUpdate(data: UnitForm) {
return requestClient.putWithMsg<void>('/property/unit', data);
}
/**
* 删除单元
* @param id id
* @returns void
*/
export function unitRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/unit/${id}`);
}

View File

@@ -0,0 +1,114 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface UnitVO {
/**
* 主键id
*/
id: string | number;
/**
* 建筑名称
*/
buildingCode: string;
/**
* 单元编码
*/
unitCode: string;
/**
* 单元名称
*/
unitName: string;
/**
* 单元层数
*/
floorCount: number;
/**
* 单元户数
*/
householdCount: number;
/**
* 楼梯数量
*/
stairCount: number;
}
export interface UnitForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 建筑名称
*/
buildingCode?: string;
/**
* 单元编码
*/
unitCode?: string;
/**
* 单元名称
*/
unitName?: string;
/**
* 单元层数
*/
floorCount?: number;
/**
* 单元户数
*/
householdCount?: number;
/**
* 楼梯数量
*/
stairCount?: number;
}
export interface UnitQuery extends PageQuery {
/**
* 建筑名称
*/
buildingCode?: string;
/**
* 单元编码
*/
unitCode?: string;
/**
* 单元名称
*/
unitName?: string;
/**
* 单元层数
*/
floorCount?: number;
/**
* 单元户数
*/
householdCount?: number;
/**
* 楼梯数量
*/
stairCount?: number;
/**
* 日期范围参数
*/
params?: any;
}