home.js 7.11 KB
/**
 * 新增参数sign 判断接口是否需要sign签名
 */
/**
 * 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
 * @param {*} params
 * @returns
 */
import { http } from '@/main'
const url = '/rop-scrm-entmicro/router'
const urlc = '/rop-scrm-wwbench/router'
const getChart = params => {
    params.method = 'entmicro.api.home.view.chart'
    return http({
        url,
        method: 'POST',
        data: params,
        sign: true
    })
}

const getSort = params => {
    params.method = 'entmicro.api.home.view.sort'

    return http({
        url,
        method: 'POST',
        data: params,
        sign: true
    })
}
const getStore = params => {
    params.method = 'entmicro.api.home.view.store.data'

    return http({
        url,
        method: 'POST',
        data: params,
        sign: true
    })
}
const getShop = params => {
    params.method = 'entmicro.api.home.view.shop.data'

    return http({
        url,
        method: 'POST',
        data: params,
        sign: true
    })
}
const getView = params => {
    params.method = 'entmicro.api.home.view.data'

    return http({
        url,
        method: 'POST',
        data: params,
        sign: true
    })
}
const findLoginCount = params => {
    params.method = 'entmicro.api.common.findLoginCount'

    return http({
        url,
        method: 'POST',
        data: params,
        sign: true
    })
}
const findMerchantInfoByMerchantNo = params => {
    params.method = 'entmicro.api.common.findMerchantInfoByMerchantNo.list'

    return http({
        url,
        method: 'POST',
        data: params,
        sign: true
    })
}
const outputValue = params => {
    params.method = 'scrm.api.wwbench.outputValue.stat'

    return http({
        url: urlc,
        method: 'POST',
        data: params,
        sign: true
    })
}
const merchantRank = params => {
    params.method = 'scrm.api.wwbench.outputValue.stat.merchantRank'

    return http({
        url: urlc,
        method: 'POST',
        data: params,
        sign: true
    })
}
const outputValueTotal = params => {
    params.method = 'scrm.api.wwbench.outputValue.stat.total'

    return http({
        url: urlc,
        method: 'POST',
        data: params,
        sign: true
    })
}
//当日新增客户数
const getCustomer = params => {
    params.method = 'entmicro.api.customer.page'
    return http({
        url: '/rop-scrm-entmicro/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
//当日新增客户数导出
const customerViewExport = params => {
    params.method = 'entmicro.api.customer.customerViewExport'
    return http({
        url: '/rop-scrm-entmicro/router',
        method: 'POST',
        data: params,
        sign: true
    })
}

//当日新增群客户数
const customerCustPage = params => {
    params.method = 'entmicro.api.customer.base.cust.page'
    return http({
        url: '/rop-scrm-entmicro/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
//当日新增群客户数导出
const customerBaseCustListExport = params => {
    params.method = 'entmicro.api.customer.base.list.customerBaseCustListExport'
    return http({
        url: '/rop-scrm-entmicro/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
//获取权益营销概览页权益提单统计数据
const equityOrderStatistical = params => {
    params.method = 'scrm.api.equity.service.order.statistical.marketing.effect'
    return http({
        url: '/rop-scrm-equity/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
//获取权益营销概览页营销效果统计数据
const equityStatistical = params => {
    params.method = 'scrm.api.equity.statistical.marketing.effect'
    return http({
        url: '/rop-scrm-equity/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
//获取权益列表
const equityInfo = params => {
    params.method = 'scrm.api.equity.merchant.order.list.with.page'
    return http({
        url: '/rop-scrm-equity/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
//导出权益列表
const equityExport = params => {
    params.method = 'scrm.api.equity.merchant.order.list.with.page.export'
    return http({
        url: '/rop-scrm-equity/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
//权益是否开通
const marketingOpen = params => {
    params.method = 'scrm.api.equity.service.order.marketing.effect.check.open'
    return http({
        url: '/rop-scrm-equity/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
//权益提单是否开通
const serviceBillOpen = params => {
    params.method = 'scrm.api.wwbench.serviceBill.isOpened'
    return http({
        url: '/rop-scrm-wwbench/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
//权益提单是否开通
const serviceBillStat = params => {
    params.method = 'scrm.api.wwbench.serviceBill.stat'
    return http({
        url: '/rop-scrm-wwbench/router',
        method: 'POST',
        data: params,
        sign: true
    })
}

//获取商城列表
const shopmallPage = params => {
    params.method = 'scrm.api.shopmall.order.page'
    return http({
        url: '/rop-scrm-shopmall/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
//导出商城列表
const shopmallExport = params => {
    params.method = 'scrm.api.shopmall.order.exportForStatPage'
    return http({
        url: '/rop-scrm-shopmall/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
//获取精品列表
const boutiquecoupon = params => {
    params.method = 'scrm.api.boutiquecoupon.rop.router'
    params.routerMethod = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.page'
    return http({
        url: '/rop-scrm-boutiquecoupon/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
//导出精品列表
const boutiquecouponExport = params => {
    params.method = 'scrm.api.boutiquecoupon.rop.router'
    params.routerMethod = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.exportForStatPage'
    return http({
        url: '/rop-scrm-boutiquecoupon/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
//精品是否开通
const isOpenSmartcarlife = params => {
    params.method = 'scrm.api.boutiquecoupon.rop.router'
    params.routerMethod = 'dj.api.serviceMerchant.isOpenSmartcarlife'
    return http({
        url: '/rop-scrm-boutiquecoupon/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
export default {
    getChart,
    getView,
    getSort,
    getShop,
    getStore,
    findLoginCount,
    findMerchantInfoByMerchantNo,
    outputValue,
    outputValueTotal,
    getCustomer,
    merchantRank,
    customerViewExport,
    customerCustPage,
    customerBaseCustListExport,
    equityOrderStatistical,
    equityStatistical,
    equityExport,
    equityInfo,
    shopmallPage,
    shopmallExport,
    boutiquecoupon,
    boutiquecouponExport,
    marketingOpen,
    isOpenSmartcarlife,
    serviceBillOpen,
    serviceBillStat
}