No Description

warehouseFinanceList.blade.php 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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='warehouse' name="warehouse">
  9. <option value="0" @if($warehouse==0) selected @endif>-- 选择仓库 --</option>
  10. <option value="1" @if($warehouse==1) selected @endif>A仓库</option>
  11. <option value="2" @if($warehouse==2) selected @endif>B仓库</option>
  12. <option value="3" @if($warehouse==3) selected @endif>C仓库</option>
  13. <option value="4" @if($warehouse==4) selected @endif>D仓库</option>
  14. </select>
  15. <input class="input-text" style="width:6%;text-align:center" type="text" value="开始时间"/>
  16. <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:''}}">
  17. <input class="input-text" style="width:6%;text-align:center" type="text" value="结束时间"/>
  18. <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:''}}">
  19. <a class="btn btn-primary radius" style="margin-left: 5px" onclick="user_search()" href="javascript:;">搜索</a>
  20. <a class="btn btn-primary radius" onclick="statistics_export()" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 导出数据</a>
  21. </div>
  22. </div>
  23. <br>
  24. <table class="table table-border table-bordered table-bg table-hover table-sort">
  25. <tr>
  26. <th width="7%">汇总信息</th>
  27. <th>
  28. <ul>
  29. <li>总单数:{{$total['order_count']}}&nbsp;&nbsp;&nbsp;&nbsp;
  30. 总货品成本:&yen;{{$total['goods_cost']}}&nbsp;&nbsp;&nbsp;&nbsp;
  31. 总物流成本:&yen;{{$total['freight_cost']}}&nbsp;&nbsp;&nbsp;&nbsp;
  32. </ul>
  33. </th>
  34. </tr>
  35. </table>
  36. <div class="mt-20">
  37. <table class="table table-border table-bordered table-bg table-hover table-sort">
  38. <thead>
  39. <tr class="text-c">
  40. <th width="8%">日期</th>
  41. <th width="8%">仓库</th>
  42. <th width="8%">单数</th>
  43. <th width="8%">货品成本</th>
  44. <th width="8%">物流成本</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. @if($result)
  49. @foreach($result as $a)
  50. <tr class="text-c" style=" text-align:center;">
  51. <td>{{$a['send_time']}}</td>
  52. <td>{{$a['warehouse']}}</td>
  53. <td>{{$a['order_count']}}</td>
  54. <td>{{$a['goods_cost']}}</td>
  55. <td>{{$a['freight_cost']}}</td>
  56. </tr>
  57. @endforeach
  58. @endif
  59. </tbody>
  60. </table>
  61. </div>
  62. <div id="page" class="page_div"></div>
  63. </div>
  64. <!--_footer 作为公共模版分离出去-->
  65. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  66. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  67. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  68. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  69. <script type="text/javascript" src="/admin/lib/page/paging.js"></script>
  70. <script type="text/javascript" src="/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  71. <!--/_footer 作为公共模版分离出去-->
  72. <!--/_footer 作为公共模版分离出去-->
  73. <script type="text/javascript">
  74. function user_search(){
  75. var stime = $('#stime').val();
  76. var etime = $('#etime').val();
  77. var warehouse = $('#warehouse').val();
  78. //var page = {{$page}};
  79. location.href = 'warehouseFinanceList?stime='+stime+'&etime='+etime+'&warehouse='+warehouse;
  80. }
  81. //导出
  82. function statistics_export(){
  83. var stime = $('#stime').val();
  84. var etime = $('#etime').val();
  85. var warehouse = $('#warehouse').val();
  86. location.href = '/admin/statistics/warehouseFinanceList_export?stime='+stime+'&etime='+etime+'&warehouse='+warehouse;
  87. }
  88. /*分页*/
  89. $("#page").paging({
  90. pageNo:{{$page}},
  91. totalPage: {{$pages}},
  92. totalSize: {{$count}},
  93. callback: function(num) {
  94. var stime = $('#stime').val();
  95. var etime = $('#etime').val();
  96. var warehouse = $('#warehouse').val();
  97. location.href='warehouseFinanceList?page='+num+'&stime='+stime+'&etime='+etime+'&warehouse='+warehouse;
  98. }
  99. })
  100. </script>
  101. </body>
  102. @endsection