Няма описание

refundFinanceList.blade.php 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. <input class="input-text" style="width:6%;text-align:center" type="text" value="所属仓库"/>
  19. <select style="width:10%;text-align:center" id='warehouse' name="warehouse">
  20. <option value="0" @if($warehouse==0) selected @endif>-- 选择仓库 --</option>
  21. @foreach($warehouseArr as $warehouseVal=>$warehouseName)
  22. <option value="{{$warehouseVal}}" @if($warehouse == $warehouseVal) selected @endif>{{$warehouseName}}</option>
  23. @endforeach
  24. </select>
  25. <a class="btn btn-primary radius" style="margin-left: 5px" onclick="user_search()" href="javascript:;">搜索</a>
  26. <a class="btn btn-primary radius" onclick="statistics_export()" href="javascript:;"><i class="Hui-iconfont"></i> 导出数据</a>
  27. </div>
  28. </div>
  29. <div class="mt-20">
  30. <table class="table table-border table-bordered table-bg table-hover table-sort">
  31. <thead>
  32. <tr class="text-c">
  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. </tr>
  42. </thead>
  43. <tbody>
  44. @if($result)
  45. @foreach($result as $a)
  46. <tr class="text-c" style=" text-align:center;">
  47. <td>{{$a['team_name']}}</td>
  48. <td>{{$a['ctime']}}</td>
  49. <td>{{$a['id']}}</td>
  50. <td>{{$a['receivedAmount']}}</td>
  51. <td>{{$a['payment_type']}}</td>
  52. <td>{{$a['refund_price']}}</td>
  53. <td>{{$a['refund_type']}}</td>
  54. <td>{{$a['warehouse']}}</td>
  55. </tr>
  56. @endforeach
  57. @endif
  58. </tbody>
  59. </table>
  60. </div>
  61. <div id="page" class="page_div"></div>
  62. </div>
  63. <!--_footer 作为公共模版分离出去-->
  64. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  65. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  66. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  67. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  68. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  69. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  70. <!--/_footer 作为公共模版分离出去-->
  71. <!--/_footer 作为公共模版分离出去-->
  72. <script type="text/javascript">
  73. function user_search(){
  74. var stime = $('#stime').val();
  75. var etime = $('#etime').val();
  76. var team_id = $('#team_id').val();
  77. var warehouse = $('#warehouse').val();
  78. //var page = {{$page}};
  79. location.href = 'refundFinanceList?stime='+stime+'&etime='+etime+'&team_id='+team_id+'&warehouse='+warehouse;
  80. }
  81. //导出
  82. function statistics_export(){
  83. var stime = $('#stime').val();
  84. var etime = $('#etime').val();
  85. var team_id = $('#team_id').val();
  86. var warehouse = $('#warehouse').val();
  87. location.href = '/admin/statistics/refundFinanceList_export?stime='+stime+'&etime='+etime+'&team_id='+team_id+'&warehouse='+warehouse;
  88. }
  89. /*分页*/
  90. $("#page").paging({
  91. pageNo:{{$page}},
  92. totalPage: {{$pages}},
  93. totalSize: {{$count}},
  94. callback: function(num) {
  95. var stime = $('#stime').val();
  96. var etime = $('#etime').val();
  97. var team_id = $('#team_id').val();
  98. var warehouse = $('#warehouse').val();
  99. location.href='refundFinanceList?page='+num+'&stime='+stime+'&etime='+etime+'&team_id='+team_id+'&warehouse='+warehouse;
  100. }
  101. })
  102. </script>
  103. </body>
  104. @endsection