feat: 初始化车辆收费、水电抄表页面
This commit is contained in:
61
apps/web-antd/src/api/property/costMeterWater/index.ts
Normal file
61
apps/web-antd/src/api/property/costMeterWater/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { CostMeterWaterVO, CostMeterWaterForm, CostMeterWaterQuery } 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 costMeterWaterList(params?: CostMeterWaterQuery) {
|
||||
return requestClient.get<PageResult<CostMeterWaterVO>>('/property/costMeterWater/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出费用-水电抄列表
|
||||
* @param params
|
||||
* @returns 费用-水电抄列表
|
||||
*/
|
||||
export function costMeterWaterExport(params?: CostMeterWaterQuery) {
|
||||
return commonExport('/property/costMeterWater/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询费用-水电抄详情
|
||||
* @param id id
|
||||
* @returns 费用-水电抄详情
|
||||
*/
|
||||
export function costMeterWaterInfo(id: ID) {
|
||||
return requestClient.get<CostMeterWaterVO>(`/property/costMeterWater/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增费用-水电抄
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function costMeterWaterAdd(data: CostMeterWaterForm) {
|
||||
return requestClient.postWithMsg<void>('/property/costMeterWater', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新费用-水电抄
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function costMeterWaterUpdate(data: CostMeterWaterForm) {
|
||||
return requestClient.putWithMsg<void>('/property/costMeterWater', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除费用-水电抄
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function costMeterWaterRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/costMeterWater/${id}`);
|
||||
}
|
157
apps/web-antd/src/api/property/costMeterWater/model.d.ts
vendored
Normal file
157
apps/web-antd/src/api/property/costMeterWater/model.d.ts
vendored
Normal file
@@ -0,0 +1,157 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface CostMeterWaterVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 费用类型id
|
||||
*/
|
||||
itemId: string | number;
|
||||
|
||||
/**
|
||||
* 抄表类型id
|
||||
*/
|
||||
meterTypeId: string | number;
|
||||
|
||||
/**
|
||||
* 对象名称
|
||||
*/
|
||||
objName: string;
|
||||
|
||||
/**
|
||||
* 本期度数
|
||||
*/
|
||||
curDegrees: string;
|
||||
|
||||
/**
|
||||
* 上期度数
|
||||
*/
|
||||
preDegrees: string;
|
||||
|
||||
/**
|
||||
* 上期读表时间
|
||||
|
||||
*/
|
||||
preReadingTime: string;
|
||||
|
||||
/**
|
||||
* 本期读表时间
|
||||
*/
|
||||
curReadingTime: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface CostMeterWaterForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 费用类型id
|
||||
*/
|
||||
itemId?: string | number;
|
||||
|
||||
/**
|
||||
* 抄表类型id
|
||||
*/
|
||||
meterTypeId?: string | number;
|
||||
|
||||
/**
|
||||
* 对象名称
|
||||
*/
|
||||
objName?: string;
|
||||
|
||||
/**
|
||||
* 本期度数
|
||||
*/
|
||||
curDegrees?: string;
|
||||
|
||||
/**
|
||||
* 上期度数
|
||||
*/
|
||||
preDegrees?: string;
|
||||
|
||||
/**
|
||||
* 上期读表时间
|
||||
|
||||
*/
|
||||
preReadingTime?: string;
|
||||
|
||||
/**
|
||||
* 本期读表时间
|
||||
*/
|
||||
curReadingTime?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface CostMeterWaterQuery extends PageQuery {
|
||||
/**
|
||||
* 费用类型id
|
||||
*/
|
||||
itemId?: string | number;
|
||||
|
||||
/**
|
||||
* 抄表类型id
|
||||
*/
|
||||
meterTypeId?: string | number;
|
||||
|
||||
/**
|
||||
* 对象名称
|
||||
*/
|
||||
objName?: string;
|
||||
|
||||
/**
|
||||
* 本期度数
|
||||
*/
|
||||
curDegrees?: string;
|
||||
|
||||
/**
|
||||
* 上期度数
|
||||
*/
|
||||
preDegrees?: string;
|
||||
|
||||
/**
|
||||
* 上期读表时间
|
||||
|
||||
*/
|
||||
preReadingTime?: string;
|
||||
|
||||
/**
|
||||
* 本期读表时间
|
||||
*/
|
||||
curReadingTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user