dashboard.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. // 统计区
  2. export const statisticalArea = [
  3. {
  4. label: '会员统计',
  5. icon: require('../../../assets/images/dashboard/member.png'),
  6. children: [
  7. { label: '会员总数', field: 'memberTotal' },
  8. { label: '今日新增会员数', field: 'todayMember' },
  9. { label: '普通会员数量', field: 'normalMemberTotal' },
  10. { label: '团长数量', field: 'headquarterTotal' },
  11. { label: '合伙人数量', field: 'partnerTotal' }
  12. ],
  13. // styles: 'margin: 0 0 16px; flex: 0 0 32%',
  14. itemStyles: 'width: 32%',
  15. itemData: 'memberStatistics'
  16. },
  17. {
  18. label: '订单统计',
  19. icon: require('../../../assets/images/dashboard/order.png'),
  20. children: [
  21. { label: '订单总量', field: 'orderTotal' },
  22. { label: '今日订单量', field: 'todayOrderTotal' },
  23. { label: '今日完成订单', field: 'todayFinishOrderTotal' }
  24. ],
  25. // styles: 'margin: 0 16px 16px; flex: 0 0 32%',
  26. itemStyles: 'width: 50%',
  27. // filter: ['date', 'scourceChannel'],
  28. itemData: 'orderStatistics'
  29. },
  30. {
  31. label: '平台交易数据统计',
  32. icon: require('../../../assets/images/dashboard/admin-account.png'),
  33. children: [
  34. { label: '总交易额', field: 'totalTransactionAmount' },
  35. { label: '今日交易额', field: 'todayTransactionAmount' },
  36. { label: '总支出', field: 'totalExpense' },
  37. { label: '总收入', field: 'totalIncome' }
  38. ],
  39. // styles: 'margin: 0 0 16px; flex: 0 0 32%',
  40. itemStyles: 'width: 50%',
  41. itemData: 'platformTransactionDataStatistics'
  42. },
  43. {
  44. label: '平台代金券统计',
  45. icon: require('../../../assets/images/dashboard/admin-voucher.png'),
  46. children: [
  47. { label: '总库存', field: 'voucherTotal' },
  48. { label: '新增库存', field: 'voucherStock' },
  49. { label: '今日使用量', field: 'todayVoucherUseTotal' },
  50. { label: '今日实收金额', field: 'todayRealAmount' },
  51. { label: '今日充值量', field: 'todayRechargeTotal' }
  52. ],
  53. // styles: 'margin: 0 0 16px; flex: 0 0 32%',
  54. itemStyles: 'width: 32%',
  55. itemData: 'voucherStatistics'
  56. },
  57. {
  58. label: '佣金统计',
  59. icon: require('../../../assets/images/dashboard/commission.png'),
  60. children: [
  61. { label: '累计收入佣金', field: 'totalIncome' },
  62. { label: '今日总收入佣金', field: 'todayTotalIncome' },
  63. { label: '团长佣金分配总额', field: 'headquarterCommission' },
  64. { label: '合伙人佣金分配总额', field: 'partnerCommission' },
  65. { label: '加盟商佣金分配总额', field: 'joinCommission' },
  66. { label: '代理商佣金分配总额', field: 'agentCommission' }
  67. ],
  68. // styles: 'margin: 0 16px 16px; flex: 0 0 32%',
  69. itemStyles: 'width: 33%',
  70. // filter: ['scourceChannel'],
  71. itemData: 'commissionStatistics'
  72. },
  73. {
  74. label: '消费金统计',
  75. icon: require('../../../assets/images/dashboard/consumption-gold.png'),
  76. children: [
  77. { label: '消费金总收入', field: 'totalIncome' },
  78. { label: '消费金总支付', field: 'totalConsumption' },
  79. { label: '今日消费金支出订单金额', field: 'todayConsumptionOrderAmount' },
  80. { label: '今日消费金支付订单数', field: 'todayConsumptionOrderTotal' }
  81. ],
  82. // styles: 'margin: 0 0 16px; flex: 0 0 32%',
  83. itemStyles: 'width: 50%',
  84. itemData: 'consumptionStatistics'
  85. }
  86. ]
  87. // 消费画像
  88. export const consumerProfile = [
  89. { label: '会员总消费金额', field: 'memberConsumptionTotal' },
  90. { label: '会员总下单次数', field: 'memberOrderTotal', itemStyles: 'margin: 0 16px' },
  91. { label: '会员总售后次数', field: 'memberAfterSaleTotal' }
  92. ]
  93. // 财务统计
  94. export const financialStatistics = [
  95. { label: '应收金额', field: 'receivableAmount' },
  96. { label: '优免金额', field: 'discountAmount', itemStyles: 'margin: 0 16px' },
  97. { label: '实收金额', field: 'realAmount', itemStyles: 'margin: 0 16px' },
  98. { label: '客流量', field: 'customerFlow', itemStyles: 'margin: 0 16px' },
  99. { label: '盈亏达成率', field: 'profitLossRate' }
  100. ]
  101. // 网点统计的数据统计
  102. export const sitedatastatistics = [
  103. { label: '师傅数量', field: 'masterWorkerQuantity', itemStyles: 'margin: 0 51px 0 16px' },
  104. { label: '会员', field: 'memberTotal', itemStyles: 'margin-right: 51px' },
  105. { label: '团长总量', field: 'headquarterTotal', itemStyles: 'margin-right: 51px' },
  106. { label: '合伙人总量', field: 'partnerTotal', itemStyles: 'margin-right: 51px' }
  107. ]
  108. // 搜索访问类型
  109. export const searchType = [
  110. { key: 'agents', value: 1 },
  111. { key: 'franchise', value: 2 },
  112. { key: 'shop', value: 3 }
  113. ]