Bez popisu

dayGrandTotal.blade.php 7.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. @extends('admin/master')
  2. @section('content')
  3. <body>
  4. <div class="page-container">
  5. <div>
  6. <div>
  7. <!--a class="btn btn-primary radius" style="margin-left: 5px" onclick="user_search()" href="javascript:;">搜索</a-->
  8. <a class="btn btn-primary radius" onclick="statistics_export()" href="javascript:;"><i class="Hui-iconfont"></i> 导出数据</a>
  9. </div>
  10. </div>
  11. <div class="mt-20">
  12. <table class="table table-border table-bordered table-bg table-hover table-sort">
  13. <thead>
  14. <tr class="text-c">
  15. <th width="4%">汇总日期</th>
  16. <th width="4%">总投放</th>
  17. <th width="4%">总客户数</th>
  18. <th width="4%">总下单数</th>
  19. <th width="4%">总销售额</th>
  20. <th width="4%">总货品成本</th>
  21. <th width="4%">总运费成本</th>
  22. <th width="4%">总售后</th>
  23. <th width="4%">总退补</th>
  24. <th width="4%">总毛利</th>
  25. <th width="4%">累计roi</th>
  26. <th width="4%">总加粉数</th>
  27. <th width="4%">总新粉下单</th>
  28. <th width="4%">总老粉下单</th>
  29. <th width="4%">总复购单数</th>
  30. <th width="4%">总复购率</th>
  31. <th width="4%">累计7日roi</th>
  32. <th width="4%">累计15日roi</th>
  33. <th width="4%">累计30日roi</th>
  34. <th width="4%">累计45日roi</th>
  35. <th width="4%">累计60日roi</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. @if($result)
  40. @foreach($result as $a)
  41. <tr class="text-c" style=" text-align:center;">
  42. <td>{{$a['idate']}}</td>
  43. <td>{{$a['throw_cost']}}</td>
  44. <td>{{$a['cust_count']}}</td>
  45. <td>{{$a['order_count']}}</td>
  46. <td>{{$a['order_amount']}}</td>
  47. <td>{{$a['goods_cost']}}</td>
  48. <td>{{$a['freight_cost']}}</td>
  49. <td>{{$a['aftersale_cost']}}</td>
  50. <td>{{$a['refund_fee']}}</td>
  51. <td>{{$a['profit']}}</td>
  52. <td>{{$a['roi']}}</td>
  53. <td>{{$a['fan_count']}}</td>
  54. <td>{{$a['new_order_count']}}</td>
  55. <td>{{$a['old_order_count']}}</td>
  56. <td>{{$a['fugou_order_count']}}</td>
  57. <td>{{$a['fugou_rate']}}</td>
  58. <td>{{$a['roi7']}}</td>
  59. <td>{{$a['roi15']}}</td>
  60. <td>{{$a['roi30']}}</td>
  61. <td>{{$a['roi45']}}</td>
  62. <td>{{$a['roi60']}}</td>
  63. </tr>
  64. @endforeach
  65. @endif
  66. </tbody>
  67. </table>
  68. </div>
  69. <div id="page" class="page_div"></div>
  70. </div>
  71. <!--_footer 作为公共模版分离出去-->
  72. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  73. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  74. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  75. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  76. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  77. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  78. <!--/_footer 作为公共模版分离出去-->
  79. <!--/_footer 作为公共模版分离出去-->
  80. <script type="text/javascript">
  81. function user_search(){
  82. location.href = 'dayGrandTotal';
  83. }
  84. //导出
  85. function statistics_export(){
  86. location.href = 'dayGrandTotal_export';
  87. }
  88. /*分页*/
  89. $("#page").paging({
  90. pageNo:{{$page}},
  91. totalPage: {{$pages}},
  92. totalSize: {{$count}},
  93. callback: function(num) {
  94. location.href='dayGrandTotal?page='+num;
  95. }
  96. })
  97. </script>
  98. </body>
  99. @endsection