1、单元
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7m16s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7m16s
2、房间
This commit is contained in:
61
apps/web-antd/src/api/property/rentalOrder/index.ts
Normal file
61
apps/web-antd/src/api/property/rentalOrder/index.ts
Normal 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}`);
|
||||
}
|
249
apps/web-antd/src/api/property/rentalOrder/model.d.ts
vendored
Normal file
249
apps/web-antd/src/api/property/rentalOrder/model.d.ts
vendored
Normal 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;
|
||||
}
|
61
apps/web-antd/src/api/property/room/index.ts
Normal file
61
apps/web-antd/src/api/property/room/index.ts
Normal 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}`);
|
||||
}
|
159
apps/web-antd/src/api/property/room/model.d.ts
vendored
Normal file
159
apps/web-antd/src/api/property/room/model.d.ts
vendored
Normal 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;
|
||||
}
|
61
apps/web-antd/src/api/property/unit/index.ts
Normal file
61
apps/web-antd/src/api/property/unit/index.ts
Normal 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}`);
|
||||
}
|
114
apps/web-antd/src/api/property/unit/model.d.ts
vendored
Normal file
114
apps/web-antd/src/api/property/unit/model.d.ts
vendored
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user