设备管理
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
FLL
2025-07-17 14:21:32 +08:00
parent 0effa0b48f
commit 3389a864d1
5 changed files with 804 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
import type { CostItemSettingVO, CostItemSettingForm, CostItemSettingQuery } 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 costItemSettingList(params?: CostItemSettingQuery) {
return requestClient.get<PageResult<CostItemSettingVO>>('/property/costItemSetting/list', { params });
}
/**
* 导出费用项设置列表
* @param params
* @returns 费用项设置列表
*/
export function costItemSettingExport(params?: CostItemSettingQuery) {
return commonExport('/property/costItemSetting/export', params ?? {});
}
/**
* 查询费用项设置详情
* @param id id
* @returns 费用项设置详情
*/
export function costItemSettingInfo(id: ID) {
return requestClient.get<CostItemSettingVO>(`/property/costItemSetting/${id}`);
}
/**
* 新增费用项设置
* @param data
* @returns void
*/
export function costItemSettingAdd(data: CostItemSettingForm) {
return requestClient.postWithMsg<void>('/property/costItemSetting', data);
}
/**
* 更新费用项设置
* @param data
* @returns void
*/
export function costItemSettingUpdate(data: CostItemSettingForm) {
return requestClient.putWithMsg<void>('/property/costItemSetting', data);
}
/**
* 删除费用项设置
* @param id id
* @returns void
*/
export function costItemSettingRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/costItemSetting/${id}`);
}

View File

@@ -0,0 +1,219 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface CostItemSettingVO {
/**
* 主键
*/
id: string | number;
/**
* 费用类型
*/
costType: string;
/**
* 收费项目
*/
chargeItem: string;
/**
* 费用标识
*/
costMark: string;
/**
* 付费类型
*/
paymentType: string;
/**
* 缴费周期(月)
*/
chargeCycle: number;
/**
* 是否手机缴费
*/
isMobilePay: string;
/**
* 进位方式
*/
roundingMode: string;
/**
* 保留小数
*/
currencyDecimals: string;
/**
* 启用状态
*/
state: string;
/**
* 计算公式
*/
formula: string;
/**
* 计费单价
*/
unitPrice: number;
/**
* 附加费
*/
surcharge: number;
/**
* 搜索值
*/
searchValue: string;
}
export interface CostItemSettingForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 费用类型
*/
costType?: string;
/**
* 收费项目
*/
chargeItem?: string;
/**
* 费用标识
*/
costMark?: string;
/**
* 付费类型
*/
paymentType?: string;
/**
* 缴费周期(月)
*/
chargeCycle?: number;
/**
* 是否手机缴费
*/
isMobilePay?: string;
/**
* 进位方式
*/
roundingMode?: string;
/**
* 保留小数
*/
currencyDecimals?: string;
/**
* 启用状态
*/
state?: string;
/**
* 计算公式
*/
formula?: string;
/**
* 计费单价
*/
unitPrice?: number;
/**
* 附加费
*/
surcharge?: number;
/**
* 搜索值
*/
searchValue?: string;
}
export interface CostItemSettingQuery extends PageQuery {
/**
* 费用类型
*/
costType?: string;
/**
* 收费项目
*/
chargeItem?: string;
/**
* 费用标识
*/
costMark?: string;
/**
* 付费类型
*/
paymentType?: string;
/**
* 缴费周期(月)
*/
chargeCycle?: number;
/**
* 是否手机缴费
*/
isMobilePay?: string;
/**
* 进位方式
*/
roundingMode?: string;
/**
* 保留小数
*/
currencyDecimals?: string;
/**
* 启用状态
*/
state?: string;
/**
* 计算公式
*/
formula?: string;
/**
* 计费单价
*/
unitPrice?: number;
/**
* 附加费
*/
surcharge?: number;
/**
* 搜索值
*/
searchValue?: string;
/**
* 日期范围参数
*/
params?: any;
}