clientGroupManage.js
3.63 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
/**
* 新增参数sign 判断接口是否需要sign签名(默认有,不必写)
*/
/**
* 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
* @param {*} params
* @returns
*/
import { http2,http3 } from '@/main'
export function getTableList (params){
params.method='entmicro.api.customer.base.page'
return http2({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export function syncCustomerBase(params){
params.method='entmicro.api.synchro.syncCustomerBase'
return http2({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export function getTableDetail(params){
params.method='entmicro.api.customer.base.detail'
return http2({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export function getClientTableDetail(params){
params.method='entmicro.api.customer.detail'
return http2({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true,
returnAll:true
})
}
// 客户群的客户列表获取分页数据接口
export function getDetailTableList(params){
params.method='entmicro.api.customer.base.cust.page'
return http2({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
/*
未授权时,打开进入页面即弹出提示。 触发条件:跟企业微信相关且该账户暂未绑定企业微信时提示
*/
export function getStatus(params) {
params.method = 'scrm.api.work.wechat.access.status'
return http3({
url: '/rop-scrm-wechat/router',
method: 'POST',
data: params,
sign: true
})
}
/*
跟进员工
*/
// POST /router/entmicro.api.customer.base.staff.page/1.0.0
export function getDetailStaffTableList(params){
params.method='entmicro.api.customer.base.staff.page'
return http2({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
/*
退群客户
*/
export function getDetailQuitTableList(params){
params.method='entmicro.api.customer.base.quit.cust.page'
return http2({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
/*
潜在客户
*/
export function getDetailPotentialTableList(params){
params.method='entmicro.api.customer.base.potential.cust.page'
return http2({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//客户群管理(群聊管理)导出
export function clientGroupExportApi(params){
params.method=`entmicro.api.customer.base.list.export`
return http2({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
sign: true
})
}
// 全部客户导出
export function clientExportApi(params){
params.method=`entmicro.api.customer.base.cust.export`
return http2({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
sign: true
})
}
//跟进员工导出
export function followEmployeeExportApi(params){
params.method=`entmicro.api.customer.base.staff.export`
return http2({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
sign: true
})
}
//退群客户导出
export function leaveGroupExportApi(params){
params.method=`entmicro.api.customer.base.quit.export`
return http2({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
sign: true
})
}
//潜在客户导出
export function potentialClientExportApi(params){
params.method=`entmicro.api.customer.base.potential.export`
return http2({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
sign: true
})
}