Нет описания

depositDetail.blade.php 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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="4%">销售名称</th>
  30. <th width="4%">充值金额</th>
  31. <th width="4%">赠送金额</th>
  32. <th width="4%">实得金额</th>
  33. <th width="4%">充值方式</th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. @if($result)
  38. @foreach($result as $a)
  39. <tr class="text-c" style=" text-align:center;">
  40. <td>{{$a['team_name']}}</td>
  41. <td>{{$a['pay_time']}}</td>
  42. <td>{{$a['cust_name']}}</td>
  43. <td>{{$a['admin_name']}}</td>
  44. <td>{{$a['pay_amount']}}</td>
  45. <td>{{$a['discount']}}</td>
  46. <td>{{$a['deposit_amount']}}</td>
  47. <td>{{$a['payment_type']}}</td>
  48. </tr>
  49. @endforeach
  50. @endif
  51. </tbody>
  52. </table>
  53. </div>
  54. <div id="page" class="page_div"></div>
  55. </div>
  56. <!--_footer 作为公共模版分离出去-->
  57. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  58. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  59. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  60. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  61. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  62. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  63. <!--/_footer 作为公共模版分离出去-->
  64. <!--/_footer 作为公共模版分离出去-->
  65. <script type="text/javascript">
  66. function user_search(){
  67. var stime = $('#stime').val();
  68. var etime = $('#etime').val();
  69. var team_id = $('#team_id').val();
  70. //var page = {{$page}};
  71. location.href = 'depositDetail?stime='+stime+'&etime='+etime+'&team_id='+team_id;
  72. }
  73. //导出
  74. function statistics_export(){
  75. var stime = $('#stime').val();
  76. var etime = $('#etime').val();
  77. var team_id = $('#team_id').val();
  78. location.href = '/admin/statistics/depositDetail_export?stime='+stime+'&etime='+etime+'&team_id='+team_id;
  79. }
  80. /*分页*/
  81. $("#page").paging({
  82. pageNo:{{$page}},
  83. totalPage: {{$pages}},
  84. totalSize: {{$count}},
  85. callback: function(num) {
  86. var stime = $('#stime').val();
  87. var etime = $('#etime').val();
  88. var team_id = $('#team_id').val();
  89. location.href='depositDetail?page='+num+'&stime='+stime+'&etime='+etime+'&team_id='+team_id;
  90. }
  91. })
  92. </script>
  93. </body>
  94. @endsection