Nessuna descrizione

warehouseFinanceList.blade.php 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. @foreach($warehouseArr as $warehouseVal=>$warehouseName)
  11. <option value="{{$warehouseVal}}" @if($warehouse == $warehouseVal) selected @endif >{{$warehouseName}}</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. <a class="btn btn-primary radius" style="margin-left: 5px" onclick="user_search()" href="javascript:;">搜索</a>
  19. <a class="btn btn-primary radius" onclick="statistics_export()" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 导出数据</a>
  20. </div>
  21. </div>
  22. <br>
  23. <table class="table table-border table-bordered table-bg table-hover table-sort">
  24. <tr>
  25. <th width="7%">汇总信息</th>
  26. <th>
  27. <ul>
  28. <li>总单数:{{$total['order_count']}}&nbsp;&nbsp;&nbsp;&nbsp;
  29. 总货品成本:&yen;{{$total['goods_cost']}}&nbsp;&nbsp;&nbsp;&nbsp;
  30. 总物流成本:&yen;{{$total['freight_cost']}}&nbsp;&nbsp;&nbsp;&nbsp;
  31. </ul>
  32. </th>
  33. </tr>
  34. </table>
  35. <div class="mt-20">
  36. <table class="table table-border table-bordered table-bg table-hover table-sort">
  37. <thead>
  38. <tr class="text-c">
  39. <th width="8%">日期</th>
  40. <th width="8%">仓库</th>
  41. <th width="8%">单数</th>
  42. <th width="8%">货品成本</th>
  43. <th width="8%">物流成本</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. @if($result)
  48. @foreach($result as $a)
  49. <tr class="text-c" style=" text-align:center;">
  50. <td>{{$a['send_time']}}</td>
  51. <td>{{$a['warehouse']}}</td>
  52. <td>{{$a['order_count']}}</td>
  53. <td>{{$a['goods_cost']}}</td>
  54. <td>{{$a['freight_cost']}}</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 warehouse = $('#warehouse').val();
  77. //var page = {{$page}};
  78. location.href = 'warehouseFinanceList?stime='+stime+'&etime='+etime+'&warehouse='+warehouse;
  79. }
  80. //导出
  81. function statistics_export(){
  82. var stime = $('#stime').val();
  83. var etime = $('#etime').val();
  84. var warehouse = $('#warehouse').val();
  85. location.href = '/admin/statistics/warehouseFinanceList_export?stime='+stime+'&etime='+etime+'&warehouse='+warehouse;
  86. }
  87. /*分页*/
  88. $("#page").paging({
  89. pageNo:{{$page}},
  90. totalPage: {{$pages}},
  91. totalSize: {{$count}},
  92. callback: function(num) {
  93. var stime = $('#stime').val();
  94. var etime = $('#etime').val();
  95. var warehouse = $('#warehouse').val();
  96. location.href='warehouseFinanceList?page='+num+'&stime='+stime+'&etime='+etime+'&warehouse='+warehouse;
  97. }
  98. })
  99. </script>
  100. </body>
  101. @endsection