Merge branch 'master' of http://47.109.37.87:3000/by2025/admin-vben5
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
@@ -12,7 +12,7 @@ import { requestClient } from '#/api/request';
|
||||
* @returns 费用项设置列表
|
||||
*/
|
||||
export function costItemSettingList(params?: CostItemSettingQuery) {
|
||||
return requestClient.get<PageResult<CostItemSettingVO>>('/property/costItemSetting/list', { params });
|
||||
return requestClient.get<PageResult<CostItemSettingVO>>('/property/costItems/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -21,7 +21,7 @@ export function costItemSettingList(params?: CostItemSettingQuery) {
|
||||
* @returns 费用项设置列表
|
||||
*/
|
||||
export function costItemSettingExport(params?: CostItemSettingQuery) {
|
||||
return commonExport('/property/costItemSetting/export', params ?? {});
|
||||
return commonExport('/property/costItems/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -30,7 +30,7 @@ export function costItemSettingExport(params?: CostItemSettingQuery) {
|
||||
* @returns 费用项设置详情
|
||||
*/
|
||||
export function costItemSettingInfo(id: ID) {
|
||||
return requestClient.get<CostItemSettingVO>(`/property/costItemSetting/${id}`);
|
||||
return requestClient.get<CostItemSettingVO>(`/property/costItems/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,7 +39,7 @@ export function costItemSettingInfo(id: ID) {
|
||||
* @returns void
|
||||
*/
|
||||
export function costItemSettingAdd(data: CostItemSettingForm) {
|
||||
return requestClient.postWithMsg<void>('/property/costItemSetting', data);
|
||||
return requestClient.postWithMsg<void>('/property/costItems', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -48,7 +48,7 @@ export function costItemSettingAdd(data: CostItemSettingForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function costItemSettingUpdate(data: CostItemSettingForm) {
|
||||
return requestClient.putWithMsg<void>('/property/costItemSetting', data);
|
||||
return requestClient.putWithMsg<void>('/property/costItems', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -57,5 +57,5 @@ export function costItemSettingUpdate(data: CostItemSettingForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function costItemSettingRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/costItemSetting/${id}`);
|
||||
return requestClient.deleteWithMsg<void>(`/property/costItems/${id}`);
|
||||
}
|
||||
|
@@ -0,0 +1,61 @@
|
||||
import type { MeterReadingTypeVO, MeterReadingTypeForm, MeterReadingTypeQuery } 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 meterReadingTypeList(params?: MeterReadingTypeQuery) {
|
||||
return requestClient.get<PageResult<MeterReadingTypeVO>>('/property/meterReadingType/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出抄表类型列表
|
||||
* @param params
|
||||
* @returns 抄表类型列表
|
||||
*/
|
||||
export function meterReadingTypeExport(params?: MeterReadingTypeQuery) {
|
||||
return commonExport('/property/meterReadingType/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询抄表类型详情
|
||||
* @param id id
|
||||
* @returns 抄表类型详情
|
||||
*/
|
||||
export function meterReadingTypeInfo(id: ID) {
|
||||
return requestClient.get<MeterReadingTypeVO>(`/property/meterReadingType/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增抄表类型
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterReadingTypeAdd(data: MeterReadingTypeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/meterReadingType', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新抄表类型
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterReadingTypeUpdate(data: MeterReadingTypeForm) {
|
||||
return requestClient.putWithMsg<void>('/property/meterReadingType', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除抄表类型
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function meterReadingTypeRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/meterReadingType/${id}`);
|
||||
}
|
79
apps/web-antd/src/api/property/costManagement/meterReadingType/model.d.ts
vendored
Normal file
79
apps/web-antd/src/api/property/costManagement/meterReadingType/model.d.ts
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface MeterReadingTypeVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 抄表类型
|
||||
*/
|
||||
meterType: string;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeterReadingTypeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 抄表类型
|
||||
*/
|
||||
meterType?: string;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeterReadingTypeQuery extends PageQuery {
|
||||
/**
|
||||
* 抄表类型
|
||||
*/
|
||||
meterType?: string;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
61
apps/web-antd/src/api/property/meter/index.ts
Normal file
61
apps/web-antd/src/api/property/meter/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { MeterVO, MeterForm, MeterQuery } 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 meterList(params?: MeterQuery) {
|
||||
return requestClient.get<PageResult<MeterVO>>('/property/meter/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出水电气列表
|
||||
* @param params
|
||||
* @returns 水电气列表
|
||||
*/
|
||||
export function meterExport(params?: MeterQuery) {
|
||||
return commonExport('/property/meter/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询水电气详情
|
||||
* @param id id
|
||||
* @returns 水电气详情
|
||||
*/
|
||||
export function meterInfo(id: ID) {
|
||||
return requestClient.get<MeterVO>(`/property/meter/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增水电气
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterAdd(data: MeterForm) {
|
||||
return requestClient.postWithMsg<void>('/property/meter', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新水电气
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterUpdate(data: MeterForm) {
|
||||
return requestClient.putWithMsg<void>('/property/meter', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除水电气
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function meterRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/meter/${id}`);
|
||||
}
|
229
apps/web-antd/src/api/property/meter/model.d.ts
vendored
Normal file
229
apps/web-antd/src/api/property/meter/model.d.ts
vendored
Normal file
@@ -0,0 +1,229 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface MeterVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 水表名称
|
||||
*/
|
||||
meterName: string;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
meterCode: string;
|
||||
|
||||
/**
|
||||
* 设备厂商
|
||||
*/
|
||||
factoryNo: string;
|
||||
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
meterType: number;
|
||||
|
||||
/**
|
||||
* 表用途(1-分表,2-总表,3-公摊表)
|
||||
*/
|
||||
meterPurpose: number;
|
||||
|
||||
/**
|
||||
* 分摊类型(1-不公摊,2-按分表用量,3-按租客面积,4-按房源数量,5-按固定比例)
|
||||
*/
|
||||
shareType: number;
|
||||
|
||||
/**
|
||||
* 付费类型(1-先付费,2-后付费)
|
||||
*/
|
||||
payType: number;
|
||||
|
||||
/**
|
||||
* 当前表显示读数
|
||||
*/
|
||||
display: number;
|
||||
|
||||
/**
|
||||
* 最大表显读数(超过归0)
|
||||
*/
|
||||
maxDisplay: number;
|
||||
|
||||
/**
|
||||
* 计费倍率
|
||||
*/
|
||||
billingRate: number;
|
||||
|
||||
/**
|
||||
* 剩余量
|
||||
*/
|
||||
surplus: number;
|
||||
|
||||
/**
|
||||
* 通信状态
|
||||
*/
|
||||
communicationState: number;
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
runningState: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeterForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 水表名称
|
||||
*/
|
||||
meterName?: string;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
meterCode?: string;
|
||||
|
||||
/**
|
||||
* 设备厂商
|
||||
*/
|
||||
factoryNo?: string;
|
||||
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
meterType?: number;
|
||||
|
||||
/**
|
||||
* 表用途(1-分表,2-总表,3-公摊表)
|
||||
*/
|
||||
meterPurpose?: number;
|
||||
|
||||
/**
|
||||
* 分摊类型(1-不公摊,2-按分表用量,3-按租客面积,4-按房源数量,5-按固定比例)
|
||||
*/
|
||||
shareType?: number;
|
||||
|
||||
/**
|
||||
* 付费类型(1-先付费,2-后付费)
|
||||
*/
|
||||
payType?: number;
|
||||
|
||||
/**
|
||||
* 当前表显示读数
|
||||
*/
|
||||
display?: number;
|
||||
|
||||
/**
|
||||
* 最大表显读数(超过归0)
|
||||
*/
|
||||
maxDisplay?: number;
|
||||
|
||||
/**
|
||||
* 计费倍率
|
||||
*/
|
||||
billingRate?: number;
|
||||
|
||||
/**
|
||||
* 剩余量
|
||||
*/
|
||||
surplus?: number;
|
||||
|
||||
/**
|
||||
* 通信状态
|
||||
*/
|
||||
communicationState?: number;
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
runningState?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeterQuery extends PageQuery {
|
||||
/**
|
||||
* 水表名称
|
||||
*/
|
||||
meterName?: string;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
meterCode?: string;
|
||||
|
||||
/**
|
||||
* 设备厂商
|
||||
*/
|
||||
factoryNo?: string;
|
||||
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
meterType?: number;
|
||||
|
||||
/**
|
||||
* 表用途(1-分表,2-总表,3-公摊表)
|
||||
*/
|
||||
meterPurpose?: number;
|
||||
|
||||
/**
|
||||
* 分摊类型(1-不公摊,2-按分表用量,3-按租客面积,4-按房源数量,5-按固定比例)
|
||||
*/
|
||||
shareType?: number;
|
||||
|
||||
/**
|
||||
* 付费类型(1-先付费,2-后付费)
|
||||
*/
|
||||
payType?: number;
|
||||
|
||||
/**
|
||||
* 当前表显示读数
|
||||
*/
|
||||
display?: number;
|
||||
|
||||
/**
|
||||
* 最大表显读数(超过归0)
|
||||
*/
|
||||
maxDisplay?: number;
|
||||
|
||||
/**
|
||||
* 计费倍率
|
||||
*/
|
||||
billingRate?: number;
|
||||
|
||||
/**
|
||||
* 剩余量
|
||||
*/
|
||||
surplus?: number;
|
||||
|
||||
/**
|
||||
* 通信状态
|
||||
*/
|
||||
communicationState?: number;
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
runningState?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user