<!-- 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">
				<form action="/invoicePostAchieve/1/{{date}}" id="iaa" method="get" >
				
					<ul class="cateList">
						<li><a <!-- if {{date}}=='MONTHO' --> class="now" <!-- endif --> href="/invoicePostAchieve/1/MONTHO/{{MebSea}}">最近一个月</a>
	  					<a <!-- if {{date}}=='MONTHT' --> class="now" <!-- endif --> href="/invoicePostAchieve/1/MONTHT/{{MebSea}}">最近三个月</a>
	  					<a <!-- if {{date}}=='MONTHY' --> class="now" <!-- endif --> href="/invoicePostAchieve/1/MONTHY/{{MebSea}}" >今年</a>
	  					<a <!-- if {{date}}=='MONTHA' --> class="now" <!-- endif --> href="/invoicePostAchieve/1/MONTHA/{{MebSea}}" >更旧</a></li>
	  					
	  					
	  					
	  					<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>
							<select name="invoiceTrain" node-invoiceTrain >
								<option <!-- if {{invoiceTrain}}=='ALL' --> selected <!-- endif --> value="ALL">所有</option>
								<option <!-- if {{invoiceTrain}}=='ORDINARY' --> selected <!-- endif --> value="ORDINARY">个人发票</option>
								<option <!-- if {{invoiceTrain}}=='TRAIN' --> selected <!-- endif --> value="TRAIN">培训班发票</option>
							</select>
						</li>
						<!-- if {{invoiceTrain}}=='TRAIN' -->
						<li>
						<select name="invoiceTrainName" node-invoiceTrainName >
								<option <!-- if {{invoiceTrainName}}=='ALL' --> selected <!-- endif --> value="ALL"">所有</option>
								<!-- loop trainList -->
								<option <!-- if {{invoiceTrainName}}=={{trainList' value.itidKey}} --> selected <!-- endif --> value="{{trainList' value.itidKey}}">{{trainList' value.trainName}}</option>
								<!-- endloop -->
								
							</select>
							
						</li>
						<!-- endif -->
	  					
	  					
						<li>
							<div class="search">
								<div class="input-append">
									
								<input class="span3" type="text"  data-irmMebSea value="{{MebSeaEn}}" placeholder="发票抬头、开票金额">
								<button class="btn btn-small" node-iramMebSea type="button">搜索</button>
								
								</div>
							</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></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.expressCompany}}：
							<a href="#shipping" node-post="express-msg" post-data="{{invoicePost' value.iidKey}}" data-toggle="modal">{{invoiceList' value.expressNumber}}</a></td>
										<td>{{invoiceList' value.poster}} {{invoiceList' value.postTime}}</td>
							<td>
							
							<!-- if isTimeTR(3,{{invoiceList' value.postTime}}) -->
							<a href="#editshipping" node-post="upEm" post-data="{{invoicePost' value.iidKey}}" data-toggle="modal">修改邮寄</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="/invoicePostAchieve/{{page.previous}}{{get}}" title="上一页">&lt;</a></li>
								<!-- endif -->	
								
	  							<!-- if {{page.on_page}}>=3 -->
	  							<li><a href="/invoicePostAchieve/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="/invoicePostAchieve/4{{get}}" >4</a></li>
	  							<li><a href="/invoicePostAchieve/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="/invoicePostAchieve/{{page.next}}{{get}}" title="下一页">&gt;</a></li>
								<!-- endif -->
			  		</ul>
			  	</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>
	
	<!--弹出修改邮寄-->
	<div class="modal hide fade" id="editshipping">
		<div class="modal-dialog">
			<div class="modal-content">
			<form action="/invoiceExpressUpdateDo" name="invoiceExpress" method="post">
				<input type="hidden" name="iidKey" value="">
				<input type="hidden" name="action" value="/invoicePostAchieve/{{page.on_page}}{{get}}">
				<div class="modal-header">
					<h3>邮寄物品</h3>
				</div>
				<div class="modal-body saeaList">
					<div class="alert">
						已邮寄发票，3天内可修改邮寄信息。
					</div>
					<input type="hidden" name="iidKey" value="">
					<table class="table table-bordered table-condensed">
						<tbody>
							<tr>
								<th colspan="4" class="taC">申请邮寄信息</th>
							</tr>
							<tr>
								<th class="taC" width="100">收件人</th>
								<td recipients-data='express-msgU'></td>
								<th class="taC" width="100">收件人手机/电话</th>
								<td recipientsPhone-data='express-msgU'></td>
							</tr>
							<tr>
								<th class="taC" width="100">收件地址</th>
								<td recipientsAddress-data='express-msgU' colspan="3"></td>
							</tr>
							<tr>
								<th class="taC" width="100">邮寄物品</th>
								<td mailItems-data='express-msgU' colspan="3"></td>
							</tr>
						</tbody>
					</table>
					
					
					<table class="table table-bordered table-condensed">
							<tbody>
								<tr>
									<th colspan="2" class="taC">实际邮寄信息</th>
								</tr>
								<tr>
									<th class="taC" width="100"><span class="colRed">*</span>快递公司</th>
									<td><select name="express">
											<!-- loop expressList -->
											<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" expressNumber-data='express-msgU' name="nu"
										placeholder="请正确填写单号，方便跟踪查询。"></td>
								</tr>
								<tr>
									<th class="taC" width="100"><span class="colRed">*</span>邮寄物品</th>
									<td><textarea actualItems-data='express-msgU' name="actualItems" class="span4"
											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>
				</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">
				<div style='text-align: center' loading-msg='express-msg'></div>
					<table class="table table-bordered table-condensed">
						<tbody>
							<tr>
								<th colspan="4" class="taC">申请邮寄信息</th>
							</tr>
							<tr>
								<th class="taC" width="100">收件人</th>
								<td recipients-data='express-msg'></td>
								<th class="taC" width="100">收件人手机/电话</th>
								<td recipientsPhone-data='express-msg'></td>
							</tr>
							<tr>
								<th class="taC" width="100">收件地址</th>
								<td recipientsAddress-data='express-msg' colspan="3"></td>
							</tr>
							<tr>
								<th class="taC" width="100">邮寄物品</th>
								<td mailItems-data='express-msg' colspan="3"></td>
							</tr>
						</tbody>
					</table>
					<table class="table table-bordered table-condensed">
						<tbody>
							<tr>
								<th colspan="4" class="taC">实际邮寄信息</th>
							</tr>
							<tr>
								<th class="taC" width="100">快递公司</th>
								<td expressCompany-data='express-msg'></td>
								<th class="taC" width="100">快递单号</th>
								<td expressNumber-data='express-msg'></td>
							</tr>
							</tr>
							<tr>
							<tr>
								<th class="taC" width="100">邮寄物品</th>
								<td colspan="3" actualItems-data='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>
<script type="text/javascript">autoFlashHeight();</script>	
</body>