| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
- integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
- <!-- 可选的 Bootstrap 主题文件(一般不用引入) -->
- <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
- integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
- <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
- <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"
- integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
- crossorigin="anonymous"></script>
- </head>
- <body>
- <div class="panel panel-default panel-intro">
- {:build_heading()}
- <div class="panel-body">
- <div id="myTabContent" class="tab-content">
- <div class="tab-pane fade active in" id="one">
- <div class="widget-body no-padding">
- <div id="toolbar" class="toolbar">
- <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
- <a href="javascript:;" id="out" class="btn btn-danger {:$auth->check('report/warehousingOut')?'':'hide'}" title="导出" >导出</a>
- <div class="pull-right" style="margin-right: 60px;">
- <input type="text" class="form-control" placeholder="输入工单号..." value="{:input('productNumber')}">
- <button class="btn btn-default" type="button" style="margin-top:-58px;margin-left:180px;" id="search" title="普通搜索">
- <i class="glyphicon glyphicon-search"></i>
- </button>
- </div>
- </div>
- <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
- width="100%">
- <thead style="display:block;width: 1087px;">
- <th style="width: 50px;text-align: center">序号</th>
- <th style="width: 100px;text-align: center">工单号</th>
- <th style="width: 600px; text-align: center">产品名称</th>
- <th style="width: 100px;text-align: center">专色墨颜色</th>
- <!--<th style="width: 100px;text-align: center">专色墨批次号</th>-->
- <th style="width: 150px;text-align: center">领用总重量(kg)</th>
- <th style="width: 150px;text-align: center">退回总重量(kg)</th>
- <th style="width: 150px;text-align: center">消耗总重量(kg)</th>
- </thead>
- <tbody style="display:block;width: 1087px;overflow-x: auto;">
- <notempty name="list">
- {volist name="list" id="vo" key="key"}
- <tr>
- <td style="width: 48px;">{$key}</td>
- <td style="width: 87px;">{$vo.order_number}</td>
- <td style="width: 438px;">{$vo.product_name}</td>
- <td style="width: 96px;">{$vo.color}</td>
- <!--<td style="width: 100px;">{$vo.warehousing}</td>-->
- <td style="width: 140px;">{$vo.out_weight}</td>
- <td style="width: 139px;">{$vo.back_weight}</td>
- <td style="width: 139px;">{$vo.total}</td>
- </tr>
- {/volist}
- </notempty>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
- <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
- <script language="javascript" type="text/javascript">
- $('#search').click(function () {
- var productNumber = $('.form-control').val();
- var url = "{:url('admin/report/warehousing')}";
- window.location.href = url + '?productNumber=' + productNumber;
- })
- $('#out').click(function () {
- var productNumber = $('.form-control').val();
- var url = "{:url('admin/report/warehousingOut')}";
- url = url + '?productNumber=' + productNumber;
- console.log(url)
- window.location.href = url;
- })
- </script>
|