clientGroupManage.js 4.47 KB
/**
 * 新增参数sign 判断接口是否需要sign签名(默认有,不必写)
 */
/**
 * 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
 * @param {*} params
 * @returns
 */
 import { http,http3 } from '@/main'

 export function getTableList (params){
   params.method='entmicro.api.customer.base.page'

  return http3({
    url: '/rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
 }
 export function syncCustomerBase(params){
  params.method='entmicro.api.synchro.syncCustomerBase'
 return http3({
   url: '/rop-scrm-entmicro/router',
   method: 'POST',
   data: params,
   sign: true
 })
}
 export function getTableDetail(params){
  params.method='entmicro.api.customer.base.detail'
  return http3({
    url: '/rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
 }
 export function getClientTableDetail(params){
  params.method='entmicro.api.customer.detail'
  return http3({
    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 http3({
    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 http3({
    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 http3({
    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 http3({
    url: '/rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
 }
//客户群管理(群聊管理)导出
export function clientGroupExportApi(params){
  params.method=`entmicro.api.customer.base.list.export`
  return http3({
    url: '/rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
//  全部客户导出
export function clientExportApi(params){
  params.method=`entmicro.api.customer.base.cust.export`
  return http3({
    url: '/rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}

//跟进员工导出
export function followEmployeeExportApi(params){
  params.method=`entmicro.api.customer.base.staff.export`
  return http3({
    url: '/rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
//退群客户导出
export function leaveGroupExportApi(params){
  params.method=`entmicro.api.customer.base.quit.export`
  return http3({
    url: '/rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
//潜在客户导出

export function potentialClientExportApi(params){
  params.method=`entmicro.api.customer.base.potential.export`
  return http3({
    url: '/rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
// 群标签列表
export function getCustomerTag(params){
  params.method='entmicro.api.customer.base.tag'
  return http3({
    url: '/rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true,
    returnAll:true
  })
 }
 //编辑客户群标签(包含标签新增列表和删除列表)
export function addSingleClientTag(params) {
  params.method = 'entmicro.api.customer.base.tag.edit'
  return http3({
    url: '/rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true,
    returnAll: true
  })
}

// 入群欢迎语添加
export function addWelcomeGroup(params) {
    params.method = 'entmicro.api.customer.base.chat.group.welcome.message.add'
    return http3({
        url: '/rop-scrm-entmicro/router',
        method: 'POST',
        data: params,
        sign: true,
        returnAll: true
    })
}