points.js 2.79 KB
import { http } from '@/main'

const path = 'dj.api.smarcarlife.'

// 积分核销订单列表
const getList = params => {
  params.method = `scrm.api.shopmall.integralorder.all.page`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

// 积分核销订单列表-积分订单详情
const getOrderDetail = params => {
  params.method = `scrm.api.shopmall.integralorder.detail`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

// 积分核销订单列表-导出
const orderExport = params => {
  params.method = `scrm.api.shopmall.integralorder.all.export`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

// 积分核销订单列表-导入
const orderImport = params => {
  params.method = `scrm.api.shopmall.integralorder.settlement.import`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true,
    returnAll: true
  })
}

// 结算/取消结算
const integralorderSettle = params => {
  params.method = `scrm.api.shopmall.integralorder.settlement`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true,
    returnAll: true
  })
}

// 用户积分明细列表
const getIntegralCustomerList = params => {
  params.method = `scrm.api.shopmall.integralcustomer.page`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

// 用户积分明细列表-导出
const getIntegralCustomerExport = params => {
  params.method = `scrm.api.shopmall.integralcustomer.export`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

// 用户积分明细详情-分页查询用户积分明细列表
const getIntegralDetailList = params => {
  params.method = `scrm.api.shopmall.integraldetail.page`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

// 用户积分明细详情-客户积分详情
const customerDetail = params => {
  params.method = `scrm.api.shopmall.integralcustomer.detail`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

// 用户积分明细详情-导出用户积分明细数据
const getIntegralDetailExport = params => {
  params.method = `scrm.api.shopmall.integraldetail.export`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
export default { getList, getOrderDetail, orderExport, orderImport, integralorderSettle, getIntegralCustomerList, getIntegralCustomerExport, getIntegralDetailList, customerDetail, getIntegralDetailExport }