<!-- 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">
					<ul>
						<!-- include 'invoiceMenu' -->
					</ul>
				</div>
			</div>
			<div class="adminContent autoHeight">
				<div class="borad-news">
					<div class="saeaList">
						<legend>
							开票审批
						</legend>
						<table class="table table-bordered table-condensed">
							<tbody>
							<tr>
								<th class="taC" width="150">开票流水号</th><td>{{invoiceDetail.invoiceSerial}}</td>
								<th class="taC" width="150">提交时间</th><td>{{invoiceDetail.date}}</td>
							</tr>
							<tr>
								<th class="taC" width="150">所在办事处</th><td>{{invoiceDetail.categoryName}}</td>
								<th class="taC" width="150">开票内容</th><td>{{invoiceDetail.invoiceElement}}</td>
							</tr>
							<tr>
								<th class="taC" width="150">发票备注</th><td colspan="3">{{invoiceDetail.remark}}</td>
							</tr>
							<tr>
								<th class="taC" width="150">数量</th><td><b>{{invoiceDetail.invoiceQuantity}}</b></td>
								<th class="taC">单价</th><td><b>￥{{invoiceDetail.invoiceUnitPrice}}</b></td>
							</tr>
							<tr>
								<th class="taC">开票金额</th><td colspan="3"><b class="colOrange" style="font-size:18px">￥{{invoiceDetail.invoicePrice}}</b></td>
							</tr>
							
							<!-- if {{invoiceDetail.settlementType}}==1 -->
							<tr>
					<th class="taC" width="150">结算方式</th>
						<td colspan="3">培训班（<a href="/invoiceTrainingDetail/{{invoiceDetail.invoiceTraining.trainingKey}}.html" target="_blank">{{invoiceDetail.invoiceTraining.trainName}}</a>）</td>
					</tr>
					<!-- else -->
					<tr>
						<th class="taC" width="150">结算方式</th><td colspan="3">软件销售</td>
					</tr>
					<!-- endif -->
							
							</tbody>
						</table>
						<!-- if {{invoiceDetail.invoiceType}}==0 -->
						<table class="table table-bordered table-condensed">
							<tbody>
							<tr>
								<th colspan="4" class="taC">增值税普通发票</th>
							</tr>
							<tr>
								<th class="taC" width="150">发票抬头</th>
								<td >{{invoiceDetail.invoiceTitle}}</td>
								<th class="taC" width="150">纳税人识别码</th><td>{{invoiceDetail.TIN}}</td>
	
							</tr>
							
							<tr>
								<th class="taC">注册地址</th><td>{{invoiceDetail.address}}</td>
								<th class="taC">注册电话</th><td>{{invoiceDetail.phone}}</td>
							</tr>
							<tr>
								<th class="taC">开户银行</th><td>{{invoiceDetail.bank}}</td>
								<th class="taC">银行账号</th><td>{{invoiceDetail.bankAccount}}</td>
							</tr>
							
							</tbody>
						</table>
						<!-- else -->
						<table class="table table-bordered table-condensed">
							<tbody>
							<tr>
								<th colspan="4" class="taC">增值税专用发票</th>
							</tr>
							<tr>
								<th class="taC" width="150">单位名称</th><td>{{invoiceDetail.invoiceCompany}}</td>
								<th class="taC" width="150">纳税人识别码</th><td>{{invoiceDetail.TIN}}</td>

							</tr>
							
							<tr>
								<th class="taC">注册地址</th><td>{{invoiceDetail.address}}</td>
								<th class="taC">注册电话</th><td>{{invoiceDetail.phone}}</td>
							</tr>
							<tr>
								<th class="taC">开户银行</th><td>{{invoiceDetail.bank}}</td>
								<th class="taC">银行账号</th><td>{{invoiceDetail.bankAccount}}</td>
							</tr>
							</tbody>
						</table>
						<!-- endif -->
						<!-- if {{invoiceDetail.doPost}}==1 -->
						<table class="table table-bordered table-condensed">
							<tbody>
							<tr>
								<th colspan="4" class="taC">邮寄信息</th>
							</tr>
							<tr>
								<th class="taC" width="150">收件人</th><td>{{invoiceDetail.recipients}}</td>
								<th class="taC" width="150">收件人手机/电话</th><td>{{invoiceDetail.recipientsPhone}}</td>
							</tr>
							<tr>
								<th class="taC" width="150">收件地址</th><td colspan="3">{{invoiceDetail.recipientsAddress}}</td>
							</tr>
							<tr>
								<th class="taC" width="150">邮寄物品</th><td colspan="3">{{invoiceDetail.mailItems}}</td>
							</tr>
							</tbody>
						</table>
						<!-- endif -->
						<form action="/invoiceApprovalDo" method="post"  name="invoiceApproval">
						<input type="hidden" name="invoiceKey" value="{{INVOICEKEY}}">
						<input type="hidden" name="status" value="">
						<table class="table table-bordered table-condensed">
							<tbody>
								<tr><th width="60%" class="taC">审批流程</th><th class="taC">发票审批</th></tr>
								<tr><td>
									<!-- loop invoiceOperationLogList -->
									<blockquote>
										<p><span class="colGray">{{invoiceOperationLogList' value.date}}</span>&nbsp;
										{{invoiceOperationLogList' value.category}}-{{invoiceOperationLogList' value.username}}&nbsp;
										<!-- if {{invoiceOperationLogList' value.status}}==2 -->
										<span class="colGreen">同意</span>
										<!-- elseif {{invoiceOperationLogList' value.status}}==3 -->
										<span class="colOrange">退回</span>
										<!-- elseif {{invoiceOperationLogList' value.status}}==4 -->
										<span class="colRed">终止</span>
										<!-- elseif {{invoiceOperationLogList' value.status}}==5 -->
										<span class="colGreen">打印</span>
										<!-- endif -->
										{{invoiceOperationLogList' value.operation}}</p>
									</blockquote>
									<!-- endloop -->
									
								</td><td>
									<textarea name="opinion" style="width:98%" placeholder="在这写下您的审批意见，选填。"></textarea>
									<div class="invoButton clearfix">
										<a href="javascript:void(0)" node-approval="approval" diss-data="3" class="buttonBack" data-placement="top" data-toggle="ctooltip" data-original-title="上报人修改后重新审批">退回</a>
										<a href="javascript:void(0)" node-approval="approval" diss-data="4" class="buttonUndone" data-placement="top" data-toggle="ctooltip" data-original-title="终止发票申请">终止</a>
										<a href="javascript:void(0)" node-approval="approval" diss-data="2" class="buttonDone buttonBlock"  data-placement="top" data-toggle="ctooltip" data-original-title="完成后自动跳转下一张发票">同意</a>
									</div></td></tr>
							</tbody>
						</table>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	
<script type="text/javascript">autoFlashHeight();</script>	
</body>