rules.js 4.18 KB
import { http } from '@/main'
const getRulesData = () => {
  let method = 'dj.api.smartcarlife.merchantDivisionRule.getAllRule'
  return method
}
const getRulesListData = () => {
  let method = 'dj.api.smartcarlife.merchantDivisionRule.pageChangeRecord'
  return method
}
// 客户评价
const guestComTotal = () => {
  let method = 'dj.api.smartcarlife.orderCommentReport.total'
  return method
}
// 是否开通精品升级
const isOpenUpgrade = () => {
  let method = 'dj.api.serviceMerchant.isOpenSmartcarlife'
  return method
}
const isOpenInsurance = () => {
  let method = 'dj.api.serviceMerchant.isOpenScene0'
  return method
}
// 订单统计
const orderTotal = () => {
  let method = 'dj.api.smartcarlife.orderReport.total'
  return method
}
// 券统计
const couponsTotal = () => {
  let method = 'dj.api.smartcarlife.couponReport.total'
  return method
}
// 按天统计券
const couponsTotalByDay = () => {
  let method = 'dj.api.smartcarlife.couponReport.countByDate'
  return method
}
// 按天统计金额
const moneyTotal = () => {
  let method = 'dj.api.smartcarlife.orderReport.totalByDay'
  return method
}
// 精品礼券订单查询
const findCoupons = () => {
  let method = 'dj.api.life.customer.coupon.listFor4S'
  return method
}
// 精品礼券升级订单查询
const findupGradeOrder = () => {
  let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.page'
  return method
}

const newFindupGradeOrder = () => {
  let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.pageByMainOrder'
  return method
}

// 查看礼券
const checkCoupons = () => {
  let method = 'dj.api.smartcarlife.merchant.coupon.page'
  return method
}
// 我的分账
const mydivision = () => {
  let method = 'dj.smartcarlife.api.shop.order.division.page'
  return method
}
// 精品礼券导出
const exportCoupons = () => {
  let method = 'dj.api.life.customer.coupon.exportExcelListFor4S'
  return method
}
// 精品礼券升级订单导出
const exportUpgrade = () => {
  let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.export'
  return method
}
// 延保订单导出
const exportInsurance = () => {
  let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.exportNew'
  return method
}
// 我的分账导出
const exportMydivision = () => {
  let method = 'dj.smartcarlife.api.shop.order.division.export'
  return method
}
// 获取发券人/转化人列表
const getEmployName = () => {
  let method = 'dj.api.life.customer.coupon.distinctColum'
  return method
}
// 查看明细
const checkDetail = () => {
  let method = 'dj.api.smartcarlife.goodsOrder.detail'
  return method
}
// 集团--订单统计
const orderTotalOfJT = () => {
  let method = 'dj.api.smartcarlife.orderReport.totalByMerchant'
  return method
}
// 集团--精品升级订单统计数
const orderTotalNumOfJT = () => {
  let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.count'
  return method
}
// 集团--我的分账统计数
const myAccountTotalNumOfJT = () => {
  let method = 'dj.smartcarlife.api.shop.order.division.page.count'
  return method
}
// 获取4s店列表
const get4SList = params => {
  params.method = `scrm.api.carlife.merchant.listWithPageByCurMerchant`
  return http({
    url: 'rop-scrm-carlife/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
// 服务介绍
const introConpute = params => {
  params.method = `scrm.api.boutiquecoupon.config.getModelParams`
  return http({
    url: 'rop-scrm-boutiquecoupon/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
// 获取商户列表
const getMerchantList = params => {
  params.method = `entmicro.api.common.findMerchantTreeByMerchantNo.list`
  return http({
    url: 'rop-scrm-entmicro/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
export { getRulesData, getRulesListData, guestComTotal, isOpenUpgrade, isOpenInsurance, orderTotal, couponsTotal, couponsTotalByDay, moneyTotal, findCoupons, findupGradeOrder, newFindupGradeOrder, checkCoupons, mydivision, exportMydivision, exportUpgrade, exportInsurance, exportCoupons, getEmployName, checkDetail, orderTotalOfJT, orderTotalNumOfJT, myAccountTotalNumOfJT, get4SList, introConpute, getMerchantList }