完成访客搭建,完善之前审核界面

This commit is contained in:
Zy
2026-04-13 18:10:23 +08:00
parent d957d1a039
commit 7f152c45f5
34 changed files with 1732 additions and 1208 deletions

View File

@@ -58,6 +58,8 @@ export interface RepairVO {
* 维修人员id
*/
repairId: string | number;
/** 名称(小区名-楼栋名-单元号-房间号) */
name?: string;
}
export interface RepairForm extends BaseEntity {

View File

@@ -61,3 +61,15 @@ export const delCar = (id: string | number | Array<string | number>) => {
method: 'delete'
});
};
/**
* 删除车辆图片
* @param id
*/
export const uploadCar = (formdata: FormData) => {
return request({
url: '/car/uploadImage',
method: 'POST',
data: formdata
});
};

View File

@@ -22,12 +22,12 @@ export interface ParkingVO {
/**
* 车位状态 0 闲置 1自用 2出租
*/
parkingStatus: number;
parkingStatus: string;
/**
* 0产权车位 1公共停车位
*/
type: number;
type: string;
/**
* 住户id
@@ -47,8 +47,7 @@ export interface ParkingVO {
/**
* 0 审核中 1 审核通过 2 审核不通过
*/
checkStatus: number;
checkStatus: string;
/**
* 备注
*/
@@ -79,12 +78,12 @@ export interface ParkingForm extends BaseEntity {
/**
* 车位状态 0 闲置 1自用 2出租
*/
parkingStatus?: number;
parkingStatus?: string;
/**
* 0产权车位 1公共停车位
*/
type?: number;
type?: string;
/**
* 住户id
@@ -104,7 +103,7 @@ export interface ParkingForm extends BaseEntity {
/**
* 0 审核中 1 审核通过 2 审核不通过
*/
checkStatus?: number;
checkStatus?: string;
/**
* 备注
@@ -151,12 +150,12 @@ export interface ParkingQuery extends PageQuery {
/**
* 车位状态 0 闲置 1自用 2出租
*/
parkingStatus?: number;
parkingStatus?: string;
/**
* 0产权车位 1公共停车位
*/
type?: number;
type?: string;
/**
* 住户id
@@ -176,7 +175,7 @@ export interface ParkingQuery extends PageQuery {
/**
* 0 审核中 1 审核通过 2 审核不通过
*/
checkStatus?: number;
checkStatus?: string;
/**
* 日期范围参数

View File

@@ -74,6 +74,147 @@ export const UploadidCardApi = () => {
};
// ! 住户审核流程--------------------------------------------------------------------------
export interface ResidentReviewProcessVO {
/**
* 住户审核表
*/
id: string | number;
/**
* 住户表id
*/
residentId: string | number;
/**
* 提交时间
*/
submitTime: string;
/**
* 提交状态 0未提交 1已提交
*/
submitStatus: string;
/**
* 物业审核时间
*/
propertyTime: string;
/**
* 物业审核状态 0 待审核 1审核通过 2审核未通过
*/
propertyStatus: string;
/**
* 物业审核意见
*/
propertyReviewFeedback: string;
/**
* 认证时间
*/
certificationTime: string;
/**
* 认证状态 0未认证 1已认证
*/
certificationStatus: string;
}
export interface ResidentReviewProcessForm extends BaseEntity {
/**
* 住户审核表
*/
id?: string | number;
/**
* 住户表id
*/
residentId?: string | number;
/**
* 提交时间
*/
submitTime?: string;
/**
* 提交状态 0未提交 1已提交
*/
submitStatus?: string;
/**
* 物业审核时间
*/
propertyTime?: string;
/**
* 物业审核状态 0 待审核 1审核通过 2审核未通过
*/
propertyStatus?: string;
/**
* 物业审核意见
*/
propertyReviewFeedback?: string;
/**
* 认证时间
*/
certificationTime?: string;
/**
* 认证状态 0未认证 1已认证
*/
certificationStatus?: string;
}
export interface ResidentReviewProcessQuery extends PageQuery {
/**
* 住户表id
*/
residentId?: string | number;
/**
* 提交时间
*/
submitTime?: string;
/**
* 提交状态 0未提交 1已提交
*/
submitStatus?: string;
/**
* 物业审核时间
*/
propertyTime?: string;
/**
* 物业审核状态 0 待审核 1审核通过 2审核未通过
*/
propertyStatus?: string;
/**
* 物业审核意见
*/
propertyReviewFeedback?: string;
/**
* 认证时间
*/
certificationTime?: string;
/**
* 认证状态 0未认证 1已认证
*/
certificationStatus?: string;
/**
* 日期范围参数
*/
params?: any;
}
/**
* 获取住户审核流程列表
*/
@@ -86,9 +227,19 @@ export const getresidentReviewlistAPI = (id: string) => {
/**
* 获取单一住户审核流程列表
*/
export const getresidentReviewByIdAPI = (id: number) => {
export const getresidentReviewByIdAPI = (id: number): AxiosPromise<ResidentReviewProcessVO> => {
return request({
url: `/residentReview/${id}`,
method: 'GET'
});
};
/**
* 更新 住户 审核 表
*/
export const UpdateResidentReviewAPI = (data: ResidentReviewProcessForm) => {
return request({
url: `/residentReview`,
method: 'PUT',
data
});
};

View File

@@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ResidentReviewProcessVO, ResidentReviewProcessForm, ResidentReviewProcessQuery } from '@/api/system/residentReviewProcess/type';
/**
* 查询住户审核流程列表
* @param query
* @returns {*}
*/
export const listResidentReviewProcess = (query?: ResidentReviewProcessQuery): AxiosPromise<ResidentReviewProcessVO[]> => {
return request({
url: '/residentReviewProcess/list',
method: 'get',
params: query
});
};
/**
* 查询住户审核流程详细
* @param id
*/
export const getResidentReviewProcess = (id: string | number): AxiosPromise<ResidentReviewProcessVO> => {
return request({
url: '/residentReviewProcess/' + id,
method: 'get'
});
};
/**
* 新增住户审核流程
* @param data
*/
export const addResidentReviewProcess = (data: ResidentReviewProcessForm) => {
return request({
url: '/residentReviewProcess',
method: 'post',
data: data
});
};
/**
* 修改住户审核流程
* @param data
*/
export const updateResidentReviewProcess = (data: ResidentReviewProcessForm) => {
return request({
url: '/residentReviewProcess',
method: 'put',
data: data
});
};
/**
* 删除住户审核流程
* @param id
*/
export const delResidentReviewProcess = (id: string | number | Array<string | number>) => {
return request({
url: '/residentReviewProcess/' + id,
method: 'delete'
});
};

View File

@@ -0,0 +1,140 @@
export interface ResidentReviewProcessVO {
/**
* 住户审核表
*/
id: string | number;
/**
* 住户表id
*/
residentId: string | number;
/**
* 提交时间
*/
submitTime: string;
/**
* 提交状态 0未提交 1已提交
*/
submitStatus: number;
/**
* 物业审核时间
*/
propertyTime: string;
/**
* 物业审核状态 0 待审核 1审核通过 2审核未通过
*/
propertyStatus: number;
/**
* 物业审核意见
*/
propertyReviewFeedback: string;
/**
* 认证时间
*/
certificationTime: string;
/**
* 认证状态 0未认证 1已认证
*/
certificationStatus: number;
}
export interface ResidentReviewProcessForm extends BaseEntity {
/**
* 住户审核表
*/
id?: string | number;
/**
* 住户表id
*/
residentId?: string | number;
/**
* 提交时间
*/
submitTime?: string;
/**
* 提交状态 0未提交 1已提交
*/
submitStatus?: number;
/**
* 物业审核时间
*/
propertyTime?: string;
/**
* 物业审核状态 0 待审核 1审核通过 2审核未通过
*/
propertyStatus?: number;
/**
* 物业审核意见
*/
propertyReviewFeedback?: string;
/**
* 认证时间
*/
certificationTime?: string;
/**
* 认证状态 0未认证 1已认证
*/
certificationStatus?: number;
}
export interface ResidentReviewProcessQuery extends PageQuery {
/**
* 住户表id
*/
residentId?: string | number;
/**
* 提交时间
*/
submitTime?: string;
/**
* 提交状态 0未提交 1已提交
*/
submitStatus?: number;
/**
* 物业审核时间
*/
propertyTime?: string;
/**
* 物业审核状态 0 待审核 1审核通过 2审核未通过
*/
propertyStatus?: number;
/**
* 物业审核意见
*/
propertyReviewFeedback?: string;
/**
* 认证时间
*/
certificationTime?: string;
/**
* 认证状态 0未认证 1已认证
*/
certificationStatus?: number;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -209,6 +209,16 @@ export const deptTreeSelect = (): AxiosPromise<DeptTreeVO[]> => {
});
};
/**
* 查询用户 根据不同的角色key
*/
export const getUserByRoleKey = (roleKey: string = 'repair'): AxiosPromise<any> => {
return request({
url: '/system/user/list/byRoleKey?roleKey=' + roleKey,
method: 'get'
});
};
export default {
listUser,
getUser,
@@ -225,5 +235,7 @@ export default {
getAuthRole,
updateAuthRole,
deptTreeSelect,
listUserByDeptId
listUserByDeptId,
getUserByRoleKey
};