xlb-main-login
Version:
``` yarn install ```
102 lines (91 loc) • 2.64 kB
JavaScript
import { wei_url } from './config'
import { axios } from '@/utils/request'
//获取离职继承列表
export function getdeparturelist(params) {
return axios({
url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-transfer/resign',
method: 'get',
params,
})
}
//同步离职继承
export function getdeparturesync() {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-transfer/sync',
method: 'post',
})
}
//离职待分配成员
export function getcustomerList(params) {
if (params.gender == undefined) {
params.gender = ''
}
if (params.spread == undefined) {
params.spread = ''
}
return axios({
url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-transfer/resign/un-assign-custom',
method: 'get',
params,
})
}
//离职待分配群聊列表
export function getdepartList(params) {
return axios({
url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-transfer/resign/un-assign-chat',
method: 'get',
params,
})
}
//获取单个离职继承结果
export function getdepartResult(params) {
return axios({
url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-transfer/result',
method: 'get',
params,
})
}
//分配客户成员
export function assignCustomersaysn(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-transfer/transfer-custom',
method: 'post',
data,
})
}
//分配客户群聊
export function assignGroupaysn(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-transfer/transfer-group',
method: 'post',
data,
})
}
//分配离职成员所有客户
export function assignCustomBatchaysn(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-transfer/transfer-custom-batch',
method: 'post',
data,
})
}
//已分配客户
export function assignCustomansy(params) {
return axios({
url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-transfer/assigned-custom',
method: 'get',
params,
})
}
//已分配群聊
export function assignCustomQun(params) {
return axios({
url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-transfer/assign-group',
method: 'get',
params,
})
}