order.blade.php 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <script src="{{static_url('js/echarts.js')}}" type="text/javascript"></script>
  2. @extends('layouts.base')
  3. @section('title', '订单数据统计')
  4. <script src="{{resource_get('plugins/shop-statistics/assets/js/echarts.min.js')}}"></script>
  5. @section('content')
  6. <link rel="stylesheet" type="text/css" href="{{static_url('yunshop/goods/vue-goods1.css')}}" />
  7. <link rel="stylesheet" href="{{resource_get('plugins/shop-statistics/assets/css/common.css')}}">
  8. <link rel="stylesheet" href="{{resource_get('plugins/shop-statistics/assets/css/statistics.css')}}">
  9. <div class="all">
  10. <div id="app">
  11. <panel>
  12. <statistics-card-title>
  13. 数据情况
  14. </statistics-card-title>
  15. <ul class="statistics-overall">
  16. <li>
  17. <statistics-card :border="false" title="累计营业额" tip="累计商城支付订单金额,不剔除退款金额" :count="overall.cumulative_turnover" colorful background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_7.png') !!}" count-color="#fba04b">
  18. </statistics-card>
  19. </li>
  20. <li>
  21. <statistics-card :border="false" title="累计已支付单数" tip="累计商城已支付单数,不剔除退款订单" :count="overall.pay_order_count" colorful background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_8.png') !!}" count-color="#43bae0">
  22. </statistics-card>
  23. </li>
  24. <li>
  25. <statistics-card :border="false" title="累计下单人数" tip="累计商城下单人数" :count="overall.member_count" colorful background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_4.png') !!}" count-color="#28b183">
  26. </statistics-card>
  27. </li>
  28. <li>
  29. <statistics-card :border="false" title="累计支付人数" tip="累计商城已支付人数,一人多次支付只记录一次,不剔除退款订单" :count="overall.pay_member_count" colorful background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_6.png') !!}" count-color="#da9a01">
  30. </statistics-card>
  31. </li>
  32. <li>
  33. <statistics-card :border="false" title="累计待支付订单数" tip="累计商城待支付订单数" :count="overall.wait_pay" colorful background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_2.png') !!}" count-color="#4652a9">
  34. </statistics-card>
  35. </li>
  36. <li>
  37. <statistics-card :border="false" title="累计待支付金额" tip="累计商城待支付订单金额" :count="overall.wait_pay_price" colorful background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_3.png') !!}" count-color="#43bae0">
  38. </statistics-card>
  39. </li>
  40. <li>
  41. <statistics-card :border="false" title="累计待发货订单数" tip="累计商城待发货订单数,不剔除退款订单" :count="overall.wait_send" colorful background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_5.png') !!}" count-color="#36c3a7">
  42. </statistics-card>
  43. </li>
  44. <li>
  45. <statistics-card :border="false" title="累计已退款订单金额" tip="累计商城已退款订单金额" :count="overall.refund_success_price" colorful background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_1.png') !!}" count-color="#f26163">
  46. </statistics-card>
  47. </li>
  48. <li>
  49. <statistics-card :border="false" title="累计订单现价" tip="累计商城支付订单现价金额,不剔除退款订单" :count="overall.pay_order_price" colorful background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_1.png') !!}" count-color="#f26163">
  50. </statistics-card>
  51. </li>
  52. </ul>
  53. </panel>
  54. <panel>
  55. <el-row type="flex" style="row-gap:20px;flex-wrap:wrap;" :gutter="20">
  56. <el-col :span="4">
  57. <statistics-card :title="item.name" :tip="item.tip" :count="item.count" v-for="item in order.statistics" :key="item.name" style="margin-bottom:15px;" :decimals="item.decimals">
  58. </statistics-card>
  59. </el-col>
  60. <el-col :span="20">
  61. <panel-form inline style="text-align: right;">
  62. <statistics-time-range @changed="orderSearchTimeRange"></statistics-time-range>
  63. </panel-form>
  64. <div ref="ordersChart" style="margin-top:20px;width:100%;height:570px;"></div>
  65. </el-col>
  66. </el-row>
  67. </panel>
  68. <panel>
  69. <statistics-card-title>
  70. 订单分布区域
  71. <panel-form inline slot="right">
  72. <statistics-time-range @changed="orderDistributedSearchTimeRange"></statistics-time-range>
  73. </panel-form>
  74. </statistics-card-title>
  75. <el-row :gutter="10">
  76. <el-col :span="14">
  77. <div ref="orderDistributedChart" style="width:100%;height:800px"></div>
  78. </el-col>
  79. <el-col :span="10">
  80. <el-table :data="orderDistributed.data" stripe>
  81. <el-table-column label="排名">
  82. <template slot-scope="scope">
  83. <div class="member-rank" mini plain :data-rank="scope.$index+1">[[ scope.$index+1 ]]</div>
  84. </template>
  85. </el-table-column>
  86. <el-table-column label="地区" prop="areaname"></el-table-column>
  87. <el-table-column label="支付金额" prop="order_price"></el-table-column>
  88. <el-table-column label="支付笔数" prop="order_count"></el-table-column>
  89. </el-table>
  90. <div style="margin-top:10px;text-align:center;color:#AEAEB2;">- 只显示前15名 -</div>
  91. </el-col>
  92. </el-row>
  93. </panel>
  94. <panel v-if="footPrintPluginTurnedon">
  95. <statistics-card-title>
  96. 交易状况
  97. <panel-form inline slot="right">
  98. <statistics-time-range @changed="transcationSearchTimeRange"></statistics-time-range>
  99. </panel-form>
  100. </statistics-card-title>
  101. <el-row :gutter="20">
  102. <el-col :span="4">
  103. <statistics-card title="访客数" :count="transcation.visitors" tip="统计筛选时间内,页面被访问的人数,多次访问只记录一次">
  104. </statistics-card>
  105. <statistics-card title="下单人数" :count="transcation.orders" style="margin-top:15px;" tip="统计筛选时间内的下单人数,一人多次下单只记录一人">
  106. </statistics-card>
  107. <statistics-card title="支付人数" :count="transcation.pays" style="margin-top:15px;" tip="统计筛选时间内的支付人数,一人多次支付只记录一人(不剔除退款订单)">
  108. </statistics-card>
  109. </el-col>
  110. <el-col :span="20">
  111. <div ref="transcationChart" style="margin-top:20px;width:100%;height:600px;"></div>
  112. </el-col>
  113. </el-row>
  114. </panel>
  115. </div>
  116. </div>
  117. <script>
  118. const chinaJsonUrl = "{{ resource_get('plugins/shop-statistics/assets/js/maps/china.json') }}";
  119. const GetOrderDataUrl = "{!! yzWebFullUrl('plugin.shop-statistics.backend.order.get-order-statistic') !!}"; //* 获取订单统计 基本数据
  120. const GetOrderChartDataUrl = "{!! yzWebFullUrl('plugin.shop-statistics.backend.order.search-order-statistic') !!}"; //* 获取统计图数据
  121. const GetTranscationDataUrl = "{!! yzWebFullUrl('plugin.shop-statistics.backend.order.search-transaction-overview') !!}"; //* 获取交易数据统计图
  122. const GetOrderDistributionUrl = "{!! yzWebFullUrl('plugin.shop-statistics.backend.order.search-distribution-area') !!}"; //* 获取订单分布数据
  123. </script>
  124. <script src="{{resource_get('plugins/shop-statistics/assets/js/components.js')}}"></script>
  125. <script src="{{resource_get('plugins/shop-statistics/assets/js/order.js')}}?t={{ time() }}"></script>
  126. <script src="{{resource_get('plugins/shop-statistics/assets/js/common.js')}}"></script>
  127. @endsection