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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+