车位区域管理完成
This commit is contained in:
63
src/api/system/carArea/index.ts
Normal file
63
src/api/system/carArea/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { AreaVO, AreaForm, AreaQuery } from '@/api/system/carArea/type';
|
||||
|
||||
/**
|
||||
* 查询车位区域管理列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listArea = (query?: AreaQuery): AxiosPromise<AreaVO[]> => {
|
||||
return request({
|
||||
url: '/area/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询车位区域管理详细
|
||||
* @param id
|
||||
*/
|
||||
export const getArea = (id: string | number): AxiosPromise<AreaVO> => {
|
||||
return request({
|
||||
url: '/area/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增车位区域管理
|
||||
* @param data
|
||||
*/
|
||||
export const addArea = (data: AreaForm) => {
|
||||
return request({
|
||||
url: '/area',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改车位区域管理
|
||||
* @param data
|
||||
*/
|
||||
export const updateArea = (data: AreaForm) => {
|
||||
return request({
|
||||
url: '/area',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除车位区域管理
|
||||
* @param id
|
||||
*/
|
||||
export const delArea = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/area/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
110
src/api/system/carArea/type.ts
Normal file
110
src/api/system/carArea/type.ts
Normal file
@@ -0,0 +1,110 @@
|
||||
export interface AreaVO {
|
||||
/**
|
||||
* 区域管理表id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 区域名称
|
||||
*/
|
||||
areaName: string;
|
||||
|
||||
/**
|
||||
* 区域编号
|
||||
*/
|
||||
areaCode: string;
|
||||
|
||||
/**
|
||||
* 面积(单位㎡)
|
||||
*/
|
||||
area: number;
|
||||
|
||||
/**
|
||||
* 车位数量
|
||||
*/
|
||||
parkingCount: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface AreaForm extends BaseEntity {
|
||||
/**
|
||||
* 区域管理表id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 区域名称
|
||||
*/
|
||||
areaName?: string;
|
||||
|
||||
/**
|
||||
* 区域编号
|
||||
*/
|
||||
areaCode?: string;
|
||||
|
||||
/**
|
||||
* 面积(单位㎡)
|
||||
*/
|
||||
area?: number;
|
||||
|
||||
/**
|
||||
* 车位数量
|
||||
*/
|
||||
parkingCount?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
createBy?: number;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: string;
|
||||
|
||||
/**
|
||||
* 修改者
|
||||
*/
|
||||
updateBy?: number;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
export interface AreaQuery extends PageQuery {
|
||||
/**
|
||||
* 区域名称
|
||||
*/
|
||||
areaName?: string;
|
||||
|
||||
/**
|
||||
* 区域编号
|
||||
*/
|
||||
areaCode?: string;
|
||||
|
||||
/**
|
||||
* 面积(单位㎡)
|
||||
*/
|
||||
area?: number;
|
||||
|
||||
/**
|
||||
* 车位数量
|
||||
*/
|
||||
parkingCount?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
@@ -87,4 +87,5 @@ export interface addHouseType {
|
||||
'internalArea': string;
|
||||
'shareArea': string;
|
||||
'houseType': string;
|
||||
houseUse: number;
|
||||
}
|
||||
|
||||
83
src/api/system/houseRental/index.ts
Normal file
83
src/api/system/houseRental/index.ts
Normal file
@@ -0,0 +1,83 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { HouseRentalVO, HouseRentalForm, HouseRentalQuery } from '@/api/system/type';
|
||||
|
||||
/**
|
||||
* 查询房屋租赁管理列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listHouseRental = (query?: HouseRentalQuery): AxiosPromise<HouseRentalVO[]> => {
|
||||
return request({
|
||||
url: '/houseRental/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询房屋租赁管理详细
|
||||
* @param id
|
||||
*/
|
||||
export const getHouseRental = (id: string | number): AxiosPromise<HouseRentalVO> => {
|
||||
return request({
|
||||
url: '/houseRental/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增房屋租赁管理
|
||||
* @param data
|
||||
*/
|
||||
export const addHouseRental = (data: HouseRentalForm) => {
|
||||
return request({
|
||||
url: '/houseRental',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改房屋租赁管理
|
||||
* @param data
|
||||
*/
|
||||
export const updateHouseRental = (data: HouseRentalForm) => {
|
||||
return request({
|
||||
url: '/houseRental',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除房屋租赁管理
|
||||
* @param id
|
||||
*/
|
||||
export const delHouseRental = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/houseRental/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 上传房屋图片
|
||||
* @param id
|
||||
*/
|
||||
interface uploadHouseImagetype {
|
||||
'success': {
|
||||
'url': 'string';
|
||||
'fileName': 'string';
|
||||
'ossId': 'string';
|
||||
}[];
|
||||
'error': string[];
|
||||
}
|
||||
export const uploadHouseImage = (formdata: FormData): AxiosPromise<uploadHouseImagetype> => {
|
||||
return request({
|
||||
url: '/houseRental/uploadImages',
|
||||
method: 'POST',
|
||||
data: formdata
|
||||
});
|
||||
};
|
||||
242
src/api/system/houseRental/type.ts
Normal file
242
src/api/system/houseRental/type.ts
Normal file
@@ -0,0 +1,242 @@
|
||||
export interface HouseRentalVO {
|
||||
/**
|
||||
* id 房屋租赁表id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 租户姓名
|
||||
*/
|
||||
rentalName: string;
|
||||
|
||||
/**
|
||||
* 租金 单位元
|
||||
*/
|
||||
rent: number;
|
||||
|
||||
/**
|
||||
* 0 整租 1 合租
|
||||
*/
|
||||
rentalType: number;
|
||||
|
||||
/**
|
||||
* 房屋朝向
|
||||
*/
|
||||
houseFace: string;
|
||||
|
||||
/**
|
||||
* 房屋面积
|
||||
*/
|
||||
houseArea: number;
|
||||
|
||||
/**
|
||||
* 楼层号
|
||||
*/
|
||||
floorNo: number;
|
||||
|
||||
/**
|
||||
* 入住时间
|
||||
*/
|
||||
inTime: string;
|
||||
|
||||
/**
|
||||
* 房屋设施(“,”隔开)
|
||||
*/
|
||||
facilities: string;
|
||||
|
||||
/**
|
||||
* 房屋照片url( "," 隔开)
|
||||
*/
|
||||
houseImageUrl: string;
|
||||
|
||||
/**
|
||||
* 补充租房信息
|
||||
*/
|
||||
supInfo: string;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
phone: number;
|
||||
|
||||
/**
|
||||
* 微信
|
||||
*/
|
||||
vx: string;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
email: string;
|
||||
|
||||
/**
|
||||
* 房屋id
|
||||
*/
|
||||
houseId: number;
|
||||
/**
|
||||
* 房屋用途
|
||||
*/
|
||||
houseUse?: number;
|
||||
/**
|
||||
* 租赁状态
|
||||
*/
|
||||
rentalStatus?: number;
|
||||
}
|
||||
|
||||
export interface HouseRentalForm extends BaseEntity {
|
||||
/**
|
||||
* id 房屋租赁表id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 租户姓名
|
||||
*/
|
||||
rentalName?: string;
|
||||
|
||||
/**
|
||||
* 租金 单位元
|
||||
*/
|
||||
rent?: number;
|
||||
|
||||
/**
|
||||
* 0 整租 1 合租
|
||||
*/
|
||||
rentalType?: number;
|
||||
|
||||
/**
|
||||
* 房屋朝向
|
||||
*/
|
||||
houseFace?: string;
|
||||
|
||||
/**
|
||||
* 房屋面积
|
||||
*/
|
||||
houseArea?: number;
|
||||
|
||||
/**
|
||||
* 楼层号
|
||||
*/
|
||||
floorNo?: number;
|
||||
|
||||
/**
|
||||
* 入住时间
|
||||
*/
|
||||
inTime?: string;
|
||||
|
||||
/**
|
||||
* 房屋设施(“,”隔开)
|
||||
*/
|
||||
facilities?: string;
|
||||
|
||||
/**
|
||||
* 房屋照片url( "," 隔开)
|
||||
*/
|
||||
houseImageUrl?: string;
|
||||
|
||||
/**
|
||||
* 补充租房信息
|
||||
*/
|
||||
supInfo?: string;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
phone?: number;
|
||||
|
||||
/**
|
||||
* 微信
|
||||
*/
|
||||
vx?: string;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
email?: string;
|
||||
|
||||
/**
|
||||
* 房屋id
|
||||
*/
|
||||
houseId?: string | number;
|
||||
}
|
||||
|
||||
export interface HouseRentalQuery extends PageQuery {
|
||||
/**
|
||||
* 房屋用途
|
||||
*/
|
||||
houseUse?: number;
|
||||
/**
|
||||
* 租户姓名
|
||||
*/
|
||||
rentalName?: string;
|
||||
|
||||
/**
|
||||
* 租金 单位元
|
||||
*/
|
||||
rent?: number;
|
||||
|
||||
/**
|
||||
* 0 整租 1 合租
|
||||
*/
|
||||
rentalType?: number;
|
||||
|
||||
/**
|
||||
* 房屋朝向
|
||||
*/
|
||||
houseFace?: string;
|
||||
|
||||
/**
|
||||
* 房屋面积
|
||||
*/
|
||||
houseArea?: number;
|
||||
|
||||
/**
|
||||
* 楼层号
|
||||
*/
|
||||
floorNo?: number;
|
||||
|
||||
/**
|
||||
* 入住时间
|
||||
*/
|
||||
inTime?: string;
|
||||
|
||||
/**
|
||||
* 房屋设施(“,”隔开)
|
||||
*/
|
||||
facilities?: string;
|
||||
|
||||
/**
|
||||
* 房屋照片url( "," 隔开)
|
||||
*/
|
||||
houseImageUrl?: string;
|
||||
|
||||
/**
|
||||
* 补充租房信息
|
||||
*/
|
||||
supInfo?: string;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
phone?: number;
|
||||
|
||||
/**
|
||||
* 微信
|
||||
*/
|
||||
vx?: string;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
email?: string;
|
||||
|
||||
/**
|
||||
* 房屋id
|
||||
*/
|
||||
houseId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
src/api/system/parking/index.ts
Normal file
63
src/api/system/parking/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ParkingVO, ParkingForm, ParkingQuery } from '@/api/system/parking/type';
|
||||
|
||||
/**
|
||||
* 查询车位管理列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listParking = (query?: ParkingQuery): AxiosPromise<ParkingVO[]> => {
|
||||
return request({
|
||||
url: '/parking/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询车位管理详细
|
||||
* @param id
|
||||
*/
|
||||
export const getParking = (id: string | number): AxiosPromise<ParkingVO> => {
|
||||
return request({
|
||||
url: '/parking/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增车位管理
|
||||
* @param data
|
||||
*/
|
||||
export const addParking = (data: ParkingForm) => {
|
||||
return request({
|
||||
url: '/parking',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改车位管理
|
||||
* @param data
|
||||
*/
|
||||
export const updateParking = (data: ParkingForm) => {
|
||||
return request({
|
||||
url: '/parking',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除车位管理
|
||||
* @param id
|
||||
*/
|
||||
export const delParking = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/parking/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
185
src/api/system/parking/type.ts
Normal file
185
src/api/system/parking/type.ts
Normal file
@@ -0,0 +1,185 @@
|
||||
export interface ParkingVO {
|
||||
/**
|
||||
* id车位管理表
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 区域id
|
||||
*/
|
||||
areaId: string | number;
|
||||
|
||||
/**
|
||||
* 车位编号
|
||||
*/
|
||||
parkingCode: string;
|
||||
|
||||
/**
|
||||
* 车位面积(单位㎡)
|
||||
*/
|
||||
parkingArea: number;
|
||||
|
||||
/**
|
||||
* 车位状态 0 闲置 1自用 2出租
|
||||
*/
|
||||
parkingStatus: number;
|
||||
|
||||
/**
|
||||
* 0产权车位 1公共停车位
|
||||
*/
|
||||
type: number;
|
||||
|
||||
/**
|
||||
* 住户id
|
||||
*/
|
||||
residentId: string | number;
|
||||
|
||||
/**
|
||||
* 添加时间
|
||||
*/
|
||||
addTime: string;
|
||||
|
||||
/**
|
||||
* 添加者
|
||||
*/
|
||||
addBy: number;
|
||||
|
||||
/**
|
||||
* 0 审核中 1 审核通过 2 审核不通过
|
||||
*/
|
||||
checkStatus: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface ParkingForm extends BaseEntity {
|
||||
/**
|
||||
* id车位管理表
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 区域id
|
||||
*/
|
||||
areaId?: string | number;
|
||||
|
||||
/**
|
||||
* 车位编号
|
||||
*/
|
||||
parkingCode?: string;
|
||||
|
||||
/**
|
||||
* 车位面积(单位㎡)
|
||||
*/
|
||||
parkingArea?: number;
|
||||
|
||||
/**
|
||||
* 车位状态 0 闲置 1自用 2出租
|
||||
*/
|
||||
parkingStatus?: number;
|
||||
|
||||
/**
|
||||
* 0产权车位 1公共停车位
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
/**
|
||||
* 住户id
|
||||
*/
|
||||
residentId?: string | number;
|
||||
|
||||
/**
|
||||
* 添加时间
|
||||
*/
|
||||
addTime?: string;
|
||||
|
||||
/**
|
||||
* 添加者
|
||||
*/
|
||||
addBy?: number;
|
||||
|
||||
/**
|
||||
* 0 审核中 1 审核通过 2 审核不通过
|
||||
*/
|
||||
checkStatus?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
createBy?: number;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: string;
|
||||
|
||||
/**
|
||||
* 修改者
|
||||
*/
|
||||
updateBy?: number;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
export interface ParkingQuery extends PageQuery {
|
||||
/**
|
||||
* 区域id
|
||||
*/
|
||||
areaId?: string | number;
|
||||
|
||||
/**
|
||||
* 车位编号
|
||||
*/
|
||||
parkingCode?: string;
|
||||
|
||||
/**
|
||||
* 车位面积(单位㎡)
|
||||
*/
|
||||
parkingArea?: number;
|
||||
|
||||
/**
|
||||
* 车位状态 0 闲置 1自用 2出租
|
||||
*/
|
||||
parkingStatus?: number;
|
||||
|
||||
/**
|
||||
* 0产权车位 1公共停车位
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
/**
|
||||
* 住户id
|
||||
*/
|
||||
residentId?: string | number;
|
||||
|
||||
/**
|
||||
* 添加时间
|
||||
*/
|
||||
addTime?: string;
|
||||
|
||||
/**
|
||||
* 添加者
|
||||
*/
|
||||
addBy?: number;
|
||||
|
||||
/**
|
||||
* 0 审核中 1 审核通过 2 审核不通过
|
||||
*/
|
||||
checkStatus?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
@@ -72,3 +72,23 @@ export const UploadidCardApi = () => {
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
// ! 住户审核流程--------------------------------------------------------------------------
|
||||
/**
|
||||
* 获取住户审核流程列表
|
||||
*/
|
||||
export const getresidentReviewlistAPI = (id: string) => {
|
||||
return request({
|
||||
url: '/residentReview/list?residentId=' + id,
|
||||
method: 'GET'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取单一住户审核流程列表
|
||||
*/
|
||||
export const getresidentReviewByIdAPI = (id: number) => {
|
||||
return request({
|
||||
url: `/residentReview/${id}`,
|
||||
method: 'GET'
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user