页面路径完善

This commit is contained in:
Zy
2026-04-28 19:18:57 +08:00
parent bde3ca8ff1
commit 7b89144dd4
70 changed files with 573 additions and 221 deletions

View File

@@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ChargeTypeVO, ChargeTypeForm, ChargeTypeQuery } from './type';
/**
* 查询收费类型列表
* @param query
* @returns {*}
*/
export const listChargeType = (query?: ChargeTypeQuery): AxiosPromise<ChargeTypeVO[]> => {
return request({
url: '/chargeType/list',
method: 'get',
params: query
});
};
/**
* 查询收费类型详细
* @param id
*/
export const getChargeType = (id: string | number): AxiosPromise<ChargeTypeVO> => {
return request({
url: '/chargeType/' + id,
method: 'get'
});
};
/**
* 新增收费类型
* @param data
*/
export const addChargeType = (data: ChargeTypeForm) => {
return request({
url: '/chargeType',
method: 'post',
data: data
});
};
/**
* 修改收费类型
* @param data
*/
export const updateChargeType = (data: ChargeTypeForm) => {
return request({
url: '/chargeType',
method: 'put',
data: data
});
};
/**
* 删除收费类型
* @param id
*/
export const delChargeType = (id: string | number | Array<string | number>) => {
return request({
url: '/chargeType/' + id,
method: 'delete'
});
};

View File

@@ -0,0 +1,66 @@
export interface ChargeTypeVO {
/**
* 收费类型表id
*/
id: string | number;
/**
* 收费类型名称
*/
name: string;
/**
* 状态 0启用 1停用
*/
status: string;
}
export interface ChargeTypeForm extends BaseEntity {
/**
* 收费类型表id
*/
id?: string | number;
/**
* 收费类型名称
*/
name?: string;
/**
* 状态 0启用 1停用
*/
status?: string;
}
export interface ChargeTypeQuery {
/**
* 收费类型名称
*/
name?: string;
/**
* 状态 0启用 1停用
*/
status?: string;
/**
* 日期范围参数
*/
params?: any;
}
export interface ChargeType2Query extends PageQuery {
/**
* 收费类型名称
*/
name?: string;
/**
* 状态 0启用 1停用
*/
status?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -8,6 +8,10 @@ export interface ChargeItemVO {
* 项目名称
*/
name: string;
/**
* 收费类型
*/
typeId: string;
/**
* 计费方式 0单次收费 1周期收费 2仪表收费

View File

@@ -6,7 +6,7 @@ export interface BuildingVo {
/**
* 0住宅 1办公 2商用 3公寓
*/
buildingUse: number;
buildingUse: string;
/**
* 楼栋结构
*/
@@ -68,7 +68,7 @@ export interface HouseType {
export interface addBuildingType {
buildingName: string;
villageId: number;
villageId?: number;
buildStructure?: string;
buildTall?: string;
buildToward?: string;

View File

@@ -3,7 +3,7 @@ export interface ResidentVO {
* 主键 住户管理id
*/
userId: string | number;
id: string;
/**
* 住户编号
*/