No Description

aftersaleFinanceList.blade.php 6.2KB

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