fix: [CRM-客户统计]根据Code-Review 修改
parent
d0501ee0a6
commit
762b51a5b4
@ -1,53 +1,116 @@
|
|||||||
import request from '@/config/axios'
|
import request from '@/config/axios'
|
||||||
|
|
||||||
export interface StatisticsCustomerRespVO {
|
export interface CrmStatisticsCustomerSummaryByDateRespVO {
|
||||||
count: number
|
time: string
|
||||||
cycle: number
|
customerCreateCount: number
|
||||||
category: string
|
customerDealCount: number
|
||||||
}
|
}
|
||||||
|
|
||||||
// 客户总量分析 API
|
export interface CrmStatisticsCustomerSummaryByUserRespVO {
|
||||||
|
ownerUserName: string
|
||||||
|
customerCreateCount: number
|
||||||
|
customerDealCount: number
|
||||||
|
contractPrice: number
|
||||||
|
receivablePrice: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CrmStatisticsFollowupSummaryByDateRespVO {
|
||||||
|
time: string
|
||||||
|
followupRecordCount: number
|
||||||
|
followupCustomerCount: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CrmStatisticsFollowupSummaryByUserRespVO {
|
||||||
|
ownerUserName: string
|
||||||
|
followupRecordCount: number
|
||||||
|
followupCustomerCount: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CrmStatisticsFollowupSummaryByTypeRespVO {
|
||||||
|
followupType: string
|
||||||
|
followupRecordCount: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CrmStatisticsCustomerContractSummaryRespVO {
|
||||||
|
customerName: string
|
||||||
|
contractName: string
|
||||||
|
totalPrice: number
|
||||||
|
receivablePrice: number
|
||||||
|
customerType: string
|
||||||
|
customerSource: string
|
||||||
|
ownerUserName: string
|
||||||
|
creatorUserName: string
|
||||||
|
createTime: Date
|
||||||
|
orderDate: Date
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CrmStatisticsCustomerDealCycleByDateRespVO {
|
||||||
|
time: string
|
||||||
|
customerDealCycle: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CrmStatisticsCustomerDealCycleByUserRespVO {
|
||||||
|
ownerUserName: string
|
||||||
|
customerDealCycle: number
|
||||||
|
customerDealCount: number
|
||||||
|
}
|
||||||
|
|
||||||
|
// 客户分析 API
|
||||||
export const StatisticsCustomerApi = {
|
export const StatisticsCustomerApi = {
|
||||||
// 客户总量(新建)
|
// 1.1 客户总量分析(按日期)
|
||||||
getTotalCustomerCount: (params: any) => {
|
getCustomerSummaryByDate: (params: any) => {
|
||||||
return request.get({
|
return request.get({
|
||||||
url: '/crm/statistics-customer/get-total-customer-count',
|
url: '/crm/statistics-customer/get-customer-summary-by-date',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 客户总量(成交)
|
// 1.2 客户总量分析(按用户)
|
||||||
getDealTotalCustomerCount: (params: any) => {
|
getCustomerSummaryByUser: (params: any) => {
|
||||||
return request.get({
|
return request.get({
|
||||||
url: '/crm/statistics-customer/get-deal-total-customer-count',
|
url: '/crm/statistics-customer/get-customer-summary-by-user',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 获取客户跟进次数
|
// 2.1 客户跟进次数分析(按日期)
|
||||||
getRecordCount: (params: any) => {
|
getFollowupSummaryByDate: (params: any) => {
|
||||||
return request.get({
|
return request.get({
|
||||||
url: '/crm/statistics-customer/get-record-count',
|
url: '/crm/statistics-customer/get-followup-summary-by-date',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 获取客户跟进次数
|
// 2.2 客户跟进次数分析(按用户)
|
||||||
getDistinctRecordCount: (params: any) => {
|
getFollowupSummaryByUser: (params: any) => {
|
||||||
return request.get({
|
return request.get({
|
||||||
url: '/crm/statistics-customer/get-distinct-record-count',
|
url: '/crm/statistics-customer/get-followup-summary-by-user',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 获取客户跟进方式统计数
|
// 3.1 获取客户跟进方式统计数
|
||||||
getRecordTypeCount: (params: any) => {
|
getFollowupSummaryByType: (params: any) => {
|
||||||
return request.get({
|
return request.get({
|
||||||
url: '/crm/statistics-customer/get-record-type-count',
|
url: '/crm/statistics-customer/get-followup-summary-by-type',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 获取客户成交周期
|
// 4.1 合同摘要信息(客户转化率页面)
|
||||||
getCustomerCycle: (params: any) => {
|
getContractSummary: (params: any) => {
|
||||||
return request.get({
|
return request.get({
|
||||||
url: '/crm/statistics-customer/get-customer-cycle',
|
url: '/crm/statistics-customer/get-followup-summary-by-type',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 5.1 获取客户成交周期(按日期)
|
||||||
|
getCustomerDealCycleByDate: (params: any) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/crm/statistics-customer/get-customer-deal-cycle-by-date',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 5.2 获取客户成交周期(按用户)
|
||||||
|
getCustomerDealCycleByUser: (params: any) => {
|
||||||
|
return request.get({
|
||||||
|
url: '/crm/statistics-customer/get-customer-deal-cycle-by-user',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue