solar.js 1.9 KB
/*
 * @Description: 
 * @Author: huyue
 * @Date: 2023-07-12 16:17:18
 * @LastEditors: huyue
 * @LastEditTime: 2023-07-13 14:07:44
 */
// 总 - 商品采购占比
const getAllGoodsRatio = params => {
  return window.$HTTP.get('solarfilm/getAllGoodsRatio', params)
}

// 总 - 开通商户数和使用商户数 趋势
const getAllOpenBuyTrend = params => {
  return window.$HTTP.get('solarfilm/getAllOpenBuyTrend', params)
}

// 总 - 获取所有门店的 总采购额(总计、本月) 、商城采购额(总计、本月) 、自采采购额(总计、本月)、开通商户数(总计、本月)、购买商户数(总计、本月)、入库使用商户数、业务时间
const getAllPurchase = params => {
  return window.$HTTP.get('solarfilm/getAllPurchase', params)
}

// 总 - 商城采购额(占比)、自采采购额(占比) 趋势
const getAllPurchaseTrend = params => {
  return window.$HTTP.get('solarfilm/getAllPurchaseTrend', params)
}

// 总 - 商品采购额排名
const getAllRanking = params => {
  return window.$HTTP.get('solarfilm/getAllRanking', params)
}

// 单店 - 获取每个门店的商品采购占比
const getMerchantGoodsRatio = params => {
  return window.$HTTP.get('solarfilm/getMerchantGoodsRatio', params)
}

// 单店 - 获取每个门店的 总采购额(总计、本月) 、商城采购额(总计、本月) 、自采采购额(总计、本月)
const getMerchantPurchase = params => {
  return window.$HTTP.get('solarfilm/getMerchantPurchase', params)
}

// 单店 - 获取每个门店的商城采购额(占比)、自采采购额(占比) 趋势
const getMerchantPurchaseTrend = params => {
  return window.$HTTP.get('solarfilm/getMerchantPurchaseTrend', params)
}

export default {
  getAllGoodsRatio,
  getAllOpenBuyTrend,
  getAllPurchase,
  getAllPurchaseTrend,
  getAllRanking,
  getMerchantGoodsRatio,
  getMerchantPurchase,
  getMerchantPurchaseTrend
}