<!-- include 'header' -->
<link rel=stylesheet href="<?= WEB_SITE_GLOBAL ?>css/jquery.validator.css"> 
<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/jquery.validator.min.js"></script>
<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/zh-CN.js"></script>
<script src="<?= WEB_SITE_GLOBAL ?>js/invoice.validator.js"></script>
<link href="<?= WEB_SITE_GLOBAL ?>css/datepicker.min.css" rel="stylesheet" type="text/css">
<script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.min.js"></script>
<script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.zh.js"></script>
<script src="<?= invoice ?>"></script>

<script>


</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">
				<form action="/invoiceUntreadED/1" id="iaa" method="get" >
					<ul class="cateList">
					<li>
							<select name="invoiceType" node-invoiceType>
								<option <!-- if {{invoiceType}}=='ALL' --> selected <!-- endif --> value="ALL">类型</option>
								<option <!-- if {{invoiceType}}=='ORDINARY' --> selected <!-- endif --> value="ORDINARY">普通发票</option>
								<option <!-- if {{invoiceType}}=='SPECIAL' --> selected <!-- endif --> value="SPECIAL">专用发票</option>
							</select>
						</li>
						<li >
							<div class="search">
								<div class="input-append">
									<input class="datepicker-here span3" name="date" value="{{date}}" placeholder="按时间筛选" type="text" data-range="true"
							    data-multiple-dates-separator=" : "
							    data-language="zh">
									<button class="btn btn-small" type="submit">查询</button>
								</div>
							</div></li>						<li>
							<div class="search"> 
							<div class="input-append">
								<input class="span3" type="text" name="MebSea" value="{{MebSeaEn}}" placeholder="发票号,开票金额,发票抬头">
								<button class="btn btn-small" type="submit">搜索</button>
							</div>
						</li>
	  			</ul>
	  			</form>
	  		</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><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 {{list' value.settlementType}}==0 -->
								软件销售
								<!-- else -->
								<a href="/invoiceTrainingDetail/{{list' value.trainIdKey}}.html">培训班</a>
								<!-- endif -->
							</td>
							<td>
							<!-- if !empty({{list' value.invoiceType}}) -->
	                        <b>￥{{list' value.invoicePrice}}</b><sup>专</sup>
	                          <!-- else -->
	                          <b>￥{{list' value.invoicePrice}}</b>
	                          <!-- endif -->
							</td>
							<td>
							<!-- if !empty({{list' value.invoiceType}}) -->
	                                   	{{list' value.invoiceCompany}}
	                                    <!-- else -->
	                                    {{list' value.invoiceTitle}}
	                                    <!-- endif -->
							</td>
							<td>{{list' value.invoiceNo}}</td>
							<td>{{list' value.invoiceElement}}</td>
							
							<td>{{list' value.untreadReason}}</td>
							<td>
							<!-- if {{invoiceList' value.untreadPost}}==0 -->
                                    	不需邮寄
                                    <!-- elseif {{invoiceList' value.untreadPost}}==1&&empty({{invoiceList' value.untreadNumber}}) -->
                                    	未填写快递
                                    <!-- elseif !empty({{invoiceList' value.untreadNumber}}) -->
                                   {{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> 
                                    <!-- endif -->
                            </td>
							<td>
							{{list' value.OperationLog.username}} {{list' value.OperationLog.date}}
							</td>
							<td>
								<!-- if {{list' value.settlementType}}==1&&{{list' value.settlementStatus}} -->
								<a href="/invoiceUntreadAdd/{{list' value.iidKeyK}}.html">重新开票</a>
								<!-- 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="/invoiceUntreadED/{{page.previous}}{{get}}" title="上一页">&lt;</a></li>
								<!-- endif -->	
								
	  							<!-- if {{page.on_page}}>=3 -->
	  							<li><a href="/invoiceUntreadED/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="/invoiceUntreadED/4{{get}}" >4</a></li>
	  							<li><a href="/invoiceUntreadED/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="/invoiceUntreadED/{{page.next}}{{get}}" title="下一页">&gt;</a></li>
								<!-- endif -->
			  		</ul>
			  	</div>				
			  	
			  	
			</div>
		</div>
	</div>
	<!--弹出 退票-->
	
	
	
	<!--退票-->
	<div class="modal  fade" id="billing">
		<div id="nr"></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>
