保洁+入驻

This commit is contained in:
2025-06-19 14:26:08 +08:00
parent d980195302
commit 529263a443
23 changed files with 3066 additions and 6 deletions

View File

@@ -0,0 +1,61 @@
import type { CleanVO, CleanForm, CleanQuery } 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 cleanList(params?: CleanQuery) {
return requestClient.get<PageResult<CleanVO>>('/property/clean/list', { params });
}
/**
* 导出保洁管理列表
* @param params
* @returns 保洁管理列表
*/
export function cleanExport(params?: CleanQuery) {
return commonExport('/property/clean/export', params ?? {});
}
/**
* 查询保洁管理详情
* @param id id
* @returns 保洁管理详情
*/
export function cleanInfo(id: ID) {
return requestClient.get<CleanVO>(`/property/clean/${id}`);
}
/**
* 新增保洁管理
* @param data
* @returns void
*/
export function cleanAdd(data: CleanForm) {
return requestClient.postWithMsg<void>('/property/clean', data);
}
/**
* 更新保洁管理
* @param data
* @returns void
*/
export function cleanUpdate(data: CleanForm) {
return requestClient.putWithMsg<void>('/property/clean', data);
}
/**
* 删除保洁管理
* @param id id
* @returns void
*/
export function cleanRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/clean/${id}`);
}

View File

@@ -0,0 +1,139 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface CleanVO {
/**
* 主键id
*/
id: string | number;
/**
* 劳务名称
*/
name: string;
/**
* 计量单位
*/
measure: string;
/**
* 计算方式
*/
method: string;
/**
* 单价
*/
peices: string;
/**
* 保洁频率
*/
frequency: string;
/**
* 保洁标准
*/
standard: string;
/**
* 备注
*/
remark: string;
/**
* 状态
*/
stater: number;
}
export interface CleanForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 劳务名称
*/
name?: string;
/**
* 计量单位
*/
measure?: string;
/**
* 计算方式
*/
method?: string;
/**
* 单价
*/
peices?: string;
/**
* 保洁频率
*/
frequency?: string;
/**
* 保洁标准
*/
standard?: string;
/**
* 备注
*/
remark?: string;
/**
* 状态
*/
stater?: number;
}
export interface CleanQuery extends PageQuery {
/**
* 劳务名称
*/
name?: string;
/**
* 计量单位
*/
measure?: string;
/**
* 计算方式
*/
method?: string;
/**
* 单价
*/
peices?: string;
/**
* 保洁频率
*/
frequency?: string;
/**
* 保洁标准
*/
standard?: string;
/**
* 状态
*/
stater?: number;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -0,0 +1,61 @@
import type { Clean_orderVO, Clean_orderForm, Clean_orderQuery } 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 clean_orderList(params?: Clean_orderQuery) {
return requestClient.get<PageResult<Clean_orderVO>>('/property/clean_order/list', { params });
}
/**
* 导出保洁订单列表
* @param params
* @returns 保洁订单列表
*/
export function clean_orderExport(params?: Clean_orderQuery) {
return commonExport('/property/clean_order/export', params ?? {});
}
/**
* 查询保洁订单详情
* @param id id
* @returns 保洁订单详情
*/
export function clean_orderInfo(id: ID) {
return requestClient.get<Clean_orderVO>(`/property/clean_order/${id}`);
}
/**
* 新增保洁订单
* @param data
* @returns void
*/
export function clean_orderAdd(data: Clean_orderForm) {
return requestClient.postWithMsg<void>('/property/clean_order', data);
}
/**
* 更新保洁订单
* @param data
* @returns void
*/
export function clean_orderUpdate(data: Clean_orderForm) {
return requestClient.putWithMsg<void>('/property/clean_order', data);
}
/**
* 删除保洁订单
* @param id id
* @returns void
*/
export function clean_orderRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/clean_order/${id}`);
}

View File

@@ -0,0 +1,219 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface Clean_orderVO {
/**
* 主键
*/
id: string | number;
/**
* 位置
*/
location: string;
/**
* 面积
*/
area: string;
/**
* 保洁id
*/
cleanId: string | number;
/**
* 名称
*/
name: string;
/**
* 单价
*/
prices: number;
/**
* 总价
*/
sumPeices: number;
/**
* 支付状态
*/
payState: number;
/**
* 开始时间
*/
starTime: string;
/**
* 结束时间
*/
endTime: string;
/**
* 单位id
*/
unitId: string | number;
/**
* 申请单位
*/
unit: string;
/**
* 联系人
*/
persion: string;
/**
* 联系电话
*/
phone: string;
}
export interface Clean_orderForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 位置
*/
location?: string;
/**
* 面积
*/
area?: string;
/**
* 保洁id
*/
cleanId?: string | number;
/**
* 名称
*/
name?: string;
/**
* 单价
*/
prices?: number;
/**
* 总价
*/
sumPeices?: number;
/**
* 支付状态
*/
payState?: number;
/**
* 开始时间
*/
starTime?: string;
/**
* 结束时间
*/
endTime?: string;
/**
* 单位id
*/
unitId?: string | number;
/**
* 申请单位
*/
unit?: string;
/**
* 联系人
*/
persion?: string;
/**
* 联系电话
*/
phone?: string;
}
export interface Clean_orderQuery extends PageQuery {
/**
* 位置
*/
location?: string;
/**
* 面积
*/
area?: string;
/**
* 保洁id
*/
cleanId?: string | number;
/**
* 名称
*/
name?: string;
/**
* 单价
*/
prices?: number;
/**
* 总价
*/
sumPeices?: number;
/**
* 支付状态
*/
payState?: number;
/**
* 开始时间
*/
starTime?: string;
/**
* 结束时间
*/
endTime?: string;
/**
* 单位id
*/
unitId?: string | number;
/**
* 申请单位
*/
unit?: string;
/**
* 联系人
*/
persion?: string;
/**
* 联系电话
*/
phone?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -0,0 +1,61 @@
import type { PersonVO, PersonForm, PersonQuery } 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 personList(params?: PersonQuery) {
return requestClient.get<PageResult<PersonVO>>('/property/person/list', { params });
}
/**
* 导出入驻员工列表
* @param params
* @returns 入驻员工列表
*/
export function personExport(params?: PersonQuery) {
return commonExport('/property/person/export', params ?? {});
}
/**
* 查询入驻员工详情
* @param id id
* @returns 入驻员工详情
*/
export function personInfo(id: ID) {
return requestClient.get<PersonVO>(`/property/person/${id}`);
}
/**
* 新增入驻员工
* @param data
* @returns void
*/
export function personAdd(data: PersonForm) {
return requestClient.postWithMsg<void>('/property/person', data);
}
/**
* 更新入驻员工
* @param data
* @returns void
*/
export function personUpdate(data: PersonForm) {
return requestClient.putWithMsg<void>('/property/person', data);
}
/**
* 删除入驻员工
* @param id id
* @returns void
*/
export function personRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/person/${id}`);
}

View File

@@ -0,0 +1,199 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface PersonVO {
/**
* 主键id
*/
id: string | number;
/**
* 用户id
*/
userId: string | number;
/**
* 用户名称
*/
userName: string;
/**
* 联系电话
*/
phone: string;
/**
* 性别
*/
gender: number;
/**
* 人脸图片
*/
img: string;
/**
* 所属单位id
*/
unitId: string | number;
/**
* 所属单位名称
*/
unitName: string;
/**
* 入驻位置
*/
locathon: string;
/**
* 入驻时间
*/
time: string;
/**
* 车牌号码
*/
carNumber: string;
/**
* 状态
*/
state: number;
/**
* 备注
*/
remark: string;
}
export interface PersonForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 用户id
*/
userId?: string | number;
/**
* 用户名称
*/
userName?: string;
/**
* 联系电话
*/
phone?: string;
/**
* 性别
*/
gender?: number;
/**
* 人脸图片
*/
img?: string;
/**
* 所属单位id
*/
unitId?: string | number;
/**
* 所属单位名称
*/
unitName?: string;
/**
* 入驻位置
*/
locathon?: string;
/**
* 入驻时间
*/
time?: string;
/**
* 车牌号码
*/
carNumber?: string;
/**
* 状态
*/
state?: number;
/**
* 备注
*/
remark?: string;
}
export interface PersonQuery extends PageQuery {
/**
* 用户id
*/
userId?: string | number;
/**
* 用户名称
*/
userName?: string;
/**
* 联系电话
*/
phone?: string;
/**
* 性别
*/
gender?: number;
/**
* 人脸图片
*/
img?: string;
/**
* 所属单位id
*/
unitId?: string | number;
/**
* 所属单位名称
*/
unitName?: string;
/**
* 入驻位置
*/
locathon?: string;
/**
* 入驻时间
*/
time?: string;
/**
* 车牌号码
*/
carNumber?: string;
/**
* 状态
*/
state?: number;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -0,0 +1,61 @@
import type { Resident_unitVO, Resident_unitForm, Resident_unitQuery } 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 resident_unitList(params?: Resident_unitQuery) {
return requestClient.get<PageResult<Resident_unitVO>>('/property/resident_unit/list', { params });
}
/**
* 导出入驻单位列表
* @param params
* @returns 入驻单位列表
*/
export function resident_unitExport(params?: Resident_unitQuery) {
return commonExport('/property/resident_unit/export', params ?? {});
}
/**
* 查询入驻单位详情
* @param id id
* @returns 入驻单位详情
*/
export function resident_unitInfo(id: ID) {
return requestClient.get<Resident_unitVO>(`/property/resident_unit/${id}`);
}
/**
* 新增入驻单位
* @param data
* @returns void
*/
export function resident_unitAdd(data: Resident_unitForm) {
return requestClient.postWithMsg<void>('/property/resident_unit', data);
}
/**
* 更新入驻单位
* @param data
* @returns void
*/
export function resident_unitUpdate(data: Resident_unitForm) {
return requestClient.putWithMsg<void>('/property/resident_unit', data);
}
/**
* 删除入驻单位
* @param id id
* @returns void
*/
export function resident_unitRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/resident_unit/${id}`);
}

View File

@@ -0,0 +1,169 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface Resident_unitVO {
/**
* id
*/
id: string | number;
/**
* 入驻单位名称
*/
name: string;
/**
* 单位编号
*/
unitNumber: number;
/**
* 企业类型
*/
type: number;
/**
* 联系人
*/
contactPerson: string;
/**
* 联系电话
*/
phone: number;
/**
* 入驻位置
*/
location: string;
/**
* 入驻时间
*/
time: string;
/**
* 状态
*/
state: number;
/**
* 员工人数
*/
number: number;
/**
* 备注
*/
remark: string;
}
export interface Resident_unitForm extends BaseEntity {
/**
* id
*/
id?: string | number;
/**
* 入驻单位名称
*/
name?: string;
/**
* 单位编号
*/
unitNumber?: number;
/**
* 企业类型
*/
type?: number;
/**
* 联系人
*/
contactPerson?: string;
/**
* 联系电话
*/
phone?: number;
/**
* 入驻位置
*/
location?: string;
/**
* 入驻时间
*/
time?: string;
/**
* 状态
*/
state?: number;
/**
* 员工人数
*/
number?: number;
/**
* 备注
*/
remark?: string;
}
export interface Resident_unitQuery extends PageQuery {
/**
* 入驻单位名称
*/
name?: string;
/**
* 单位编号
*/
unitNumber?: number;
/**
* 企业类型
*/
type?: number;
/**
* 联系人
*/
contactPerson?: string;
/**
* 联系电话
*/
phone?: number;
/**
* 入驻位置
*/
location?: string;
/**
* 入驻时间
*/
time?: string;
/**
* 状态
*/
state?: number;
/**
* 员工人数
*/
number?: number;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -11,6 +11,11 @@ export interface VisitorManagementVO {
*/
visitorName: string;
/**
* 所属公司
*/
visitorUnit: string;
/**
* 访客电话
*/
@@ -21,6 +26,21 @@ export interface VisitorManagementVO {
*/
visitingReason: string;
/**
* 被访人
*/
interviewedPerson: string;
/**
* 被访单位
*/
interviewedUnit: string;
/**
* 被访人联系方式
*/
interviewedPhone: string;
/**
* 拜访开始时间
*/
@@ -64,6 +84,11 @@ export interface VisitorManagementForm extends BaseEntity {
*/
visitorName?: string;
/**
* 所属公司
*/
visitorUnit?: string;
/**
* 访客电话
*/
@@ -74,6 +99,31 @@ export interface VisitorManagementForm extends BaseEntity {
*/
visitingReason?: string;
/**
* 被访人
*/
interviewedPerson?: string;
/**
* 被访单位
*/
interviewedUnit?: string;
/**
* 被访人联系方式
*/
interviewedPhone?: string;
/**
* 拜访开始时间
*/
visitingBeginTime?: string;
/**
* 拜访结束时间
*/
visitingEndTime?: string;
/**
* 预约车位0预约1不预约
*/
@@ -102,6 +152,11 @@ export interface VisitorManagementQuery extends PageQuery {
*/
visitorName?: string;
/**
* 所属公司
*/
visitorUnit?: string;
/**
* 访客电话
*/
@@ -112,6 +167,21 @@ export interface VisitorManagementQuery extends PageQuery {
*/
visitingReason?: string;
/**
* 被访人
*/
interviewedPerson?: string;
/**
* 被访单位
*/
interviewedUnit?: string;
/**
* 被访人联系方式
*/
interviewedPhone?: string;
/**
* 拜访开始时间
*/