费用管理

This commit is contained in:
FLL
2025-07-18 19:48:05 +08:00
parent 355d14ab9e
commit b81c30696b
8 changed files with 750 additions and 23 deletions

View File

@@ -0,0 +1,61 @@
import type { PaymentReviewVO, PaymentReviewForm, PaymentReviewQuery } 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 paymentReviewList(params?: PaymentReviewQuery) {
return requestClient.get<PageResult<PaymentReviewVO>>('/property/payFeeAudit/list', { params });
}
/**
* 导出缴费审核列表
* @param params
* @returns 缴费审核列表
*/
export function paymentReviewExport(params?: PaymentReviewQuery) {
return commonExport('/property/payFeeAudit/export', params ?? {});
}
/**
* 查询缴费审核详情
* @param id id
* @returns 缴费审核详情
*/
export function paymentReviewInfo(id: ID) {
return requestClient.get<PaymentReviewVO>(`/property/payFeeAudit/${id}`);
}
/**
* 新增缴费审核
* @param data
* @returns void
*/
export function paymentReviewAdd(data: PaymentReviewForm) {
return requestClient.postWithMsg<void>('/property/payFeeAudit', data);
}
/**
* 更新缴费审核
* @param data
* @returns void
*/
export function paymentReviewUpdate(data: PaymentReviewForm) {
return requestClient.putWithMsg<void>('/property/payFeeAudit', data);
}
/**
* 删除缴费审核
* @param id id
* @returns void
*/
export function paymentReviewRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/payFeeAudit/${id}`);
}

View File

@@ -0,0 +1,175 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface PaymentReviewVO {
/**
* 主键
*/
id: string | number;
/**
* 房屋收费id
*/
houseChargeId: string | number;
/**
* 费用项目id
*/
itemId: string | number;
/**
* 缴费开始时间
*/
startTime: string;
/**
* 缴费结束时间
*/
endTime: string;
/**
* 实付金额
*/
receivedAmount: string;
/**
* 应收金额
*/
receivableAmount: number;
/**
* 缴费时间
*/
payTime: string;
/**
* 审核状态
*/
state: string;
/**
* 备注
*/
remark: string;
/**
* 搜索值
*/
searchValue: string;
}
export interface PaymentReviewForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 房屋收费id
*/
houseChargeId?: string | number;
/**
* 费用项目id
*/
itemId?: string | number;
/**
* 缴费开始时间
*/
startTime?: string;
/**
* 缴费结束时间
*/
endTime?: string;
/**
* 实付金额
*/
receivedAmount?: string;
/**
* 应收金额
*/
receivableAmount?: number;
/**
* 缴费时间
*/
payTime?: string;
/**
* 审核状态
*/
state?: string;
/**
* 备注
*/
remark?: string;
/**
* 搜索值
*/
searchValue?: string;
}
export interface PaymentReviewQuery extends PageQuery {
/**
* 房屋收费id
*/
houseChargeId?: string | number;
/**
* 费用项目id
*/
itemId?: string | number;
/**
* 缴费开始时间
*/
startTime?: string;
/**
* 缴费结束时间
*/
endTime?: string;
/**
* 实付金额
*/
receivedAmount?: string;
/**
* 应收金额
*/
receivableAmount?: number;
/**
* 缴费时间
*/
payTime?: string;
/**
* 审核状态
*/
state?: string;
/**
* 搜索值
*/
searchValue?: string;
/**
* 日期范围参数
*/
params?: any;
}