<!--{include file="<!--{$salepath}-->public/header.tpl"}-->
		<div class="wrap-container welcome-container">
			<div class="row">
				<div class="welcome-left-container col-lg-12">
					<div class="data-show">
						<ul class="clearfix">
							<li class="col-sm-12 col-md-4 col-xs-12">
								<a href="javascript:;" class="clearfix">
									<div class="icon-bg bg-org f-l">
										<span class="iconfont">&#xe600;</span>
									</div>
									<div class="right-text-con">
										<p class="name">销售订单</p>
										<p><span class="color-org">￥</span>
                                        <span class="color">未发货<!--{$ordernum}-->笔</span>
                                        </p>
                                                                                
									</div>
								</a>
							</li>
							<li class="col-sm-12 col-md-4 col-xs-12">
								<a href="javascript:;" class="clearfix">
									<div class="icon-bg bg-blue f-l">
										<span class="iconfont">&#xe602;</span>
									</div>
									<div class="right-text-con">
										<p class="name">采购订单</p>
										<p>
											<span class="color-blue">￥</span>未审核<span class="color"><!--{$purchase1}-->笔</span>      
											未入库<span class="color"><!--{$purchase2}-->笔</span>
										</p>
									</div>
								</a>
							</li>
							<!-- <li class="col-sm-12 col-md-4 col-xs-12">
								<a href="javascript:;" class="clearfix">
									<div class="icon-bg bg-green f-l">
										<span class="iconfont">&#xe605;</span>
									</div>
									<div class="right-text-con">
										<p class="name">欠款</p>
										<p>客户<span class="color-green">￥221</span>供应商<span class="color-green">￥221</span></p>
									</div>
								</a>
							</li> -->
                                                        
						</ul>
					</div>
					<!--图表-->
					<div class="chart-panel panel panel-default">
						<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
  <ul class="layui-tab-title">
    <li class="layui-this">待我审核</li>
    <li>我已审批</li>
    <li>审批完成</li>
    <li>待出库</li>
    <li>待入库</li>
  </ul>
    <div class="layui-tab-content" style="height: 450px; overflow: auto;padding: 0px;">
                            <div class="layui-tab-item layui-show">
 	<div class="layui-form" id="table-list">
				<table class="layui-table" lay-even lay-skin="nob" style='margin: 0; '>
					<thead>
						<tr>
							<th>单据编号</th>
							<th>单据类型</th>
							<th>商品名称</th>
							<th>客户/供应商</th>
							<th>采购数量</th>
							<th>提交人</th>
							<th>提交时间</th>
                            <th>操作</th>
						</tr>
					</thead>
					<tbody>
						<!--{foreach $purchase11 as $key=>$volist}-->
						<tr>
							<td><!--{$volist.purchase_name}--></td>
							<td><!--{$purchase111}--></td>
							<td><!--{$volist.productname}--></td>
							<td><!--{$volist.purchase_name}--></td>
							<td><!--{$volist.pruchase_number}--></td>
                            <td><!--{$volist.create_user_name}--></td>
							<td><!--{$volist.add_time|date_format:"%Y-%m-%d %H:%M"}--></td>
							<td>
								<div class="layui-inline">
                                    <a href="sale.php?c=Purchase&a=status&id=<!--{$volist.id}-->" data-url="menu1.html" data-id='1' data-text="通过">通过</a>
                                    <a href="javascript:;" data-url="menu1.html" data-id='1' data-text="驳回">驳回</a>
								</div>
							</td>
						</tr>
						<!--{/foreach}-->
						
					
					</tbody>
				</table>
				<!--<div class="page-wrap">
						<ul class="pagination">
							<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 class="layui-tab-item">
        <div class="layui-form" id="table-list">
				<table class="layui-table" lay-even lay-skin="nob" style='margin: 0; '>
					<thead>
						<tr>
							<th>单据编号</th>
							<th>单据类型</th>
							<th>客户/供应商</th>
							<th>采购数量</th>
							<th>提交时间</th>
							<th>我的审批结果</th>
                            <th>备注</th>
						</tr>
					</thead>
					<tbody>
						<!--{foreach $purchase22 as $key=>$volist1}-->
						<tr>
							<td><!--{$volist1.purchase_name}--></td>
							<td><!--{$purchase222}--></td>
							<td>配件公司</td>
							<td><!--{$volist1.purchase_name}--></td>
                            <td><!--{$volist1.add_time|date_format:"%Y-%m-%d %H:%M"}--></td>
							<td>通过</td>
							<td>
								<!--{$volist1.remarks}-->
							</td>
						</tr>
						<!--{/foreach}-->
						
					
					</tbody>
				</table>
				<!--<div class="page-wrap">
						<ul class="pagination">
							<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 class="layui-tab-item">
        <div class="layui-form" id="table-list">
				<table class="layui-table" lay-even lay-skin="nob" style='margin: 0; '>
					<thead>
						<tr>
						
							<th>单据编号</th>
							<th>单据类型</th>
							<th>客户/供应商</th>
							<th>金额</th>
							<th>审批人</th>
							<th>审批时间</th>
                                                        <th>审批结果</th>
                                                        <th>操作</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							
							<td>BQ201901170001</td>
							<td>采购入库单</td>
							<td>配件公司</td>
							<td>￥ 0.0000</td>
                            <td>管理员</td>
							<td>2019-01-17 09:59</td>
                            <td>已提交</td>
							<td>
								<div class="layui-inline">
                                    <a href="javascript:;" data-url="menu1.html" data-id='1' data-text="通过">作废</a>
                                                                 
								</div>
							</td>
						</tr>
					
						
					
					</tbody>
				</table>
				<!--<div class="page-wrap">
						<ul class="pagination">
							<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 class="layui-tab-item">
       <div class="layui-form" id="table-list">
				<table class="layui-table" lay-even lay-skin="nob" style='margin: 0; '>
					<thead>
						<tr>
						
							<th>单据编号</th>
                            <th>单据类型</th>
							<th>客户</th>
							<th>金额</th>
                            <th>数量</th>
                            <th>下单时间</th>
							<th>状态</th>
                            <th>操作</th>

                                                  
						</tr>
					</thead>
					<tbody>
						<!--{foreach $order1 as $key=>$volist2}-->
						<tr>
							
							<td><!--{$volist2.ordernum}--></td>
                            <th><!--{$order111}--></th>
							<td><!--{$volist2.linkman}--></td>
							<td><!--{$volist2.orderprice}--></td>
                            <th><!--{$volist2.goodsnum}--></th>
                            <th><!--{$volist2.time|date_format:"%Y-%m-%d %H:%M"}--></th>
							<td><!--{$volist2.status}--></td>
							<td>
								<div class="layui-inline">
                                    <a href="sale.php?c=Salesorder&a=out&id=<!--{$volist2.ordernum}-->" data-url="menu1.html" data-id='1' data-text="通过">发货</a>
                                    <a href="javascript:;" data-url="menu1.html" data-id='1' data-text="驳回">驳回</a>
								</div>
							</td>

						</tr>
						<!--{/foreach}-->
						
					
					</tbody>
				</table>
				<!--<div class="page-wrap">
						<ul class="pagination">
							<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 class="layui-tab-item">
        <div class="layui-form" id="table-list">
				<table class="layui-table" lay-even lay-skin="nob" style='margin: 0; '>
					<thead>
						<tr>
						
							<th>单据编号</th>
							<th>产品名称</th>
							<th>供应商</th>
							<th>数量</th>
							<th>采购员</th>
							<th>下单日期</th>
							<th>到货日期</th>
						</tr>
					</thead>
					<tbody>

					
						
						<!--{foreach $purchase22 as $key=>$volist1}-->
						<tr>
							
							<td><!--{$volist1.purchase_name}--></td>
							<td><!--{$volist1.productname}--></td>
							<td><!--{$volist1.purchase_name}--></td>
							<td><!--{$volist1.pruchase_number}--></td>
                            <td>管理员</td>
							<td><!--{$volist1.add_time|date_format:"%Y-%m-%d %H:%M"}--></td>
							<td><!--{$volist1.delivery_time}--></td>


						</tr>
						<!--{/foreach}-->
					
						
					
					</tbody>
				</table>
				<!--<div class="page-wrap">
						<ul class="pagination">
							<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>
</div> 
					</div>
                                        
					<!--服务器信息-->
					<!--<div class="server-panel panel panel-default">
						<div class="panel-header">服务器信息</div>
						<div class="panel-body clearfix">
							<div class="col-md-2">
								<p class="title">服务器环境</p>
								<span class="info">Apache/2.4.4 (Win32) PHP/5.4.16</span>
							</div>
							<div class="col-md-2">
								<p class="title">服务器IP地址</p>
								<span class="info">127.0.0.1   </span>
							</div>
							<div class="col-md-2">
								<p class="title">服务器域名</p>
								<span class="info">localhost </span>
							</div>
							<div class="col-md-2">
								<p class="title"> PHP版本</p>
								<span class="info">5.4.16</span>
							</div>
							<div class="col-md-2">
								<p class="title">数据库信息</p>
								<span class="info">5.6.12-log </span>
							</div>
							<div class="col-md-2">
								<p class="title">服务器当前时间</p>
								<span class="info">2016-06-22 11:37:35</span>
							</div>
						</div>
					</div>-->
				</div>
				
				<div class="welcome-edge col-lg-3" style="display: none;">
					<!--最新留言-->
					<!--<div class="panel panel-default comment-panel">
						<div class="panel-header">查询</div>
						<div class="panel-body">
							<div class="commentbox">
								
                                 <div class="layui-form-item">
                                    <label class="layui-form-label" style="width: 86px;     padding: 9px 0px;">单据查询：</label>
                                    <div class="layui-input-block" style="position: relative;">
                                      <input type="text" name="id" class="layui-input" value="">
                                      <span class="search">
                                      </span>
                                
                                    </div>
                                  </div>
								     <div class="layui-form-item">
                                    <label class="layui-form-label" style="width: 86px;     padding: 9px 0px;">库存查询：</label>
                                    <div class="layui-input-block">
                                      <input type="text" name="id" class="layui-input" value="">
                                         <span class="search">
                                      </span>
                                    </div>
                                  </div> <div class="layui-form-item">
                                    <label class="layui-form-label" style="width: 86px;     padding: 9px 0px;">客户查询：</label>
                                    <div class="layui-input-block">
                                      <input type="text" name="id" class="layui-input" value="">
                                         <span class="search">
                                      </span>
                                    </div>
                                  </div> <div class="layui-form-item">
                                      <label class="layui-form-label" style="width: 86px;     padding: 9px 0px;">供应商查询：</label>
                                    <div class="layui-input-block">
                                      <input type="text" name="id" class="layui-input" value="">
                                         <span class="search">
                                      </span>
                                    </div>
                                  </div>
								
							</div>
							<div id="pagesbox" style="text-align: center;padding-top: 5px;">
								
							</div>
						</div>
					</div> -->

					<!--联系-->
					<div class="panel panel-default contact-panel">
						<div class="panel-header">
                                                    <span> 库存预警</span>
                                                    <span style="float: right;" class="product"> <a href="javascript:;"  data-id='4' data-text="产品列表" style="color: #86D2ee;">差看详情</a></span>
                                                </div>
						<div class="panel-body" >
							<div class="warning-item"><div class="title">高库存预警数</div><div class="subtitle">15.00</div></div>
                                                        <div class="warning-item"><div class="title">高库存预警数</div><div class="subtitle">15.00</div></div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<script src="<!--{$salepath}-->static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="<!--{$salepath}-->static/lib/echarts/echarts.js"></script>
                <script src="<!--{$salepath}-->static/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>

		<script>
layui.use('element', function(){
  var $ = layui.jquery
  ,element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块
  
  //触发事件
  var active = {
    tabAdd: function(){
      //新增一个Tab项
      element.tabAdd('demo', {
        title: '新选项'+ (Math.random()*1000|0) //用于演示
        ,content: '内容'+ (Math.random()*1000|0)
        ,id: new Date().getTime() //实际使用一般是规定好的id，这里以时间戳模拟下
      })
    }
    ,tabDelete: function(othis){
        
      //删除指定Tab项
      element.tabDelete('demo', '44'); //删除：“商品管理”
      
      
      othis.addClass('layui-btn-disabled');
    }
    ,tabChange: function(){
      //切换到指定Tab项
      element.tabChange('demo', '22'); //切换到：用户管理
    }
  };
  
  $('.site-demo-active').on('click', function(){
    var othis = $(this), type = othis.data('type');
    active[type] ? active[type].call(this, othis) : '';

  });
  
  
  

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