|
@@ -3,7 +3,7 @@ import request from '@/utils/request'
|
|
|
// 查询客户公海信息列表
|
|
// 查询客户公海信息列表
|
|
|
export function listPool(query) {
|
|
export function listPool(query) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/customer/customerInfo/customerList',
|
|
|
|
|
|
|
+ url: '/customer/customerPool/customerList',
|
|
|
method: 'get',
|
|
method: 'get',
|
|
|
params: {
|
|
params: {
|
|
|
...query,
|
|
...query,
|
|
@@ -12,27 +12,75 @@ export function listPool(query) {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 查询有效客户信息列表
|
|
|
|
|
+export function listValidCustomer(query) {
|
|
|
|
|
+ return request({
|
|
|
|
|
+ url: '/customer/customerPool/list',
|
|
|
|
|
+ method: 'get',
|
|
|
|
|
+ params: {
|
|
|
|
|
+ ...query,
|
|
|
|
|
+ isHighSeas: 'false'
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// 公海客户认领
|
|
// 公海客户认领
|
|
|
export function claimPool(data) {
|
|
export function claimPool(data) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/customer/customerInfo/claimPool',
|
|
|
|
|
|
|
+ url: '/customer/customerPool/claimPool',
|
|
|
|
|
+ method: 'put',
|
|
|
|
|
+ data: data
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 退回到公海池(支持批量)
|
|
|
|
|
+export function releaseToPool(customerIds, reason = '') {
|
|
|
|
|
+ const ids = Array.isArray(customerIds) ? customerIds : [customerIds];
|
|
|
|
|
+ return request({
|
|
|
|
|
+ url: '/customer/customerPool/releaseToPool',
|
|
|
|
|
+ method: 'post',
|
|
|
|
|
+ data: { customerIds: ids, reason }
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 转移业务人员
|
|
|
|
|
+export function transferSalesPerson(data) {
|
|
|
|
|
+ return request({
|
|
|
|
|
+ url: '/customer/customerPool/transferSalesPerson',
|
|
|
|
|
+ method: 'put',
|
|
|
|
|
+ data: data
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 转移客服人员
|
|
|
|
|
+export function transferServiceStaff(data) {
|
|
|
|
|
+ return request({
|
|
|
|
|
+ url: '/customer/customerPool/transferServiceStaff',
|
|
|
method: 'put',
|
|
method: 'put',
|
|
|
data: data
|
|
data: data
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 详情接口
|
|
|
|
|
|
|
+// 获取详情接口 (公海使用)
|
|
|
export function getPool(id) {
|
|
export function getPool(id) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: `/customer/customerInfo/${id}`,
|
|
|
|
|
|
|
+ url: `/customer/customerPool/${id}`,
|
|
|
method: 'get'
|
|
method: 'get'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 获取有效客户信息详细 (有效客户使用)
|
|
|
|
|
+export function getCustomerInfo(id) {
|
|
|
|
|
+ return request({
|
|
|
|
|
+ url: '/customer/customerPool/' + id,
|
|
|
|
|
+ method: 'get'
|
|
|
|
|
+ });
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// 新增客户公海
|
|
// 新增客户公海
|
|
|
export function addPool(data) {
|
|
export function addPool(data) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/customer/customerInfo',
|
|
|
|
|
|
|
+ url: '/customer/customerPool',
|
|
|
method: 'post',
|
|
method: 'post',
|
|
|
data: data
|
|
data: data
|
|
|
})
|
|
})
|
|
@@ -41,8 +89,42 @@ export function addPool(data) {
|
|
|
// 修改客户公海
|
|
// 修改客户公海
|
|
|
export function updatePool(data) {
|
|
export function updatePool(data) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/customer/customerInfo',
|
|
|
|
|
|
|
+ url: '/customer/customerPool',
|
|
|
method: 'put',
|
|
method: 'put',
|
|
|
data: data
|
|
data: data
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+// 新增客户信息
|
|
|
|
|
+export function addCustomerInfo(data) {
|
|
|
|
|
+ return request({
|
|
|
|
|
+ url: '/customer/customerPool',
|
|
|
|
|
+ method: 'post',
|
|
|
|
|
+ data: data
|
|
|
|
|
+ });
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 修改客户信息
|
|
|
|
|
+export function updateCustomerInfo(data) {
|
|
|
|
|
+ return request({
|
|
|
|
|
+ url: '/customer/customerPool',
|
|
|
|
|
+ method: 'put',
|
|
|
|
|
+ data: data
|
|
|
|
|
+ });
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 获取公司下拉列表
|
|
|
|
|
+export function listCompanyOption() {
|
|
|
|
|
+ return request({
|
|
|
|
|
+ url: '/customer/customerPool/companyOptionList',
|
|
|
|
|
+ method: 'get'
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 获取等级下拉列表
|
|
|
|
|
+export function listLevelOption() {
|
|
|
|
|
+ return request({
|
|
|
|
|
+ url: '/customer/customerPool/levelOptionList',
|
|
|
|
|
+ method: 'get'
|
|
|
|
|
+ })
|
|
|
|
|
+}
|