完善客户画像,品牌分析
This commit is contained in:
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