customer.js
3.81 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
import request from '@/utils/request'
//* ******************** 客户管理 *********************
// 添加标签
export function addLabel(data) {
return request({
url: '/user_label/save',
method: 'post',
data
})
}
// 标签管理查询
export function getLabels(data) {
return request({
url: '/user_label/getAll',
method: 'post',
data
})
}
// 修改标签
export function labelUpdate(data) {
return request({
url: '/user_label/update',
method: 'post',
data
})
}
// 删除标签
export function deleteLabel(data) {
return request({
url: '/user_label/delete',
method: 'post',
data
})
}
// 标签编辑查询
export function labelEdit(data) {
return request({
url: '/user_label/getById',
method: 'post',
data
})
}
// 商家标签列表
export function getLabelData() {
return request({
url: '/buyer/getLabels',
method: 'post'
})
}
// 客户列表
export function getCustomerList(data) {
return request({
url: '/buyer/getAll',
method: 'post',
data
})
}
// 客户详情
export function getCustomerDetail(data) {
return request({
url: '/buyer/getById',
method: 'post',
data
})
}
// 添加客户
export function addCustomer(data) {
return request({
url: '/buyer/save',
method: 'post',
data
})
}
// 修改客户信息
export function updateCustomer(data) {
return request({
url: '/buyer/update',
method: 'post',
data
})
}
// 客户分群
// 人群列表查询
export function getCrowd(data) {
return request({
url: '/crowd/getAll',
method: 'post',
data
})
}
// 添加人群
export function addCrowd(data) {
return request({
url: '/crowd/save',
method: 'post',
data
})
}
// 删除人群
export function deleteCrowd(data) {
return request({
url: '/crowd/delete',
method: 'post',
data
})
}
// 查看客户
export function getUsers(data) {
return request({
url: '/crowd/getUsers',
method: 'post',
data
})
}
// 人群详情查询
export function getCrowdDetail(data) {
return request({
url: '/crowd/getById',
method: 'post',
data
})
}
// 修改人群
export function crowdUpdate(data) {
return request({
url: '/crowd/update',
method: 'post',
data
})
}
// 添加分组
export function groupSave(data) {
return request({
url: '/group/save',
method: 'post',
data
})
}
// 选择人群查询
export function selectCrowdData(data) {
return request({
url: '/operate/selectCrowd',
method: 'post',
data
})
}
// 选择优惠券查询
export function getSelectCoupon(data) {
return request({
url: '/operate/selectCoupon',
method: 'post',
data
})
}
// 新增运营计划
export function saveOperate(data) {
return request({
url: '/operate/saveOperate',
method: 'post',
data
})
}
// 修改运营计划
export function operateUpdate(data) {
return request({
url: '/operate/update',
method: 'post',
data
})
}
// 运营计划列表查询
export function getOperateList(data) {
return request({
url: '/operate/getAll',
method: 'post',
data
})
}
// 运营计划详情查询
export function getOperateDetail(data) {
return request({
url: '/operate/getById',
method: 'post',
data
})
}
// 运营计划数据查询
export function getDatasInfo(data) {
return request({
url: '/operate/getDatas',
method: 'post',
data
})
}
// 删除运营计划
export function deleteOperate(data) {
return request({
url: '/operate/delete',
method: 'post',
data
})
}
// 加标签
export function buyerSaveLabel(data) {
return request({
url: '/buyer/saveLabel',
method: 'post',
data
})
}
// 导出
export function userExport(data) {
return request({
url: '/buyer/export',
method: 'post',
data,
responseType: 'blob'
})
}