diff --git a/apps/web-antd/src/api/property/rentalPlan/model.d.ts b/apps/web-antd/src/api/property/rentalPlan/model.d.ts index 8568b515..e57de3f1 100644 --- a/apps/web-antd/src/api/property/rentalPlan/model.d.ts +++ b/apps/web-antd/src/api/property/rentalPlan/model.d.ts @@ -80,7 +80,7 @@ export interface RentalPlanForm extends BaseEntity { /** * 方案下绿植产品 */ - productList:any[]; + productList?:any[]; } diff --git a/apps/web-antd/src/api/property/reportStatistics/index.ts b/apps/web-antd/src/api/property/reportStatistics/index.ts index c3e0b5d9..1b90ef0b 100644 --- a/apps/web-antd/src/api/property/reportStatistics/index.ts +++ b/apps/web-antd/src/api/property/reportStatistics/index.ts @@ -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>('/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(`/property/rentalPlan/${id}`); -// } - -// /** -// * 新增绿植租赁-租赁方案 -// * @param data -// * @returns void -// */ -// export function rentalPlanAdd(data: RentalPlanForm) { -// return requestClient.postWithMsg('/property/rentalPlan', data); -// } - -// /** -// * 更新绿植租赁-租赁方案 -// * @param data -// * @returns void -// */ -// export function rentalPlanUpdate(data: RentalPlanForm) { -// return requestClient.putWithMsg('/property/rentalPlan', data); -// } - -// /** -// * 删除绿植租赁-租赁方案 -// * @param id id -// * @returns void -// */ -// export function rentalPlanRemove(id: ID | IDS) { -// return requestClient.deleteWithMsg(`/property/rentalPlan/${id}`); -// } /** * 查询订单数量趋势 @@ -68,3 +10,61 @@ import { requestClient } from '#/api/request'; export function statisticsByTime(params:statisticsByTimeQuery) { return requestClient.get('/property/rentalOrder/statisticsByTime', { params }); } +/** + * 用户类型统计订单数 + * @param timeUnit + * @returns void + */ +export function countByCusType() { + return requestClient.get('/property/rentalOrder/countByCusType'); +} + /** + * 查询客户续租率统计 + * @param + * @returns void + */ +export function countRenewRate() { + return requestClient.get('/property/rentalOrder/countRenewRate'); +} +/** + * 按租赁方式统计租赁金额 + * @param + * @returns void + */ +export function countByRentalType() { + return requestClient.get('/property/rentalOrder/countByRentalType'); +} + +/** + * 统计订单总数和租赁金额总数 + * @param + * @returns void + */ +export function countOrderAndAmount( ) { + return requestClient.get('/property/rentalOrder/countOrderAndAmount', ); +} + +/** + * 计算绿植养护完成率 + * @param + * @returns void + */ +export function countAchievedRate() { + return requestClient.get('/property/orderMaintain/countAchievedRate'); +} +/** + * 统计养护完成情况 + * @param + * @returns void + */ +export function countAchieved() { + return requestClient.get('/property/orderMaintain/countAchieved'); +} + /** + * 按用户评分统计养护 + * @param + * @returns void + */ +export function countByCusScore() { + return requestClient.get('/property/orderMaintain/countByCusScore'); +} diff --git a/apps/web-antd/src/views/property/greenPlantRentalManagement/leasePogramManagement/rentalPlan-detial-modal.vue b/apps/web-antd/src/views/property/greenPlantRentalManagement/leasePogramManagement/rentalPlan-detial-modal.vue index c1e4e0d9..eca4a956 100644 --- a/apps/web-antd/src/views/property/greenPlantRentalManagement/leasePogramManagement/rentalPlan-detial-modal.vue +++ b/apps/web-antd/src/views/property/greenPlantRentalManagement/leasePogramManagement/rentalPlan-detial-modal.vue @@ -1,5 +1,5 @@