customerMage.js
1.96 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
import request from '@/utils/request'
// ******客户管理******
// 客户管理查询
export function customerMageGetAll (data) {
return request({
url: '/buyer/getAll',
method: 'post',
data
})
}
// 标签查询
export function getLabels (data) {
return request({
url: '/buyer/getLabels',
method: 'post',
data
})
}
// 贴标签
export function customerSaveUserLabel (data) {
return request({
url: '/buyer/saveUserLabel',
method: 'post',
data
})
}
// 加入或取消黑名单
export function customerBlacklist (data) {
return request({
url: '/buyer/blacklist',
method: 'post',
data
})
}
// 更新积分
export function updateBuyerCredit (data) {
return request({
url: '/buyer/updateCredit',
method: 'post',
data
})
}
// 更新积分
export function exportBuyerUser (data) {
return request({
url: '/buyer/export',
method: 'post',
data,
responseType: 'blob'
})
}
// 客户详情查询
export function customerMageGetById (data) {
return request({
url: '/buyer/getById',
method: 'post',
data
})
}
// 导出标签
export const excel_platform_label = (data = {}) => {
return request({
url: 'label/excel_platform_label',
method: 'post',
data,
responseType: 'blob'
})
}
// ******标签管理******
// 标签管理查询
export function tipsGetAll (data) {
return request({
url: '/label/getAll',
method: 'post',
data
})
}
// 添加标签
export function tipsAdd (data) {
return request({
url: '/label/save',
method: 'post',
data
})
}
// 修改标签
export function tipsUpdate (data) {
return request({
url: '/label/update',
method: 'post',
data
})
}
// 删除标签
export function tipsDelete (data) {
return request({
url: '/label/delete',
method: 'post',
data
})
}
// 标签编辑查询
export function tipsGetById (data) {
return request({
url: '/label/getById',
method: 'post',
data
})
}