1、房屋收费
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

2、退费审核
3、房间添加套内面积
This commit is contained in:
2025-07-18 18:40:13 +08:00
parent 8c606397df
commit a5f93c3a6c
21 changed files with 1801 additions and 96 deletions

View File

@@ -0,0 +1,61 @@
import type { HouseChargeVO, HouseChargeForm, HouseChargeQuery } 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 houseChargeList(params?: HouseChargeQuery) {
return requestClient.get<PageResult<HouseChargeVO>>('/property/houseCharge/list', { params });
}
/**
* 导出房屋收费列表
* @param params
* @returns 房屋收费列表
*/
export function houseChargeExport(params?: HouseChargeQuery) {
return commonExport('/property/houseCharge/export', params ?? {});
}
/**
* 查询房屋收费详情
* @param id id
* @returns 房屋收费详情
*/
export function houseChargeInfo(id: ID) {
return requestClient.get<HouseChargeVO>(`/property/houseCharge/${id}`);
}
/**
* 新增房屋收费
* @param data
* @returns void
*/
export function houseChargeAdd(data: HouseChargeForm) {
return requestClient.postWithMsg<void>('/property/houseCharge', data);
}
/**
* 更新房屋收费
* @param data
* @returns void
*/
export function houseChargeUpdate(data: HouseChargeForm) {
return requestClient.putWithMsg<void>('/property/houseCharge', data);
}
/**
* 删除房屋收费
* @param id id
* @returns void
*/
export function houseChargeRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/houseCharge/${id}`);
}

View File

@@ -0,0 +1,130 @@
import type {PageQuery, BaseEntity} from '#/api/common';
export interface HouseChargeVO {
/**
* 主键
*/
id: string | number;
/**
* 房屋
*/
roomId: string | number;
/**
* 收费项目
*/
costItemsId: string | number;
/**
* 应收金额
*/
amountReceivable: number;
/**
* 计费开始时间
*/
startTime: string;
/**
* 计费结束时间
*/
endTime: string;
/**
* 状态
*/
state: string;
/**
* 说明
*/
remark: string;
chargeTime: any[];
/**
* 缴费周期
*/
chargeCycle: number;
}
export interface HouseChargeForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 房屋
*/
roomId?: string | number;
/**
* 收费项目
*/
costItemsId?: string | number;
/**
* 应收金额
*/
amountReceivable?: number;
/**
* 计费开始时间
*/
startTime?: string;
/**
* 计费结束时间
*/
endTime?: string;
/**
* 状态
*/
state?: string;
/**
* 说明
*/
remark?: string;
}
export interface HouseChargeQuery extends PageQuery {
/**
* 房屋
*/
roomId?: string | number;
/**
* 收费项目
*/
costItemsId?: string | number;
/**
* 应收金额
*/
amountReceivable?: number;
/**
* 计费开始时间
*/
startTime?: string;
/**
* 计费结束时间
*/
endTime?: string;
/**
* 状态
*/
state?: string;
/**
* 日期范围参数
*/
params?: any;
}