<!--{include file="<!--{$salepath}-->public/header.tpl"}-->
	<body>
			<div class="wrap-container clearfix">
				<div class="column-content-detail">
					<div class="layui-form" id="table-list">
						<table class="layui-table" lay-even lay-skin="nob">
							<colgroup>
								<col width="50">
								<col width="50">
								<col width="100">
								<col width="80">
								<col width="150">
								<col width="150">
							</colgroup>
							<thead>
								<tr>
									<th><input type="checkbox" lay-skin="primary" lay-filter="allChoose" data-id=""></th>
									
									<th>订单号</th>
									<th>产品名称</th>
									<th>数量</th>
									<th>供应商</th>
									<th>预计到货时间</th>
									<th>实际到货时间</th>
									<th>订单创建时间</th>
									<th>订单发起人</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
                                <!--{if empty($storage)}-->
                                    <tr>
                                           <td colspan="5" style="text-align: center;">没有符合条件的信息！</td>
                                    </tr>
                                <!--{else}-->
                                                              
                                    <!--{foreach $storage as $key=>$volist}-->
                                    <tr>
                                    <td><input type="checkbox"  lay-skin="primary" data-id="<!--{$volist.productid}-->"></td>
									<td><!--{$volist.purchase_name}--></td>
									<td><!--{$volist.productname}--></td>
									<td><!--{$volist.pruchase_number}--></td>
									<td><!--{$volist.supplier_name}--></td>
									<td><!--{$volist.delivery_time}--></td>
									<td><!--{$volist.receiptTime|date_format:"%Y-%m-%d %H:%M"}--></td>
									<td><!--{$volist.add_time|date_format:"%Y-%m-%d %H:%M"}--></td>
									<td><!--{$volist.create_user_name}--></td>
									
									<td>
										<div class="layui-inline">
											<button class="layui-btn layui-btn-small layui-btn-normal addBtn" data-id="<!--{$volist.id}-->" data-url="sale.php?c=Purchase&a=storage&id=<!--{$volist.id}-->" data-text='入库确认'><i class="layui-icon">&#xe642;</i></button>
											<button class="layui-btn layui-btn-small layui-btn-danger del-btn" data-id="<!--{$volist.productid}-->" data-url="sale.php?c=Product&a=del"><i class="layui-icon">&#xe640;</i></button>
										</div>
									</td>
  </tr>
                                                               <!--{/foreach}--> 


                                                             
                                                          <!--{/if}-->
								
							
							</tbody>
						</table>


						<div class="layui-input-block">
							<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">导出报表</button>
						</div>



						<div class="page-wrap">
							<ul class="pagination">
                                                            <!--{$showpage}-->
								 <!--<li class="disabled"><span>«</span></li>
								<li class="active"><span>1</span></li>
								<li>
									<a href="#">2</a>
								</li>
								<li>
									<a href="#">»</a>
								</li>-->
							</ul>
						</div>
					</div>
				</div>
		</div>
	
		
		<script src="<!--{$salepath}-->static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="<!--{$salepath}-->static/js/common.js" type="text/javascript" charset="utf-8"></script>
                  <script src="<!--{$salepath}-->static/js/jquery-3.2.1.js" type="text/javascript" charset="utf-8"></script>
                  <script type="text/javascript">
                            $(document).ready(function () { 
                            $("#search").click(function(){
                                    document.getElementById("forms").submit();
                                           
                            }); 
                    }); 

					</script>


					 <script type="text/javascript">
                  			layui.use(['form', 'layedit', 'laydate'], function() {
				var form = layui.form(),
					layer = layui.layer;
				form.on('submit(formDemo)', function(data) {   
                                            $.ajax({
                                                type: 'POST',
                                                url:"sale.php?c=Report&a=ruku",
                                                async:true,
                                                dataType : "json",
                                                success:function(data){
                                                      if(data.code=='1'){                                                           
                                                            layer.msg(data.msg);
                                                            setTimeout(function(){
                                                                    parent.location.reload(true);
                                                                    layer.closeAll();
                                                              
                                                            }, 1500);
                                                      }
                                                      return false;
                                                },
                                                error:function(e){
                                                       return false;
                                                }
                                            });
                                          
					return false;
				});

			});
			
		</script>
	</body>
</html>
