feat: 绿植租赁方案添加产品数量
This commit is contained in:
@@ -80,7 +80,7 @@ export interface RentalPlanForm extends BaseEntity {
|
||||
/**
|
||||
* 方案下绿植产品
|
||||
*/
|
||||
productList:any[];
|
||||
productList?:any[];
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1,64 +1,6 @@
|
||||
import type { statisticsByTimeQuery } 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 rentalPlanList(params?: RentalPlanQuery) {
|
||||
// return requestClient.get<PageResult<RentalPlanVO>>('/property/rentalPlan/list', { params });
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 导出绿植租赁-租赁方案列表
|
||||
// * @param params
|
||||
// * @returns 绿植租赁-租赁方案列表
|
||||
// */
|
||||
// export function rentalPlanExport(params?: RentalPlanQuery) {
|
||||
// return commonExport('/property/rentalPlan/export', params ?? {});
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 查询绿植租赁-租赁方案详情
|
||||
// * @param id id
|
||||
// * @returns 绿植租赁-租赁方案详情
|
||||
// */
|
||||
// export function rentalPlanInfo(id: ID) {
|
||||
// return requestClient.get<RentalPlanVO>(`/property/rentalPlan/${id}`);
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 新增绿植租赁-租赁方案
|
||||
// * @param data
|
||||
// * @returns void
|
||||
// */
|
||||
// export function rentalPlanAdd(data: RentalPlanForm) {
|
||||
// return requestClient.postWithMsg<void>('/property/rentalPlan', data);
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 更新绿植租赁-租赁方案
|
||||
// * @param data
|
||||
// * @returns void
|
||||
// */
|
||||
// export function rentalPlanUpdate(data: RentalPlanForm) {
|
||||
// return requestClient.putWithMsg<void>('/property/rentalPlan', data);
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 删除绿植租赁-租赁方案
|
||||
// * @param id id
|
||||
// * @returns void
|
||||
// */
|
||||
// export function rentalPlanRemove(id: ID | IDS) {
|
||||
// return requestClient.deleteWithMsg<void>(`/property/rentalPlan/${id}`);
|
||||
// }
|
||||
|
||||
/**
|
||||
* 查询订单数量趋势
|
||||
@@ -68,3 +10,61 @@ import { requestClient } from '#/api/request';
|
||||
export function statisticsByTime(params:statisticsByTimeQuery) {
|
||||
return requestClient.get<any>('/property/rentalOrder/statisticsByTime', { params });
|
||||
}
|
||||
/**
|
||||
* 用户类型统计订单数
|
||||
* @param timeUnit
|
||||
* @returns void
|
||||
*/
|
||||
export function countByCusType() {
|
||||
return requestClient.get<any>('/property/rentalOrder/countByCusType');
|
||||
}
|
||||
/**
|
||||
* 查询客户续租率统计
|
||||
* @param
|
||||
* @returns void
|
||||
*/
|
||||
export function countRenewRate() {
|
||||
return requestClient.get<any>('/property/rentalOrder/countRenewRate');
|
||||
}
|
||||
/**
|
||||
* 按租赁方式统计租赁金额
|
||||
* @param
|
||||
* @returns void
|
||||
*/
|
||||
export function countByRentalType() {
|
||||
return requestClient.get<any>('/property/rentalOrder/countByRentalType');
|
||||
}
|
||||
|
||||
/**
|
||||
* 统计订单总数和租赁金额总数
|
||||
* @param
|
||||
* @returns void
|
||||
*/
|
||||
export function countOrderAndAmount( ) {
|
||||
return requestClient.get<any>('/property/rentalOrder/countOrderAndAmount', );
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算绿植养护完成率
|
||||
* @param
|
||||
* @returns void
|
||||
*/
|
||||
export function countAchievedRate() {
|
||||
return requestClient.get<any>('/property/orderMaintain/countAchievedRate');
|
||||
}
|
||||
/**
|
||||
* 统计养护完成情况
|
||||
* @param
|
||||
* @returns void
|
||||
*/
|
||||
export function countAchieved() {
|
||||
return requestClient.get<any>('/property/orderMaintain/countAchieved');
|
||||
}
|
||||
/**
|
||||
* 按用户评分统计养护
|
||||
* @param
|
||||
* @returns void
|
||||
*/
|
||||
export function countByCusScore() {
|
||||
return requestClient.get<any>('/property/orderMaintain/countByCusScore');
|
||||
}
|
||||
|
Reference in New Issue
Block a user