bigScreen.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. import { axios } from '@/utils/request'
  2. // 加盟商数量
  3. export function countSubareaDealerQty () {
  4. return axios({
  5. url: '/report/dealerLs/countSubareaDealerQty',
  6. method: 'get',
  7. headers:{
  8. 'module': encodeURIComponent('加盟商数量')
  9. }
  10. })
  11. }
  12. // 加盟商分布统计
  13. export function countProvinceDealerQty () {
  14. return axios({
  15. url: '/report/dealerLs/countProvinceDealerQty',
  16. method: 'get',
  17. headers:{
  18. 'module': encodeURIComponent('加盟商分布统计')
  19. }
  20. })
  21. }
  22. // 产品数量统计
  23. export function countLevelProductQty () {
  24. return axios({
  25. url: '/report/productLs/countLevelProductQty',
  26. method: 'get',
  27. headers:{
  28. 'module': encodeURIComponent('产品数量统计')
  29. }
  30. })
  31. }
  32. // 实时销售看板-区域销售金额占比
  33. export function queryAreaSaleAmount (params) {
  34. return axios({
  35. url: '/report/dataScreen/queryAreaSaleAmount',
  36. data: params,
  37. method: 'post',
  38. headers:{
  39. 'module': encodeURIComponent('区域销售金额占比')
  40. }
  41. })
  42. }
  43. // 实时销售看板-品类销售分布
  44. export function queryBrandTypeSaleAmount (params) {
  45. return axios({
  46. url: '/report/dataScreen/queryBrandTypeSaleAmount',
  47. data: params,
  48. method: 'post',
  49. headers:{
  50. 'module': encodeURIComponent('品类销售分布')
  51. }
  52. })
  53. }
  54. // 实时销售看板-地图
  55. export function queryMapSaleData (params) {
  56. return axios({
  57. url: '/report/dataScreen/queryMapSaleData',
  58. data: params,
  59. method: 'post',
  60. headers:{
  61. 'module': encodeURIComponent('地图数据')
  62. }
  63. })
  64. }
  65. // 实时销售看板-销售金额top15省份
  66. export function queryProvinceSaleAmount (params) {
  67. return axios({
  68. url: '/report/dataScreen/queryProvinceSaleAmount',
  69. data: params,
  70. method: 'post',
  71. headers:{
  72. 'module': encodeURIComponent('销售金额top15省份')
  73. }
  74. })
  75. }
  76. // 实时销售看板-本月/周销售
  77. export function querySaleMonthWeek () {
  78. return axios({
  79. url: '/report/dataScreen/querySaleMonthWeek',
  80. method: 'get',
  81. headers:{
  82. 'module': encodeURIComponent('本月/周销售')
  83. }
  84. })
  85. }
  86. // 实时销售看板-今日销售
  87. export function querySaleToday () {
  88. return axios({
  89. url: '/report/dataScreen/querySaleToday',
  90. method: 'get',
  91. headers:{
  92. 'module': encodeURIComponent('今日销售')
  93. }
  94. })
  95. }
  96. // 实时销售看板-销售趋势分析
  97. export function querySaleTrend (params) {
  98. return axios({
  99. url: '/report/dataScreen/querySaleTrend',
  100. data: params,
  101. method: 'post',
  102. headers:{
  103. 'module': encodeURIComponent('销售趋势分析')
  104. }
  105. })
  106. }
  107. // 加盟商/产品分析-采购金额TOP100加盟商
  108. export function queryDealerPurchase (params) {
  109. return axios({
  110. url: '/report/dataScreen/queryDealerPurchase',
  111. data: params,
  112. method: 'post',
  113. headers:{
  114. 'module': encodeURIComponent('采购金额TOP100加盟商')
  115. }
  116. })
  117. }
  118. // 加盟商/产品分析-销售数量/金额TOP100产品
  119. export function queryProductPurchase (params) {
  120. return axios({
  121. url: '/report/dataScreen/queryProductPurchase',
  122. data: params,
  123. method: 'post',
  124. headers:{
  125. 'module': encodeURIComponent('销售数量/金额TOP100产品')
  126. }
  127. })
  128. }