helpCard.js 3.29 KB
/**
 * 新增参数sign 判断接口是否需要sign签名
 */
/**
 * 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
 * @param {*} params
 * @returns
 */
import { http } from '@/main'
const getFollower = params => {
  params.method = 'entmicro.api.staff.listFollowerStaffByPage'
  return http({
    url: '/rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
const getStaffList = params => {
  params.method = 'entmicro.api.staff.findStaffByMerchantId'
  return http({
    url: '/rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
const findAllByPage = params => {
  params.method = 'entmicro.api.dracIm.findAllByPage'
  return http({
    url: 'rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//删除联系方式
const deleteContact = params => {
  params.method = 'entmicro.api.drac.rescue.deleteContact'
  return http({
    url: 'rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//救援卡详情
const getConfigDetail = params => {
  params.method = 'entmicro.api.drac.rescue.config.getConfigDetail'
  return http({
    url: 'rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//救援卡联系方式列表
const listContact = params => {
  params.method = 'entmicro.api.drac.rescue.listContact'
  return http({
    url: 'rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//道路救援卡客户列表查询接口
const listCustomer = params => {
  params.method = 'entmicro.api.drac.rescue.listCustomer'
  return http({
    url: 'rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//道路救援卡客户列表查询接口
const listCustomerExport = params => {
  params.method = 'entmicro.api.drac.rescue.listCustomerExport'
  return http({
    url: 'rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//保存救援卡配置
const saveConfig = params => {
  params.method = 'entmicro.api.drac.rescue.saveConfig'
  return http({
    url: 'rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//保存联系方式
const saveContact = params => {
  params.method = 'entmicro.api.drac.rescue.saveContact'
  return http({
    url: 'rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//道路救援卡客户列表查询接口
const updateConfig = params => {
  params.method = 'entmicro.api.drac.rescue.config.updateConfig'
  return http({
    url: 'rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
//编辑联系方式
const updateContact = params => {
  params.method = 'entmicro.api.drac.rescue.updateContact'
  return http({
    url: 'rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
const validFirst = params => {
  params.method = 'entmicro.api.drac.rescue.config.validFirst'
  return http({
    url: 'rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

export default {
  getStaffList,
  getFollower,
  findAllByPage,
  deleteContact,
  getConfigDetail,
  listContact,
  listCustomer,
  listCustomerExport,
  saveConfig,
  saveContact,
  updateConfig,
  updateContact,
  validFirst
}