tag.js 3.84 KB
/*
 * @Author: yangming yangming@didihu.com.cn
 * @Date: 2023-01-04 13:43:05
 * @LastEditors: yangming yangming@didihu.com.cn
 * @LastEditTime: 2023-01-04 13:44:14
 * @FilePath: \scrm-micro-mapping\src\api\modules\tag.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { http } from '@/main'
export function getTableList(params) {
  params.method = 'entmicro.api.customer.base.page'

  return http({
    url: '/rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
export function syncCustomerBase(params) {
  params.method = 'entmicro.api.synchro.syncCustomerBase'
  return http({
    url: '/rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
export function getTableDetail(params) {
  params.method = 'entmicro.api.customer.base.detail'
  return http({
    url: '/rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
export function getClientTableDetail(params) {
  params.method = 'entmicro.api.customer.detail'
  return http({
    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 http({
    url: '/rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
/*
  未授权时,打开进入页面即弹出提示。 触发条件:跟企业微信相关且该账户暂未绑定企业微信时提示
*/
export function getStatus(params) {
  params.method = 'scrm.api.work.wechat.access.status'
  return http({
    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 http({
    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 http({
    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 http({
    url: '/rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//客户群管理(群聊管理)导出
export function clientGroupExportApi(params) {
  params.method = `entmicro.api.customer.base.list.export`
  return http({
    url: '/rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
//  全部客户导出
export function clientExportApi(params) {
  params.method = `entmicro.api.customer.base.cust.export`
  return http({
    url: '/rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
//跟进员工导出
export function followEmployeeExportApi(params) {
  params.method = `entmicro.api.customer.base.staff.export`
  return http({
    url: '/rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
//退群客户导出
export function leaveGroupExportApi(params) {
  params.method = `entmicro.api.customer.base.quit.export`
  return http({
    url: '/rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
//潜在客户导出
export function potentialClientExportApi(params) {
  params.method = `entmicro.api.customer.base.potential.export`
  return http({
    url: '/rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}