<!-- 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>
<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">
				<div class="borad-menu"></div>
				<div class="borad-news">
					<div class="saeaList">
						<div class="clearfix">
							
							<legend>
								<div class="fR"></div>
								待邮寄
							</legend>
							<!-- if !empty({{invoicePost}}) -->
							<table class="table table-bordered table-condensed">
								<tbody>
									<tr>
										<th class="taC">开票流水号</th>
										<th class="taC">开票单位（抬头）</th>
										<th class="taC">开票金额</th>
										<th class="taC">发票号</th>
										<th class="taC">提交开票</th>
										<th class="taC">打印发票</th>
										<th class="taC" width="120">操作</th>
									</tr>
									<!-- loop invoicePost -->
									<tr>
										<td><a href="#invdetail" node-invoice='INFO' data-isKey="{{invoiceList' value.iidKeyK}}" data-toggle="modal">{{invoiceList' value.invoiceSerial}}</a></td>
										<td>
											<!-- if !empty({{invoiceList' value.invoiceType}}) -->
											{{invoiceList' value.invoiceCompany}} <!-- else -->
											{{invoiceList' value.invoiceTitle}} <!-- endif -->
										</td>
										<td>
											<!-- if !empty({{invoiceList' value.invoiceType}}) --> 
											<b>￥{{invoiceList' value.invoicePrice}}</b><sup>专</sup> 
											<!-- else --> <b>￥{{invoiceList' value.invoicePrice}}</b> 
											<!-- endif -->
										</td>
										<td>{{list' value.invoiceNo}}</td>
										<td>{{invoiceList' value.categoryName}}{{invoiceList' value.userName}} {{invoiceList' value.date}}</td>
										<td>{{invoiceList' value.userName}}&nbsp;{{invoiceList' value.printTime}}</td>
										<td><a class="button btn-block" node-post="express"
											post-data="{{invoicePost' value.iidKey}}" href="#addshipping"
											data-toggle="modal">邮寄发票</a></td>
									</tr>
									<!-- endloop -->

								</tbody>
							</table>
							<!-- else -->
							<blockquote>
								<p class="colGray">暂时没有需要邮寄的发票</p>
							</blockquote>
							<!-- endif -->
						</div>
						<div class="clearfix">
							<legend>
								<div class="fR">
									<a href="/invoicePostAchieve">查看更多</a>
								</div>
								最近邮寄发票
							</legend>
							<!-- if !empty({{invoicePosted}}) -->
							<table class="table table-bordered table-condensed">
								<tbody>
									<tr>
										<th class="taC">开票流水号</th>
										<th class="taC">开票单位（抬头）</th>
										<th class="taC">开票金额</th>
										<th class="taC">发票号</th>
										<th class="taC">提交开票</th>
										<th class="taC">快递信息</th>
										<th class="taC">邮寄发票</th>
									</tr>
									<!-- loop invoicePosted -->
									<tr>
										<td><a href="#invdetail" node-invoice='INFO' data-isKey="{{invoiceList' value.iidKeyK}}" data-toggle="modal">{{invoiceList' value.invoiceSerial}}</a></td>
										<td>
											<!-- if !empty({{invoiceList' value.invoiceType}}) -->
											{{invoiceList' value.invoiceCompany}} <!-- else -->
											{{invoiceList' value.invoiceTitle}} <!-- endif -->
										</td>
										<td>
											<!-- if !empty({{invoiceList' value.invoiceType}}) --> 
											<b>￥{{invoiceList' value.invoicePrice}}</b><sup>专</sup> 
											<!-- else --> <b>￥{{invoiceList' value.invoicePrice}}</b> 
											<!-- endif -->
										</td>
										<td>{{list' value.invoiceNo}}</td>
										<td>{{invoiceList' value.categoryName}}{{invoiceList' value.userName}} {{invoiceList' 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>
									</tr>
									<!-- endloop -->
									
								</tbody>
							</table>
							<!-- else -->
							<blockquote>
								<p class="colGray">暂时没有已邮寄的发票</p>
							</blockquote>
							<!-- endif -->
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<!--弹出邮寄-->
	<div class="modal hide fade" id="addshipping">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<h3>邮寄物品</h3>
				</div>
				<form action="/invoiceExpressAddDo" name="invoiceExpress"
					method="post">
					<input type="hidden" name="iidKey" value="">
					<div class="modal-body saeaList">
						<div style='text-align: center' loading-msg='true'></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='true'></td>
									<th class="taC" width="100">收件人手机/电话</th>
									<td recipientsPhone-data='true'></td>
								</tr>
								<tr>
									<th class="taC" width="100">收件地址</th>
									<td colspan="3" recipientsAddress-data='true'></td>
								</tr>
								<tr>
									<th class="taC" width="100">邮寄物品</th>
									<td colspan="3" mailItems-data='true'></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" name="nu"
										placeholder="请正确填写单号，方便跟踪查询。" value="{{invoicePostExpress}}"></td>
								</tr>
								<tr>
									<th class="taC" width="100"><span class="colRed">*</span>邮寄物品</th>
									<td><textarea 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 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="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>