From 450c4ae6d4ce09cbf5c39a71db33ce00dc990440 Mon Sep 17 00:00:00 2001 From: anhaohao <1036606149@qq.com> Date: Sun, 28 Jan 2024 20:04:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E5=95=86=E4=B8=9A?= =?UTF-8?q?=E6=99=BA=E8=83=BD-=E6=8E=92=E8=A1=8C=E6=A6=9C=EF=BC=8C?= =?UTF-8?q?=E5=90=88=E5=90=8C=E9=87=91=E9=A2=9D=E6=8E=92=E8=A1=8C=E5=92=8C?= =?UTF-8?q?=E5=9B=9E=E6=AC=BE=E9=87=91=E9=A2=9D=E6=8E=92=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 770e551900cebf69deb5c34a08b85521861090ca) --- src/api/crm/bi/ranking.ts | 34 +++++ src/utils/dict.ts | 5 +- .../components/RankingContractStatistics.vue | 133 ++++++++++++++++++ .../RankingReceivablesStatistics.vue | 133 ++++++++++++++++++ src/views/crm/bi/ranking/index.vue | 91 ++++++++++++ 5 files changed, 395 insertions(+), 1 deletion(-) create mode 100644 src/api/crm/bi/ranking.ts create mode 100644 src/views/crm/bi/ranking/components/RankingContractStatistics.vue create mode 100644 src/views/crm/bi/ranking/components/RankingReceivablesStatistics.vue create mode 100644 src/views/crm/bi/ranking/index.vue diff --git a/src/api/crm/bi/ranking.ts b/src/api/crm/bi/ranking.ts new file mode 100644 index 00000000..53c09e63 --- /dev/null +++ b/src/api/crm/bi/ranking.ts @@ -0,0 +1,34 @@ +import request from '@/config/axios' + +export interface BiContractRanKingRespVO { + price: number + nickname: string + deptName: string +} +export interface BiReceivablesRanKingRespVO { + price: number + nickname: string + deptName: string +} +export interface BiRankReqVO { + deptId: number + type: string +} + +// 排行 API +export const RankingStatisticsApi = { + // 获得合同排行榜 + contractAmountRanking: (params: any) => { + return request.get({ + url: '/bi/ranking/contract-ranking', + params + }) + }, + // 获得回款排行榜 + receivablesAmountRanking: (params: any) => { + return request.get({ + url: '/bi/ranking/receivables-ranking', + params + }) + } +} diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 2c8e47ff..4c490f59 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -203,5 +203,8 @@ export enum DICT_TYPE { CRM_PRODUCT_STATUS = 'crm_product_status', CRM_PERMISSION_LEVEL = 'crm_permission_level', // CRM 数据权限的级别 CRM_PRODUCT_UNIT = 'crm_product_unit', // 产品单位 - CRM_FOLLOW_UP_TYPE = 'crm_follow_up_type' // 跟进方式 + CRM_FOLLOW_UP_TYPE = 'crm_follow_up_type', // 跟进方式 + + // ========== BI - 商业智能模块 ========== + BI_ANALYZE_TYPE = 'bi_analyze_type' // 分析类型 } diff --git a/src/views/crm/bi/ranking/components/RankingContractStatistics.vue b/src/views/crm/bi/ranking/components/RankingContractStatistics.vue new file mode 100644 index 00000000..b560131c --- /dev/null +++ b/src/views/crm/bi/ranking/components/RankingContractStatistics.vue @@ -0,0 +1,133 @@ + + + diff --git a/src/views/crm/bi/ranking/components/RankingReceivablesStatistics.vue b/src/views/crm/bi/ranking/components/RankingReceivablesStatistics.vue new file mode 100644 index 00000000..80186535 --- /dev/null +++ b/src/views/crm/bi/ranking/components/RankingReceivablesStatistics.vue @@ -0,0 +1,133 @@ + + + diff --git a/src/views/crm/bi/ranking/index.vue b/src/views/crm/bi/ranking/index.vue new file mode 100644 index 00000000..fac2b8ba --- /dev/null +++ b/src/views/crm/bi/ranking/index.vue @@ -0,0 +1,91 @@ + + +