46 lines
1.2 KiB
TypeScript
Raw Normal View History

2024-04-14 00:34:33 +08:00
import request from '@/config/axios'
export interface CrmStatisticFunnelRespVO {
customerCount: number // 客户数
businessCount: number // 商机数
winCount: number // 赢单数
}
2024-04-14 16:31:43 +08:00
export interface CrmStatisticsBusinessSummaryByDateRespVO {
time: string // 时间
businessCreateCount: number // 商机数
businessDealCount: number // 商机金额
}
2024-04-14 00:34:33 +08:00
// 客户分析 API
export const StatisticFunnelApi = {
// 1. 获取销售漏斗统计数据
getFunnelSummary: (params: any) => {
return request.get({
url: '/crm/statistics-funnel/get-funnel-summary',
params
})
},
// 2. 获取商机结束状态统计
getBusinessEndStatusSummary: (params: any) => {
return request.get({
url: '/crm/statistics-funnel/get-business-end-status-summary',
params
})
2024-04-14 16:31:43 +08:00
},
// 3. 获取新增商机分析(按日期)
getBusinessSummaryByDate: (params: any) => {
return request.get({
url: '/crm/statistics-funnel/get-business-summary-by-date',
params
})
},
// 4. 获取商机列表(按日期)
getBusinessPageByDate: (params: any) => {
return request.get({
url: '/crm/statistics-funnel/get-business-page-by-date',
params
})
2024-04-14 00:34:33 +08:00
}
}