水电表基本搭建完成

This commit is contained in:
Zy
2026-04-27 08:08:30 +08:00
parent ab736fa15f
commit 826b22e206
26 changed files with 2208 additions and 393 deletions

View File

@@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { BillVO, BillForm, BillQuery } from './type';
/**
* 查询账单管理列表
* @param query
* @returns {*}
*/
export const listBill = (query?: BillQuery): AxiosPromise<BillVO[]> => {
return request({
url: '/bill/list',
method: 'get',
params: query
});
};
/**
* 查询账单管理详细
* @param id
*/
export const getBill = (id: string | number): AxiosPromise<BillVO> => {
return request({
url: '/bill/' + id,
method: 'get'
});
};
/**
* 新增账单管理
* @param data
*/
export const addBill = (data: BillForm) => {
return request({
url: '/bill',
method: 'post',
data: data
});
};
/**
* 修改账单管理
* @param data
*/
export const updateBill = (data: BillForm) => {
return request({
url: '/bill',
method: 'put',
data: data
});
};
/**
* 删除账单管理
* @param id
*/
export const delBill = (id: string | number | Array<string | number>) => {
return request({
url: '/bill/' + id,
method: 'delete'
});
};

View File

@@ -0,0 +1,150 @@
export interface BillVO {
/**
* 账单管理表id
*/
id: string;
/**
* 账单编号
*/
billCode: string;
/**
* 收费项目id
*/
chargeItemId: string;
/**
* 收费范围 0全体业主 1部分业主
*/
chargeScope: string;
/**
* 收费周期 0年 1月 2日
*/
chargePeriod: string;
/**
* 开始日期
*/
startDate: string;
/**
* 结束日期
*/
endDate: string;
/**
* 小区id
*/
villageId: number;
/**
* 备注
*/
remark: string;
/**
* 创建时间
*/
cerateTime: string;
}
export interface BillForm extends BaseEntity {
/**
* 账单管理表id
*/
id?: string | number;
/**
* 账单编号
*/
billCode?: string;
/**
* 收费项目id
*/
chargeItemId?: string | number;
/**
* 收费范围 0全体业主 1部分业主
*/
chargeScope?: string;
/**
* 收费周期 0年 1月 2日
*/
chargePeriod?: string;
/**
* 开始日期
*/
startDate?: string;
/**
* 结束日期
*/
endDate?: string;
/**
* 小区id
*/
villageId?: string | number;
/**
* 备注
*/
remark?: string;
/**
* 创建时间
*/
cerateTime?: string;
}
export interface BillQuery extends PageQuery {
/**
* 账单编号
*/
billCode?: string;
/**
* 收费项目id
*/
chargeItemId?: string | number;
/**
* 收费范围 0全体业主 1部分业主
*/
chargeScope?: string;
/**
* 收费周期 0年 1月 2日
*/
chargePeriod?: string;
/**
* 开始日期
*/
startDate?: string;
/**
* 结束日期
*/
endDate?: string;
/**
* 小区id
*/
villageId?: string | number;
/**
* 创建时间
*/
cerateTime?: string;
/**
* 日期范围参数
*/
params?: any;
}