solar.js
2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
* @Description: 1.0 太阳膜接口
* @Author: huyue
* @Date: 2023-07-12 16:17:18
* @LastEditors: huyue
* @LastEditTime: 2023-07-17 10:15:45
*/
// 总 - 商品采购占比
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)
}
// 总体----获取所有门店入库使用情况
const getUsedWarehousing = params => {
return window.$HTTP.get('solarfilm/getUsedWarehousing', params)
}
// 总体----获取商品采购进度占比
const getBugProgress = params => {
return window.$HTTP.get('solarfilm/getBugProgress', params)
}
// 获取年份接口
const getYears = params => {
return window.$HTTP.get('solarfilm/getYears', params)
}
// 获取门店列表
const getMerchant = params => {
return window.$HTTP.get('solarfilm/getMerchant', params)
}
export default {
getAllGoodsRatio,
getAllOpenBuyTrend,
getAllPurchase,
getAllPurchaseTrend,
getAllRanking,
getMerchantGoodsRatio,
getMerchantPurchase,
getMerchantPurchaseTrend,
getUsedWarehousing,
getBugProgress,
getYears,
getMerchant
}