保洁+入驻

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 { 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;
}