warehousing.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
  5. integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  6. <!-- 可选的 Bootstrap 主题文件(一般不用引入) -->
  7. <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
  8. integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
  9. <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
  10. <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"
  11. integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
  12. crossorigin="anonymous"></script>
  13. </head>
  14. <body>
  15. <div class="panel panel-default panel-intro">
  16. {:build_heading()}
  17. <div class="panel-body">
  18. <div id="myTabContent" class="tab-content">
  19. <div class="tab-pane fade active in" id="one">
  20. <div class="widget-body no-padding">
  21. <div id="toolbar" class="toolbar">
  22. <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
  23. <a href="javascript:;" id="out" class="btn btn-danger {:$auth->check('report/warehousingOut')?'':'hide'}" title="导出" >导出</a>
  24. <div class="pull-right" style="margin-right: 60px;">
  25. <input type="text" class="form-control" placeholder="输入工单号..." value="{:input('productNumber')}">
  26. <button class="btn btn-default" type="button" style="margin-top:-58px;margin-left:180px;" id="search" title="普通搜索">
  27. <i class="glyphicon glyphicon-search"></i>
  28. </button>
  29. </div>
  30. </div>
  31. <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  32. width="100%">
  33. <thead style="display:block;width: 1087px;">
  34. <th style="width: 50px;text-align: center">序号</th>
  35. <th style="width: 100px;text-align: center">工单号</th>
  36. <th style="width: 600px; text-align: center">产品名称</th>
  37. <th style="width: 100px;text-align: center">专色墨颜色</th>
  38. <!--<th style="width: 100px;text-align: center">专色墨批次号</th>-->
  39. <th style="width: 150px;text-align: center">领用总重量(kg)</th>
  40. <th style="width: 150px;text-align: center">退回总重量(kg)</th>
  41. <th style="width: 150px;text-align: center">消耗总重量(kg)</th>
  42. </thead>
  43. <tbody style="display:block;width: 1087px;overflow-x: auto;">
  44. <notempty name="list">
  45. {volist name="list" id="vo" key="key"}
  46. <tr>
  47. <td style="width: 48px;">{$key}</td>
  48. <td style="width: 87px;">{$vo.order_number}</td>
  49. <td style="width: 438px;">{$vo.product_name}</td>
  50. <td style="width: 96px;">{$vo.color}</td>
  51. <!--<td style="width: 100px;">{$vo.warehousing}</td>-->
  52. <td style="width: 140px;">{$vo.out_weight}</td>
  53. <td style="width: 139px;">{$vo.back_weight}</td>
  54. <td style="width: 139px;">{$vo.total}</td>
  55. </tr>
  56. {/volist}
  57. </notempty>
  58. </tbody>
  59. </table>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </body>
  66. </html>
  67. <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
  68. <script language="javascript" type="text/javascript">
  69. $('#search').click(function () {
  70. var productNumber = $('.form-control').val();
  71. var url = "{:url('admin/report/warehousing')}";
  72. window.location.href = url + '?productNumber=' + productNumber;
  73. })
  74. $('#out').click(function () {
  75. var productNumber = $('.form-control').val();
  76. var url = "{:url('admin/report/warehousingOut')}";
  77. url = url + '?productNumber=' + productNumber;
  78. console.log(url)
  79. window.location.href = url;
  80. })
  81. </script>