设备管理
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;
|
||||
}
|
Reference in New Issue
Block a user