From 9ab72435c70d21981c39663d373cf1c9019e1244 Mon Sep 17 00:00:00 2001 From: fyy <2717885210@qq.com> Date: Mon, 7 Jul 2025 14:38:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BB=BF=E6=A4=8D=E7=A7=9F=E8=B5=81?= =?UTF-8?q?=E6=96=B9=E6=A1=88=E6=B7=BB=E5=8A=A0=E4=BA=A7=E5=93=81=E6=95=B0?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/property/rentalPlan/model.d.ts | 2 +- .../api/property/reportStatistics/index.ts | 116 +++++++++--------- .../rentalPlan-detial-modal.vue | 48 +++++++- .../rentalPlan-modal.vue | 6 +- .../reportStatistics/index.vue | 110 ++++++++++++----- 5 files changed, 184 insertions(+), 98 deletions(-) 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 @@