<!-- 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="<?= 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">
				<form action="/invoiceUntreadIsAchieve/1" id="ira" method="get" >
					<ul class="cateList">
						<!-- <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>
							<!-- if empty({{list' value.irList}}) -->
							<td></td>
							<td></td>
							<td></td>
							<!-- else -->
							<td><a href="#billing" node-invoice='INFO' data-type="receivables" data-isKey="{{list' value.irList.0.iridKeyK}}" data-toggle="modal">{{list' value.irList.0.receivablesSerial}}</a></td>
							<td>{{list' value.irList.0.receivablesPrice}}</td>
							<td>{{list' value.irList.0.confirmTime}}</td>
							<!-- endif -->
							<td><a diss-data="{{list' value.iidKey}}" node-invoice="untreadInvoice" href="#return" data-toggle="modal">申请退票</a></td>
						</tr>
						<!-- endloop -->
						
						</tbody>
					</table>
				</div>
						  		<!--翻页-->
				<div class="demandPage" style='display:none'>
					<ul class="pagination fL">
	  							<!-- if {{page.previous}}==0 -->
								<li><a href="javascript:void(0)" title="上一页">&lt;</a></li>
								<!-- else -->
								<li><a href="/invoiceUntreadIsAchieve/{{page.previous}}{{get}}" title="上一页">&lt;</a></li>
								<!-- endif -->	
								
	  							<!-- if {{page.on_page}}>=3 -->
	  							<li><a href="/invoiceUntreadIsAchieve/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="/invoiceUntreadIsAchieve/4{{get}}" >4</a></li>
	  							<li><a href="/invoiceUntreadIsAchieve/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="/invoiceUntreadIsAchieve/{{page.next}}{{get}}" title="下一页">&gt;</a></li>
								<!-- endif -->
			  		</ul>
			  	</div>				
			  	
			  	
			</div>
		</div>
	</div>
	<!--弹出 退票-->
	
	
	
	
	<div class="modal hide fade" id="return">
	<form action="/invoiceUntreadDo" method="post" name="untreadInvoice">
	<input type="hidden" name='untreadIidKey' value="">
		<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"><span class="colRed">*</span>退票原因</th>
							<td>
							<textarea class="span4" name="untreadReason" placeholder="请详细填写退票原因"></textarea>
							</td>
						</tr>
						<tr>
							<th class="taC"><span class="colRed">*</span>是否邮寄</th>
							<td><label class="radio inline"><input name="untreadPost" node-untread='post' value="1" checked type="radio">是</label>
							<label class="radio inline"><input name="untreadPost" value="0" type="radio">否</label>
							</td>
						</tr>
						</tbody>
					</table>
					
					<!-- 待删除
					<table post-box='ture' class="table table-bordered table-condensed hide">
						<tbody>
						<tr>
							<th colspan="2" class="taC">退票邮寄信息</th>
						</tr>
						<tr>
							<th class="taC" width="100"><span class="colRed">*</span>快递公司</th><td>
							<select name="untreadCompany">-->
							<!--loopexpressList-->
							<!-- 	<option value="{{expressList' value.company}}:{{expressList' value.com}}">{{expressList' value.company}}</option> -->
											<!--endloop-->
					<!-- 
							</select>
							</td>
						</tr>
						<tr>
							<th class="taC" width="100"><span class="colRed">*</span>快递单号</th>
							<td><input type="text" name="untreadNumber" placeholder="请正确填写单号，方便跟踪查询。"></td>
						</tr>
						<tr>
							<th class="taC" width="100"><span class="colRed">*</span>邮寄物品</th>
							<td><textarea class="span4" name="untreadItems" placeholder="请详细填写邮寄回总部的快递包含什么物件。"></textarea>
							</td>
						</tr>
						</tbody>
					</table>
					 -->
					
				</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>
			</div></div>
			</form>
	</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>
