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
import request from '@/utils/request'
import query from "@/views/ecw/customer/query";
// 创建客户
export function createCustomer(data) {
return request({
url: '/ecw/customer/create',
method: 'post',
data: data
})
}
// 更新客户
export function updateCustomer(data) {
return request({
url: '/ecw/customer/update',
method: 'put',
data: data
})
}
// 删除客户
export function deleteCustomer(id) {
return request({
url: '/ecw/customer/delete?id=' + id,
method: 'delete'
})
}
// 获得客户
export function getCustomer(id) {
return request({
url: '/ecw/customer/get?id=' + id,
method: 'get'
})
}
// 获得客户分页
export function getCustomerPage(query) {
return request({
url: '/ecw/customer/page',
method: 'get',
params: query
})
}
// 获得客户下拉
export function getCustomerSelect(query) {
return request({
url: '/ecw/customer/select',
method: 'get',
params: query
})
}
// 根据客户id集合获得客户详情列表
export function getCustomerList(query) {
return request({
url: '/ecw/customer/list',
method: 'get',
params: query
})
}
// 导出客户 Excel
export function exportCustomerExcel(query) {
return request({
url: '/ecw/customer/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}
// 待接收客户列表
export function getWaitForConfirmList(query) {
return request({
url: '/ecw/customer/get-wait-for-confirm',
method: 'get',
params: query
})
}
// 确认
export function confirm(data) {
return request({
url: '/ecw/customer/confirm',
method: 'put',
data: data
})
}
// 待分配客户
export function getWaitForDistributionList(query) {
return request({
url: '/ecw/customer/get-wait-for-distribution',
method: 'get',
params: query
})
}
// 移交
export function handOverCustomer(data) {
return request({
url: '/ecw/customer/handOver',
method: 'put',
data: data,
})
}
// 公海池客户
export function getPublicList(query) {
return request({
url: '/ecw/customer/get-public',
method: 'get',
params: query
})
}
//捞取
export function setFishing(query){
return request({
url:'/ecw/customer/catch-open-sea-customer',
method:'put',
params:query,
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
}
})
}
//待分配 客户列表
export function getCustomerToBeAssigned(query){
return request(
{
url:'ecw/customer/get-wait-for-distribution',
method: 'get',
params: query
}
)
}
//我的客户列表
export function getMyCustomerService(query){
return request({
url:'/ecw/customer/get-mine',
method:'get',
params:query,
})
}