<!-- include 'header' -->
<script src="<?= WEB_SITE_GLOBAL ?>js/invoice.js"></script>
<body>
	<div class="mainLayout">
		<div class="mainMenu">
			<div class="menuItem">
				<a href="#" class="mLogo">CLD</a>
				<ul>
					<!-- include 'menuReceipt' -->
				</ul>
			</div>
		</div>
		<div class="warpContent">
			<div class="subMenu fL">
				<div class="menuItem">
					<!-- include 'invoiceMenu' -->
				</div>
			</div>
			<div class="adminContent autoHeight">
				<legend>
					已审批发票
				</legend>
				<div class="demandCate">
					<ul class="cateList">
						<li><a <!-- if {{date}}=='MONTHO' --> class="now" <!-- endif --> href="/invoiceApprovalAchieve/1/MONTHO/{{MebSea}}">最近一个月</a>
	  					<a <!-- if {{date}}=='MONTHT' --> class="now" <!-- endif --> href="/invoiceApprovalAchieve/1/MONTHT/{{MebSea}}">最近三个月</a>
	  					<a <!-- if {{date}}=='MONTHY' --> class="now" <!-- endif --> href="/invoiceApprovalAchieve/1/MONTHY/{{MebSea}}" >今年</a>
	  					<a <!-- if {{date}}=='MONTHA' --> class="now" <!-- endif --> href="/invoiceApprovalAchieve/1/MONTHA/{{MebSea}}" >更旧</a></li>
						<li>
							<div class="search">
								<div class="input-append">
									<form action="/invoiceApprovalAchieve/1/{{date}}" id="ira" method="get" >
								<input class="span3" type="text"  data-irmMebSea value="{{MebSeaEn}}" placeholder="发票抬头、开票金额">
								<button class="btn btn-small" node-iramMebSea type="button">搜索</button>
								</form>
								</div>
							</div></li>
					</ul>
				</div>
				<div class="saeaList">
					<table class="table table-hover">
						<tbody>
						<tr class="thead"><th>开票流水号</th><th>开票单位（抬头）</th><th>开票金额</th><th>提交开票</th><th>完成审批</th></tr>
						
						<!-- loop list -->
						<tr>
							<td><a href="#invdetail" node-invoice='INFO' data-isKey="{{pendingInvoice' value.iidKeyK}}" data-toggle="modal">{{list' value.invoiceSerial}}</a></td>
							<td><!-- if !empty({{list' value.invoiceType}}) -->
	                                   	{{list' value.invoiceCompany}}
	                                    <!-- else -->
	                                    {{list' value.invoiceTitle}}
	                                    <!-- endif --></td>
							
							<td>
							<!-- if !empty({{list' value.invoiceType}}) -->
	                        <b>￥{{list' value.invoicePrice}}</b><sup>专</sup>
	                          <!-- else -->
	                          <b>￥{{list' value.invoicePrice}}</b>
	                          <!-- endif -->
							</td>
							
							<td>{{list' value.categoryName}}{{list' value.userName}} {{list' value.date}}</td>
							<td>
							  <!-- if {{ilist' value.operationLog.status}}==2 -->
                                    <span class="colGreen">同意</span> 
                                   <!-- elseif {{ilist' value.operationLog.status}}==3 -->
                                   <span class="colOrange">退回</span>
                                   <!-- elseif {{ilist' value.operationLog.status}}==4 -->
                                   <span class="colRed">终止</span>
                                   <!-- endif -->
                                    	{{ilist' value.operationLog.username}} {{ilist' value.operationLog.date}}
							</td>
							
						</tr>
						<!-- endloop -->
						
						
						</tbody>
					</table>
				</div>
						  		<!--翻页-->
				<div class="demandPage">
					<ul class="pagination fL">
	  							<!-- if {{page.previous}}==0 -->
								<li><a href="javascript:void(0)" title="上一页">&lt;</a></li>
								<!-- else -->
								<li><a href="/invoiceApprovalAchieve/{{page.previous}}{{get}}" title="上一页">&lt;</a></li>
								<!-- endif -->	
								
	  							<!-- if {{page.on_page}}>=3 -->
	  							<li><a href="/invoiceApprovalAchieve/1{{get}}" title="上一页">1</a></li>
	  							<li class="point"><span>...</span></li>
	  							<!-- endif -->
	  							
	  							{{page.page}}
	  							
	  							<!-- if {{page.on_page}}<3 && {{page.total_page}}>5 -->
	  							<li><a href="/invoiceApprovalAchieve/4{{get}}" >4</a></li>
	  							<li><a href="/invoiceApprovalAchieve/5{{get}}" >5</a></li>
	  							<!-- endif -->
	  							
	  							<!-- if {{page.total_page}}>3 -->
	  							<li class="point"><span>...</span></li>
			  					<!-- endif -->
			  					
			  					<!-- if {{page.next}}=={{page.on_page}} -->
								<li><a href="javascript:void(0)" title="下一页">&gt;</a></li>
								<!-- else -->
								<li><a href="/invoiceApprovalAchieve/{{page.next}}{{get}}" title="下一页">&gt;</a></li>
								<!-- endif -->
			  					
			  		</ul>
			  	</div>				
			</div>
		</div>
	</div>
	<!--弹出（录入收款）-->
<div class="modal hide fade" id="inputbill">
    <div class="modal-header">
    <h3>录入收款</h3>
    </div>
    <div class="modal-body">
    	<form>
    		<div class="control-group">
              <label class="control-label"><span class="colRed">*</span>到款金额</label>
              <div class="controls">
                <input value="0" placeholder="输入开票金额" pattern="[0-9]" min="0" step="0.01" type="number">
              </div>
            </div>
    		<div class="control-group">
              <label class="control-label"><span class="colRed">*</span>到款信息</label>
              <div class="controls">
                <input type="text">
              </div>
            </div>
    		<div class="control-group">
              <label class="control-label"><span class="colRed">*</span>到款银行</label>
              <div class="controls">
                <select>
	            	<option>广发银行珠海分行柠溪支行</option>
	            </select>
              </div>
            </div>
    		<div class="control-group">
              <label class="control-label"><span class="colRed">*</span>银行到款时间</label>
              <div class="controls">
                <input type="date">
              </div>
            </div>
    		<div class="control-group">
              <label class="control-label">指定认领人</label>
              <div class="controls">
                <select>
	            	<option>待认领款项</option>
	            	<option>广东办-刘飞</option>
	            </select>
              </div>
            </div>
    		<div class="control-group">
              <label class="control-label">未收款发票</label>
              <div class="controls">
                <select>
	            	<option>￥30000.00-珠海XXXXXXX公司-441027465</option>
	            	<option>￥40000.00-珠海XXXXXXX公司-441027465</option>
	            </select>
              </div>
            </div>
    	</form>
    </div>
	<div class="modal-footer">
	    <a href="#" class="button" data-dismiss="modal" aria-hidden="true">确认录入</a>
	    <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
	</div>
</div>
    <!--弹出内容-->
	<!--弹出（录入收款）-->
<div class="modal hide fade" id="receive">
    <div class="modal-header">
    <h3>认领收款</h3>
    </div>
    <div class="modal-body">
    	<table class="table">
    		<thead><tr><th width="50">收款信息</th><td></td>
    			<th width="60"></th><td></td></tr></thead>
    		<tr>
    		</tr>
    		<tr>
    			<th>收款金额</th><td><b class="colOrange">￥200000.00</b></td>
    			<th>收款信息</th><td>陈宇</td>
    		</tr>
    		<tr>
    			<th>收款银行</th><td>广发银行珠海分行柠溪支行</td>
    			<th>银行到帐</th><td>2016-04-11</td>
    		</tr>
    		<tr>
    			<th>录入收款</th><td>张少珊<br>2015-04-12 11:30:02</td>
    			<th></th><td></td>
    		</tr>
    	</table>
    	<p class="colRed">请确认该收款属于您</p>
    </div>
	<div class="modal-footer">
	    <a href="#" class="button" data-dismiss="modal" aria-hidden="true">确认认领</a>
	    <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
	</div>
</div>
<div loading-msg='true' style="position:absolute;  left:50%;  top:50%;  "></div>
	<div class="modal  fade" id="invdetail">
		
		<div id="nc"></div>
	</div>
    <!--弹出内容-->        	
<script type="text/javascript">autoFlashHeight();</script>	
</body>