CustomerApi.js
3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
import api from '~/utils/request/request'
class CustomerApi {
// 获取周选择数据
getWeekSelectData(data) {
return api.post({
method: "dj.api.sale.get.generateWeeklyRanges",
...data,
})
}
// 获取行政地区数据
getAreaTreeList(data) {
return api.post({
method: "dj.api.sale.map.districts",
...data
})
}
// 获取主营品牌车型数据
getCarBrandList(data) {
return api.post({
method: "dj.api.sale.getCarBrandTree",
...data
})
}
// 获取门店的KPI进度数据
getKPIData(data) {
return api.post({
method: "dj.api.sale.store.kpi.progress",
...data
})
}
// 获取门店详情数据
getMaterialData(data) {
return api.post({
method: "dj.api.sale.potential.store.detail",
...data
})
}
// 获取潜客详情数据
getCustomerData(data) {
return api.post({
method: "dj.api.sale.potential.customer.detail",
...data
})
}
// 新增潜客
addCustomer(data) {
return api.post({
method: "dj.api.sale.potential.customer.add",
...data
}, true)
}
// 信息完善
editCustomer(data) {
return api.post({
method: "dj.api.sale.potential.customer.edit",
...data
}, true)
}
// 新增拜访
addVisit(data) {
return api.post({
method: "dj.api.sale.potential.customer.visit.add",
...data
}, true)
}
// 结果反馈
reslutFeedbackApi(data) {
return api.post({
method: "dj.api.sale.potential.customer.result.feedback",
...data
}, true)
}
// 拜访记录列表
getVisitList(data) {
return api.post({
method: "dj.api.sale.potential.customer.visit.list",
...data
})
}
// 潜客数据看板
getPotentialStatic(data) {
return api.post({
method: "dj.api.sale.potential.customer.data.dashboard.count",
...data
})
}
// 潜客列表
getPotentialList(data) {
return api.post({
method: "dj.api.sale.data.dashboard.potential.customer.list.page",
...data
})
}
// 获取销售人员数据
getSalesPersonList(data) {
return api.post({
method: "dj.api.sale.login.sales.list",
...data
})
}
// 获取门店数据看板数据
getStoreStatic(data) {
return api.post({
method: "dj.api.sale.store.data.dashboard.count",
...data
})
}
// 获取门店列表分页数据
getStorePageList(data) {
return api.post({
method: "dj.api.sale.data.dashboard.store.list.page",
...data
})
}
// 获取门店信息-盈亏情况展业情况预警
getStoreOverviewData(data) {
return api.post({
method: "dj.api.sale.store.overview",
...data
})
}
// 门店经营分析-门店总产值和客单价
queryMerchantOutputAndAtv(data) {
return api.get({
apiProjectName: 'sale',
projectName: 'sale',
...data
}, true, 'merchant', '/merchant/queryMerchantOutputAndAtv')
}
// 门店经营分析-产值趋势
queryMerchantOutputTrend(data) {
return api.get({
apiProjectName: 'sale',
projectName: 'sale',
...data
}, true, 'merchant', '/merchant/queryMerchantOutputTrend')
}
// 门店经营分析-新车交付数、新车到店流量、售后到店流量、成交量
queryMerchantBuyAndTostore(data) {
return api.get({
apiProjectName: 'sale',
projectName: 'sale',
...data
}, true, 'merchant', '/merchant/queryMerchantBuyAndTostore')
}
// 门店经营分析-销售人员
queryServiceSupervisionSale(data) {
return api.get({
apiProjectName: 'sale',
projectName: 'sale',
...data
}, true, 'merchant', '/merchant/queryServiceSupervisionSale')
}
}
export default CustomerApi