feat: 初始化车辆收费、水电抄表页面
This commit is contained in:
61
apps/web-antd/src/api/property/carCharge/index.ts
Normal file
61
apps/web-antd/src/api/property/carCharge/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { CarChargeVO, CarChargeForm, CarChargeQuery } 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 carChargeList(params?: CarChargeQuery) {
|
||||
return requestClient.get<PageResult<CarChargeVO>>('/property/carCharge/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出费用-车辆收费列表
|
||||
* @param params
|
||||
* @returns 费用-车辆收费列表
|
||||
*/
|
||||
export function carChargeExport(params?: CarChargeQuery) {
|
||||
return commonExport('/property/carCharge/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询费用-车辆收费详情
|
||||
* @param id id
|
||||
* @returns 费用-车辆收费详情
|
||||
*/
|
||||
export function carChargeInfo(id: ID) {
|
||||
return requestClient.get<CarChargeVO>(`/property/carCharge/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增费用-车辆收费
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function carChargeAdd(data: CarChargeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/carCharge', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新费用-车辆收费
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function carChargeUpdate(data: CarChargeForm) {
|
||||
return requestClient.putWithMsg<void>('/property/carCharge', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除费用-车辆收费
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function carChargeRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/carCharge/${id}`);
|
||||
}
|
169
apps/web-antd/src/api/property/carCharge/model.d.ts
vendored
Normal file
169
apps/web-antd/src/api/property/carCharge/model.d.ts
vendored
Normal file
@@ -0,0 +1,169 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface CarChargeVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 车牌号
|
||||
*/
|
||||
carNumber: string;
|
||||
|
||||
/**
|
||||
* 业主
|
||||
*/
|
||||
personId: string | number;
|
||||
|
||||
/**
|
||||
* 楼层
|
||||
*/
|
||||
floorId: string | number;
|
||||
|
||||
/**
|
||||
* 车位
|
||||
*/
|
||||
location: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: string;
|
||||
|
||||
/**
|
||||
* 收费项目
|
||||
*/
|
||||
costItemsId: string | number;
|
||||
|
||||
/**
|
||||
* 计费开始时间
|
||||
*/
|
||||
starTime: string;
|
||||
|
||||
/**
|
||||
* 计费结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface CarChargeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 车牌号
|
||||
*/
|
||||
carNumber?: string;
|
||||
|
||||
/**
|
||||
* 业主
|
||||
*/
|
||||
personId?: string | number;
|
||||
|
||||
/**
|
||||
* 楼层
|
||||
*/
|
||||
floorId?: string | number;
|
||||
|
||||
/**
|
||||
* 车位
|
||||
*/
|
||||
location?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 收费项目
|
||||
*/
|
||||
costItemsId?: string | number;
|
||||
|
||||
/**
|
||||
* 计费开始时间
|
||||
*/
|
||||
starTime?: string;
|
||||
|
||||
/**
|
||||
* 计费结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface CarChargeQuery extends PageQuery {
|
||||
/**
|
||||
* 车牌号
|
||||
*/
|
||||
carNumber?: string;
|
||||
|
||||
/**
|
||||
* 业主
|
||||
*/
|
||||
personId?: string | number;
|
||||
|
||||
/**
|
||||
* 楼层
|
||||
*/
|
||||
floorId?: string | number;
|
||||
|
||||
/**
|
||||
* 车位
|
||||
*/
|
||||
location?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 收费项目
|
||||
*/
|
||||
costItemsId?: string | number;
|
||||
|
||||
/**
|
||||
* 计费开始时间
|
||||
*/
|
||||
starTime?: string;
|
||||
|
||||
/**
|
||||
* 计费结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user