Açıklama Yok

aftersaleFinanceList.blade.php 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. <th width="5%">发货仓库</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. @if($result)
  46. @foreach($result as $a)
  47. <tr class="text-c" style=" text-align:center;">
  48. <td>{{$a['team_name']}}</td>
  49. <td>{{$a['ctime']}}</td>
  50. <td>{{$a['id']}}</td>
  51. <td>{{$a['receivedAmount']}}</td>
  52. <td>{{$a['aftersale_fee']}}</td>
  53. <!--td>{{$a['cost']}}</td>
  54. <td>{{$a['freight_cost']}}</td-->
  55. <td>{{$a['payment_type']}}</td>
  56. <td>{{$a['warehouse']}}</td>
  57. </tr>
  58. @endforeach
  59. @endif
  60. </tbody>
  61. </table>
  62. </div>
  63. <div id="page" class="page_div"></div>
  64. </div>
  65. <!--_footer 作为公共模版分离出去-->
  66. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  67. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  68. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  69. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  70. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  71. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  72. <!--/_footer 作为公共模版分离出去-->
  73. <!--/_footer 作为公共模版分离出去-->
  74. <script type="text/javascript">
  75. function user_search(){
  76. var stime = $('#stime').val();
  77. var etime = $('#etime').val();
  78. var team_id = $('#team_id').val();
  79. var warehouse = $('#warehouse').val();
  80. //var page = {{$page}};
  81. location.href = 'aftersaleFinanceList?stime='+stime+'&etime='+etime+'&team_id='+team_id+'&warehouse='+warehouse;
  82. }
  83. //导出
  84. function statistics_export(){
  85. var stime = $('#stime').val();
  86. var etime = $('#etime').val();
  87. var team_id = $('#team_id').val();
  88. var warehouse = $('#warehouse').val();
  89. location.href = '/admin/statistics/aftersaleFinanceList_export?stime='+stime+'&etime='+etime+'&team_id='+team_id+'&warehouse='+warehouse;
  90. }
  91. /*分页*/
  92. $("#page").paging({
  93. pageNo:{{$page}},
  94. totalPage: {{$pages}},
  95. totalSize: {{$count}},
  96. callback: function(num) {
  97. var stime = $('#stime').val();
  98. var etime = $('#etime').val();
  99. var team_id = $('#team_id').val();
  100. var warehouse = $('#warehouse').val();
  101. location.href='aftersaleFinanceList?page='+num+'&stime='+stime+'&etime='+etime+'&team_id='+team_id+'&warehouse='+warehouse;
  102. }
  103. })
  104. </script>
  105. </body>
  106. @endsection