暫無描述

dayGrandTeamTotal.blade.php 9.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. @extends('admin/master')
  2. @section('content')
  3. <body>
  4. <div class="page-container">
  5. <div>
  6. <div>
  7. <input class="input-text" style="width:6%;text-align:center" type="text" value="所属团队"/>
  8. <select style="width:10%;text-align:center" id='team_id' name="team_id">
  9. <option value="0" @if($team_id=='') selected @endif>-- 选择团队 --</option>
  10. @foreach($teamlist as $v)
  11. <option value="{{$v['id']}}" @if($team_id==$v['id']) selected @endif>{{$v['name']}}</option>
  12. @endforeach
  13. </select>
  14. <input class="input-text" style="width:6%;text-align:center" type="text" value="开始时间"/>
  15. <input id="stime" type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })" class="input-text Wdate" autocomplete="off" style="width:12%;text-align:center;margin-left: -5px" name="stime" value="{{$stime?$stime:''}}">
  16. <input class="input-text" style="width:6%;text-align:center" type="text" value="结束时间"/>
  17. <input id="etime"type="text" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd' })" class="input-text Wdate" autocomplete="off" style="width:12%;text-align:center;margin-left: -5px" name="etime" value="{{$etime?$etime:''}}">
  18. <a class="btn btn-primary radius" style="margin-left: 5px" onclick="user_search()" href="javascript:;">搜索</a>
  19. <a class="btn btn-primary radius" onclick="statistics_export()" href="javascript:;"><i class="Hui-iconfont"></i> 导出数据</a>
  20. </div>
  21. </div>
  22. <div class="mt-20">
  23. <table class="table table-border table-bordered table-bg table-hover table-sort">
  24. <thead>
  25. <tr class="text-c">
  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%">总销售额</th>
  32. <th width="4%">总货品成本</th>
  33. <th width="4%">总运费成本</th>
  34. <th width="4%">总售后</th>
  35. <th width="4%">总退补</th>
  36. <th width="4%">总毛利</th>
  37. <th width="4%">累计roi</th>
  38. <th width="4%">总加粉数</th>
  39. <th width="4%">总新粉下单</th>
  40. <th width="4%">总老粉下单</th>
  41. <th width="4%">总复购单数</th>
  42. <th width="4%">总复购率</th>
  43. <th width="4%">累计7日roi</th>
  44. <th width="4%">累计15日roi</th>
  45. <th width="4%">累计30日roi</th>
  46. <th width="4%">累计45日roi</th>
  47. <th width="4%">累计60日roi</th>
  48. <th width="4%">累计90日roi</th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. @if($result)
  53. @foreach($result as $a)
  54. <tr class="text-c" style=" text-align:center;">
  55. <td>{{$a['idate']}}</td>
  56. <td>{{$a['team_name']}}</td>
  57. <td>{{$a['throw_cost']}}</td>
  58. <td>{{$a['cust_count']}}</td>
  59. <td>{{$a['order_count']}}</td>
  60. <td>{{$a['order_amount']}}</td>
  61. <td>{{$a['goods_cost']}}</td>
  62. <td>{{$a['freight_cost']}}</td>
  63. <td>{{$a['aftersale_cost']}}</td>
  64. <td>{{$a['refund_fee']}}</td>
  65. <td>{{$a['profit']}}</td>
  66. <td>{{$a['roi']}}</td>
  67. <td>{{$a['fan_count']}}</td>
  68. <td>{{$a['new_order_count']}}</td>
  69. <td>{{$a['old_order_count']}}</td>
  70. <td>{{$a['fugou_order_count']}}</td>
  71. <td>{{$a['fugou_rate']}}</td>
  72. <td>{{$a['roi7']}}</td>
  73. <td>{{$a['roi15']}}</td>
  74. <td>{{$a['roi30']}}</td>
  75. <td>{{$a['roi45']}}</td>
  76. <td>{{$a['roi60']}}</td>
  77. <td>{{$a['roi90']}}</td>
  78. </tr>
  79. @endforeach
  80. @endif
  81. </tbody>
  82. </table>
  83. </div>
  84. <div id="page" class="page_div"></div>
  85. </div>
  86. <!--_footer 作为公共模版分离出去-->
  87. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  88. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  89. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  90. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  91. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  92. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  93. <!--/_footer 作为公共模版分离出去-->
  94. <!--/_footer 作为公共模版分离出去-->
  95. <script type="text/javascript">
  96. function user_search(){
  97. var stime = $('#stime').val();
  98. var etime = $('#etime').val();
  99. var team_id = $('#team_id').val();
  100. location.href = 'dayGrandTeamTotal?stime='+stime+'&etime='+etime+'&team_id='+team_id;
  101. }
  102. //导出
  103. function statistics_export(){
  104. var stime = $('#stime').val();
  105. var etime = $('#etime').val();
  106. var team_id = $('#team_id').val();
  107. location.href = '/admin/statistics/dayGrandTeamTotal_export?stime='+stime+'&etime='+etime+'&team_id='+team_id;
  108. }
  109. /*分页*/
  110. $("#page").paging({
  111. pageNo:{{$page}},
  112. totalPage: {{$pages}},
  113. totalSize: {{$count}},
  114. callback: function(num) {
  115. var stime = $('#stime').val();
  116. var etime = $('#etime').val();
  117. var team_id = $('#team_id').val();
  118. location.href='dayGrandTeamTotal?page='+num+'&stime='+stime+'&etime='+etime+'&team_id='+team_id;
  119. }
  120. })
  121. </script>
  122. </body>
  123. @endsection