暫無描述

sendFinanceList.blade.php 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. <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. <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['cost']}}</td>
  54. <td>{{$a['freight_cost']}}</td>
  55. <td>{{$a['payment_type']}}</td>
  56. <td>{{$a['warehouse']}}</td>
  57. <td>{{$a['receiverName']}}</td>
  58. <td>{{$a['logistics_id']}}</td>
  59. </tr>
  60. @endforeach
  61. @endif
  62. </tbody>
  63. </table>
  64. </div>
  65. <div id="page" class="page_div"></div>
  66. </div>
  67. <!--_footer 作为公共模版分离出去-->
  68. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  69. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  70. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  71. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  72. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  73. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  74. <!--/_footer 作为公共模版分离出去-->
  75. <!--/_footer 作为公共模版分离出去-->
  76. <script type="text/javascript">
  77. function user_search(){
  78. var stime = $('#stime').val();
  79. var etime = $('#etime').val();
  80. var team_id = $('#team_id').val();
  81. var warehouse = $('#warehouse').val();
  82. //var page = {{$page}};
  83. location.href = 'sendFinanceList?stime='+stime+'&etime='+etime+'&team_id='+team_id+'&warehouse='+warehouse;
  84. }
  85. //导出
  86. function statistics_export(){
  87. var stime = $('#stime').val();
  88. var etime = $('#etime').val();
  89. var team_id = $('#team_id').val();
  90. var warehouse = $('#warehouse').val();
  91. location.href = '/admin/statistics/sendFinanceList_export?stime='+stime+'&etime='+etime+'&team_id='+team_id+'&warehouse='+warehouse;
  92. }
  93. /*分页*/
  94. $("#page").paging({
  95. pageNo:{{$page}},
  96. totalPage: {{$pages}},
  97. totalSize: {{$count}},
  98. callback: function(num) {
  99. var stime = $('#stime').val();
  100. var etime = $('#etime').val();
  101. var team_id = $('#team_id').val();
  102. var warehouse = $('#warehouse').val();
  103. location.href='sendFinanceList?page='+num+'&stime='+stime+'&etime='+etime+'&team_id='+team_id+'&warehouse='+warehouse;
  104. }
  105. })
  106. </script>
  107. </body>
  108. @endsection