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;
|
||||
}
|
Reference in New Issue
Block a user