完善客户画像,品牌分析
This commit is contained in:
62
src/api/audio-statistics.js
Normal file
62
src/api/audio-statistics.js
Normal file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 门店录音统计相关接口
|
||||
export function generateStatistics(date) {
|
||||
return request({
|
||||
url: '/api/audio-statistics/generate',
|
||||
method: 'post',
|
||||
params: { date }
|
||||
})
|
||||
}
|
||||
|
||||
export function getStatisticsByDateRange(startDate, endDate) {
|
||||
return request({
|
||||
url: '/api/audio-statistics/range',
|
||||
method: 'get',
|
||||
params: { startDate, endDate }
|
||||
})
|
||||
}
|
||||
|
||||
export function getStatisticsByDealership(dealershipId, startDate, endDate) {
|
||||
return request({
|
||||
url: `/api/audio-statistics/dealership/${dealershipId}`,
|
||||
method: 'get',
|
||||
params: { startDate, endDate }
|
||||
})
|
||||
}
|
||||
|
||||
export function getStatisticsBySales(salesId, startDate, endDate) {
|
||||
return request({
|
||||
url: `/api/audio-statistics/sales/${salesId}`,
|
||||
method: 'get',
|
||||
params: { startDate, endDate }
|
||||
})
|
||||
}
|
||||
|
||||
export function getStatisticsByProject(projectId, startDate, endDate) {
|
||||
return request({
|
||||
url: `/api/audio-statistics/project/${projectId}`,
|
||||
method: 'get',
|
||||
params: { startDate, endDate }
|
||||
})
|
||||
}
|
||||
|
||||
export function getStatisticsByDate(date) {
|
||||
return request({
|
||||
url: `/api/audio-statistics/date/${date}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function getStatisticsOverview() {
|
||||
return request({
|
||||
url: '/api/audio-statistics/overview',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
62
src/api/brand-analysis.js
Normal file
62
src/api/brand-analysis.js
Normal file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取品牌分析列表
|
||||
export function getBrandAnalysisList(params) {
|
||||
return request({
|
||||
url: '/cpa-brand-score-statistics/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
current: params?.current || 1,
|
||||
size: params?.size || 20,
|
||||
dealerCode: params?.dealerCode,
|
||||
dealerName: params?.dealerName,
|
||||
bigArea: params?.bigArea,
|
||||
statisticsType: params?.statisticsType,
|
||||
startDate: params?.startDate,
|
||||
endDate: params?.endDate
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 根据ID查询品牌分析详情
|
||||
export function getBrandAnalysisById(id) {
|
||||
return request({
|
||||
url: `/cpa-brand-score-statistics/get/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出品牌分析数据
|
||||
export function exportBrandAnalysis(params) {
|
||||
return request({
|
||||
url: '/cpa-brand-score-statistics/export',
|
||||
method: 'get',
|
||||
params,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取品牌分析统计数据
|
||||
export function getBrandAnalysisStatistics(params) {
|
||||
return request({
|
||||
url: '/cpa-brand-score-statistics/statistics',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 获取经销商列表(用于下拉选择)
|
||||
export function getDealerList() {
|
||||
return request({
|
||||
url: '/cpa-brand-score-statistics/dealers',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取大区列表(用于下拉选择)
|
||||
export function getBigAreaList() {
|
||||
return request({
|
||||
url: '/cpa-brand-score-statistics/big-areas',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
67
src/api/customer-profile.js
Normal file
67
src/api/customer-profile.js
Normal file
@@ -0,0 +1,67 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取客户画像分析列表
|
||||
export function getCustomerProfileList(params) {
|
||||
return request({
|
||||
url: '/customer-profile-analysis/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
current: params?.current || 1,
|
||||
size: params?.size || 20,
|
||||
clientName: params?.clientName,
|
||||
clientPhone: params?.clientPhone,
|
||||
dealerCode: params?.dealerCode,
|
||||
dealerName: params?.dealerName,
|
||||
bigArea: params?.bigArea,
|
||||
salesPersonName: params?.salesPersonName,
|
||||
analysisSceneType: params?.analysisSceneType,
|
||||
purchaseType: params?.purchaseType,
|
||||
paymentWay: params?.paymentWay,
|
||||
startDate: params?.startDate,
|
||||
endDate: params?.endDate
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 根据ID查询客户画像详情
|
||||
export function getCustomerProfileById(id) {
|
||||
return request({
|
||||
url: `/customer-profile-analysis/get/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出客户画像数据
|
||||
export function exportCustomerProfile(params) {
|
||||
return request({
|
||||
url: '/customer-profile-analysis/export',
|
||||
method: 'get',
|
||||
params,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取客户画像统计数据
|
||||
export function getCustomerProfileStatistics(params) {
|
||||
return request({
|
||||
url: '/customer-profile-analysis/statistics',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 获取经销商列表(用于下拉选择)
|
||||
export function getDealerList() {
|
||||
return request({
|
||||
url: '/customer-profile-analysis/dealers',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取大区列表(用于下拉选择)
|
||||
export function getBigAreaList() {
|
||||
return request({
|
||||
url: '/customer-profile-analysis/big-areas',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user