Нет описания

teamFinanceTotal.blade.php 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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' })" autocomplete="off" 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' })" autocomplete="off" 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"></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="4%">总单数</th>
  29. <th width="5%">成交金额</th>
  30. <th width="4%">微信支付金额</th>
  31. <th width="4%">付款码支付金额</th>
  32. <th width="4%">个体户支付金额</th>
  33. <th width="5%">充值卡支付金额</th>
  34. <th width="4%">售后单数</th>
  35. <th width="5%">售后金额</th>
  36. <th width="4%">微信退补单数</th>
  37. <th width="4%">微信退补差价</th>
  38. <th width="5%">微信实际金额</th>
  39. <th width="4%">付款码退补单数</th>
  40. <th width="4%">付款码退补差价</th>
  41. <th width="5%">付款码实际金额</th>
  42. <th width="4%">个体户退补单数</th>
  43. <th width="4%">个体户退补差价</th>
  44. <th width="5%">个体户实际金额</th>
  45. <th width="4%">充值卡退补单数</th>
  46. <th width="4%">充值卡退补差价</th>
  47. <th width="5%">充值卡实际金额</th>
  48. <th width="4%">发货单数</th>
  49. <th width="5%">货品成本</th>
  50. <th width="5%">物流成本</th>
  51. <th width="5%">毛利</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. @if($result)
  56. @foreach($result as $a)
  57. <tr class="text-c" style=" text-align:center;">
  58. <td>{{$a['team_name']}}</td>
  59. <td>{{$a['ctime']}}</td>
  60. <td>{{$a['order_count']}}</td>
  61. <td>{{$a['receivedAmount']}}</td>
  62. <td>{{$a['wx_money']}}</td>
  63. <td>{{$a['zfm_money']}}</td>
  64. <td>{{$a['gth_money']}}</td>
  65. <td>{{$a['vip_money']}}</td>
  66. <td>{{$a['aftersale_count']}}</td>
  67. <td>{{$a['aftersale_fee']}}</td>
  68. <td>{{$a['wx_refund_count']}}</td>
  69. <td>{{$a['wx_refund_price']}}</td>
  70. <td>{{$a['wx_true_amount']}}</td>
  71. <td>{{$a['zfm_refund_count']}}</td>
  72. <td>{{$a['zfm_refund_price']}}</td>
  73. <td>{{$a['zfm_true_amount']}}</td>
  74. <td>{{$a['gth_refund_count']}}</td>
  75. <td>{{$a['gth_refund_price']}}</td>
  76. <td>{{$a['gth_true_amount']}}</td>
  77. <td>{{$a['czk_refund_count']}}</td>
  78. <td>{{$a['czk_refund_price']}}</td>
  79. <td>{{$a['czk_true_amount']}}</td>
  80. <td>{{$a['send_count']}}</td>
  81. <td>{{$a['cost']}}</td>
  82. <td>{{$a['freight_cost']}}</td>
  83. <td>{{$a['profit']}}</td>
  84. </tr>
  85. @endforeach
  86. @endif
  87. </tbody>
  88. </table>
  89. </div>
  90. <div id="page" class="page_div"></div>
  91. </div>
  92. <!--_footer 作为公共模版分离出去-->
  93. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  94. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  95. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  96. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  97. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  98. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  99. <!--/_footer 作为公共模版分离出去-->
  100. <!--/_footer 作为公共模版分离出去-->
  101. <script type="text/javascript">
  102. function user_search(){
  103. var stime = $('#stime').val();
  104. var etime = $('#etime').val();
  105. var team_id = $('#team_id').val();
  106. //var page = {{$page}};
  107. location.href = 'teamFinanceTotal?stime='+stime+'&etime='+etime+'&team_id='+team_id;
  108. }
  109. //导出
  110. function statistics_export(){
  111. var stime = $('#stime').val();
  112. var etime = $('#etime').val();
  113. var team_id = $('#team_id').val();
  114. location.href = '/admin/statistics/teamFinanceTotal_export?stime='+stime+'&etime='+etime+'&team_id='+team_id;
  115. }
  116. /*分页*/
  117. $("#page").paging({
  118. pageNo:{{$page}},
  119. totalPage: {{$pages}},
  120. totalSize: {{$count}},
  121. callback: function(num) {
  122. var stime = $('#stime').val();
  123. var etime = $('#etime').val();
  124. var team_id = $('#team_id').val();
  125. location.href='teamFinanceTotal?page='+num+'&stime='+stime+'&etime='+etime+'&team_id='+team_id;
  126. }
  127. })
  128. </script>
  129. </body>
  130. @endsection