No Description

orderDay.blade.php 8.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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" 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" 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">&#xe600;</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="5%">日期</th>
  27. <th width="5%">当日进粉数量</th>
  28. <th width="5%">当日微信好友数量</th>
  29. <th width="5%">当日新粉成单数</th>
  30. <th width="5%">当日新粉成交额</th>
  31. <th width="5%">老粉成单数</th>
  32. <th width="5%">老粉成交额</th>
  33. <th width="5%">复购单数</th>
  34. <th width="5%">复购成交额</th>
  35. <th width="5%">总成交额</th>
  36. <th width="5%">总投放成本</th>
  37. <th width="5%">货品成本</th>
  38. <th width="5%">物流成本</th>
  39. <th width="5%">毛利</th>
  40. <th width="5%">当日新粉成单率</th>
  41. <th width="5%">复购率</th>
  42. <th width="5%">综合成单率</th>
  43. <th width="5%">综合roi</th>
  44. <th width="5%">新粉roi</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. @if($result)
  49. @foreach($result as $a)
  50. <tr class="text-c" style=" text-align:center;">
  51. <td>{{$a['dtime']}}</td>
  52. <td>{{$a['total_fan_add']}}</td>
  53. <td>{{$a['wx_fan_add']}}</td>
  54. <td>{{$a['new_order_count']}}</td>
  55. <td>{{$a['new_order_amount']}}</td>
  56. <td>{{$a['old_order_count']}}</td>
  57. <td>{{$a['old_order_amount']}}</td>
  58. <td>{{$a['fugou_order_count']}}</td>
  59. <td>{{$a['fugou_order_amount']}}</td>
  60. <td>{{$a['order_amount']}}</td>
  61. <td>{{$a['total_cost']}}</td>
  62. <td>{{$a['order_cost']}}</td>
  63. <td>{{$a['freight_cost']}}</td>
  64. <td>{{$a['profit']}}</td>
  65. <td>{{$a['new_order_rate']}}</td>
  66. <td>{{$a['fugou_rate']}}</td>
  67. <td>{{$a['order_rate']}}</td>
  68. <td>{{$a['total_roi']}}</td>
  69. <td>{{$a['new_roi']}}</td>
  70. </tr>
  71. @endforeach
  72. @endif
  73. </tbody>
  74. </table>
  75. </div>
  76. <div id="page" class="page_div"></div>
  77. </div>
  78. <!--_footer 作为公共模版分离出去-->
  79. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  80. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  81. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  82. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  83. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  84. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  85. <!--/_footer 作为公共模版分离出去-->
  86. <!--/_footer 作为公共模版分离出去-->
  87. <script type="text/javascript">
  88. /*广告-添加*/
  89. function statistics_add(title){
  90. location.href="/admin/statistics/totalcreate";
  91. }
  92. /*广告-编辑*/
  93. function statistics_edit(title,id){
  94. location.href="/admin/statistics/totaledit/"+id;
  95. }
  96. /*广告-设为首页显示*/
  97. function up(obj,id){
  98. layer.confirm('确认要设为首页显示吗?',function(index){
  99. location.href='/admin/statistics/up/'+id;
  100. });
  101. }
  102. /*广告-移除*/
  103. function statistics_del(obj,id){
  104. layer.confirm('确认要删除吗?',function(index){
  105. location.href='/admin/statistics/totaldelete/'+id;
  106. });
  107. }
  108. /*广告-设为首页隐藏*/
  109. function down(obj,id){
  110. layer.confirm('确认要设为首页隐藏吗?',function(index){
  111. location.href='/admin/statistics/down/'+id;
  112. });
  113. }
  114. function user_search(){
  115. var stime = $('#stime').val();
  116. var etime = $('#etime').val();
  117. var team_id = $('#team_id').val();
  118. //var page = {{$page}};
  119. location.href = 'orderDay?stime='+stime+'&etime='+etime+'&team_id='+team_id;
  120. }
  121. //导出
  122. function statistics_export(){
  123. var stime = $('#stime').val();
  124. var etime = $('#etime').val();
  125. var team_id = $('#team_id').val();
  126. location.href = '/admin/statistics/orderDay_export?stime='+stime+'&etime='+etime+'&team_id='+team_id;
  127. }
  128. /*分页*/
  129. $("#page").paging({
  130. pageNo:{{$page}},
  131. totalPage: {{$pages}},
  132. totalSize: {{$count}},
  133. callback: function(num) {
  134. var stime = $('#stime').val();
  135. var etime = $('#etime').val();
  136. var team_id = $('#team_id').val();
  137. location.href='orderDay?page='+num+'&stime='+stime+'&etime='+etime+'&team_id='+team_id;
  138. }
  139. })
  140. </script>
  141. </body>
  142. @endsection