<!-- 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="/invoiceUntreadAchieve/1/MONTHO/{{MebSea}}">最近一个月</a>
	  					<a <!-- if {{date}}=='MONTHT' --> class="now" <!-- endif --> href="/invoiceUntreadAchieve/1/MONTHT/{{MebSea}}">最近三个月</a>
	  					<a <!-- if {{date}}=='MONTHY' --> class="now" <!-- endif --> href="/invoiceUntreadAchieve/1/MONTHY/{{MebSea}}" >今年</a>
	  					<a <!-- if {{date}}=='MONTHA' --> class="now" <!-- endif --> href="/invoiceUntreadAchieve/1/MONTHA/{{MebSea}}" >更旧</a></li>
						<li>
							<div class="search">
								<div class="input-append">
									<form action="/invoiceUntreadAchieve/1/{{date}}" id="iaa" 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><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.invoiceNo}}</td>
							
							<td>{{list' value.categoryName}}{{list' value.userName}} {{list' value.date}}</td>
							<td>{{invoiceList' value.untreadCompany}}:
                                    <a href="#shipping" title="{{invoiceList' value.untreadItems}}" node-express="untread" data-toggle="modal">{{invoiceList' value.untreadNumber}}</a> 
                                    <a target="_blank" href="http://www.kuaidi100.com/chaxun?com={{invoiceList' value.untreadCom}}&nu={{invoiceList' value.untreadNumber}}">查询快递</a> 
                                    </td>
							<td>{{establishedInvoice' value.OperationLog.username}} {{establishedInvoice' value.OperationLog.date}}</td>
							<td>
                                   <!-- if {{establishedInvoice' value.lossShow}} -->
	                                   <!-- if {{establishedInvoice' value.lossIid}}==0 -->
	                                    <a href="#request" node-invoiceLoss='INFO' data-isKey="{{establishedInvoice' value.iidKeyK}}" data-toggle="modal">申请打印</a>
	                                   <!-- else -->
	                                   <a href="#invdetail" node-invoice='INFO' data-isKey="{{invoiceList' value.lossDetail.iidKeyK}}" data-toggle="modal">{{invoiceList' value.lossDetail.invoiceSerial}}</a>
	                                   <!-- endif -->
                                   <!-- else -->
                                   	当月退票
                                   <!-- endif -->
                                    </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="/invoiceUntreadAchieve/{{page.previous}}{{get}}" title="上一页">&lt;</a></li>
								<!-- endif -->	
								
	  							<!-- if {{page.on_page}}>=3 -->
	  							<li><a href="/invoiceUntreadAchieve/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="/invoiceUntreadAchieve/4{{get}}" >4</a></li>
	  							<li><a href="/invoiceUntreadAchieve/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="/invoiceUntreadAchieve/{{page.next}}{{get}}" title="下一页">&gt;</a></li>
								<!-- endif -->
			  		</ul>
			  	</div>				
			</div>
		</div>
	</div>
	
	
<div class="modal hide fade" id="request">
	<div class="modal-dialog modal-lg">
		<div class="modal-content">
		
		<form action="/invoiceLossDo" method="post" name="receivablesInvoiceBind">
			<input type="hidden" name="iidKey" id="inKey" value="">
			<div class="modal-header">
				<h3>打印信息</h3>
			</div>
			<div class="modal-body saeaList">
				
				<div id="irtc"></div>
			</div>
			<div class="modal-footer">
				<input type="submit" class="button"  value="确认提交">
				
				<a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
			</div>
		</form>
		</div>
	</div>
</div>
	
	
	<!--弹出快递跟踪-->
<div class="modal hide fade" id="shipping">
	<div class="modal-dialog">
		<div class="modal-content">
    <div class="modal-header">
    <h3>邮寄物品</h3>
    </div>
    <div class="modal-body saeaList">
		<table class="table table-bordered table-condensed">
			<tbody>
			<tr>
				<th class="taC">退票邮寄物品</th>
			</tr>
			<tr>
				<td node-express="msg">发票</td>
			</tr>
			</tbody>
		</table>
		
    </div>
	<div class="modal-footer">
	    <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
	</div>
			</div></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>