 <!-- include 'header' -->
  <script src="<?= WEB_SITE_GLOBAL ?>js/receipt.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 'receipt_menu' -->
					</ul>
				</div>
			</div>
			<div class="adminContent autoHeight" style="height: 821px;">
				
				<div class="borad-news">
				
				<legend><div class="fR"></div>
				<!-- if {{status}}==2  -->
				费用审批
				<!-- endif -->
				</legend>

				<div class="demandCate">
				<form action="/approval" id="up" method="post">
				<input type="hidden" name="status" value="{{status}}"></input>
				
				
				<ul class="cateList">
						<li><a href="/approvalExpenses/2">返回</a></li>
						<li><a id="examine" data="{{rid}}" href="javascript:void(0)">查看下一份费用审批</a></li>
	  			</ul>
				
	  			</form>
	  		</div>
	  		
	  		
	  		<div class="saeaList">
	  		
	  			<!-- loop receiptList -->
	  			<div id="{{receiptList' value.Locate}}"  class="entry loan-list">
	  			
	  			<!-- if {{status}}==1 --> 
	  				<div class="seal done"></div> 
	  			<!-- elseif {{status}}==5 -->
	  				<div class="seal back"></div>
	  			<!-- elseif {{status}}==3 -->
	  				<div class="seal undone"></div>
	  			<!-- endif -->
	  			
	  			<div class="seTable reportTable">
	  			<!-- if {{receiptList' value.Rtype}}==1 -->
	  			

					
						<table class="table table-bordered table-condensed table-hover">
							<tbody>
							
							<tr class="warning"><td class="taR"><b>（{{receiptDetail' value.receiptOrder}}）本次报销费用合计</b></td>
	  						<td class="colGreed taR"><b style="font-size:24px">￥{{receiptDetail' value.sum}}</b><br>{{receiptDetail' value.BIGsum}}</td></tr>
							
							
							<tr><th colspan="2" class="taC">借款费用</th></tr>
							
							<!-- loop receiptList' value.loanItem.借款费用 -->
							<tr><th>{{receiptList' value' value.name}}<div class="repMark fR"><i class="rmDone">●</i><i class="rmUdone">●</i><i class="rmClear">●</i></div></th>
							<td width="140" class="taR">￥{{receiptList' value' value.price}}</td></tr>
							<!-- endloop -->
							
							<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
							<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
							
							
							
							<tr><th colspan="2" class="taC">收款信息</th></tr>
							<tr><th>收款人户名</th>
							<td>{{receiptDetail' value.remittanceName}}</td>
							</tr>
							<tr>
							<th>收款银行</th>
							<td>
							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
							广发银行
							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
							其他
							<!-- endif -->
							</td>
							</tr>
							<tr><th>收款开户银行名称</th><td>
							{{receiptDetail' value.bankName}}
							</td></tr>
							<tr><th>收款账号</th><td>
							{{receiptDetail' value.bankNumber}}
							</td></tr>
							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
							<tr><th>联行号</th><td>
							{{receiptDetail' value.coupletNumber}}
							</td></tr>
							<!-- endif -->
							
							
							<tr><th class="taC" colspan="2">费用说明</th>
							</tr><tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
							
							
							</tbody>
						</table>
					


	  			<!-- else -->
	  				
	  					
	  					<table class="table table-bordered table-condensed table-hover">
	  					<tbody>
	  						
	  						<tr class="warning"><td class="taR"><b>（{{receiptDetail' value.receiptOrder}}）本次报销费用合计</b></td>
	  						<td class="colGreed taR"><b style="font-size:24px">￥{{receiptDetail' value.sum}}</b><br/>
	  						{{receiptDetail' value.BIGsum}}</td></tr>
	  						
	  						<tr><th colspan="2" class="taC">日常相关费用</th></tr>
	  						<!-- loop receiptList' value.accountItem.日常相关费用 -->
	  							<tr><th>{{receiptList' value' value.name}}<div class="repMark fR"><i class="rmDone">●</i><i class="rmUdone">●</i><i class="rmClear">●</i></div></th><td  width="140" class="taR">￥{{receiptList' value' value.price}}</td></tr>
	  						<!-- endloop -->
	  						<tr><th class="taR">合计</th><td class="colGreen taR">￥{{receiptList' value.accountItem.cSum.agencySum}}</td></tr>
	  						
	  						<tr><th colspan="2" class="taC">差旅相关费用</th></tr>
	  						<!-- loop receiptList' value.accountItem.差旅相关费用 -->
	  						<tr><th>{{receiptDetail' value' value.name}}<div class="repMark fR"><i class="rmDone">●</i><i class="rmUdone">●</i><i class="rmClear">●</i></div></th><td  width="140" class="taR">￥{{receiptDetail' value' value.price}}</td></tr>
	  						<!-- endloop -->
	  						<tr><th class="taR">合计</th><td class="colGreen taR">￥{{receiptDetail' value.accountItem.cSum.travelSum}}</td></tr>
	  						
	  						<tr><th colspan="2" class="taC">培训班费用</th></tr>
	  						<!-- loop receiptList' value.accountItem.培训班费用 -->
	  						<tr><th>{{receiptDetail' value' value.name}}<div class="repMark fR"><i class="rmDone">●</i><i class="rmUdone">●</i><i class="rmClear">●</i></div></th><td  width="140" class="taR">￥{{receiptDetail' value' value.price}}</td></tr>
	  						<!-- endloop -->
	  						<tr><th class="taR">合计</th><td class="colGreen taR">￥{{receiptDetail' value.accountItem.cSum.trainSum}}</td></tr>
	  						
	  						<tr><th colspan="2" class="taC">其他</th></tr>
	  						<!-- loop receiptList' value.accountItem.其他 -->
	  						<tr><th>{{receiptDetail' value' value.name}}<div class="repMark fR"><i class="rmDone">●</i><i class="rmUdone">●</i><i class="rmClear">●</i></div></th><td  width="140" class="taR">￥{{receiptDetail' value' value.price}}</td></tr>
	  						<!-- endloop -->
	  						<tr><th class="taR">合计</th><td class="colGreen taR">￥{{receiptDetail' value.accountItem.cSum.otherSum}}</td></tr>
	  						
	  						<!-- if {{status}}==2 -->
	  						<tr><th colspan="2" class="taC">报销金额调整</th></tr>
	  						<tr class="error"><td colspan="2" class="taR">
	  						<form class="taR" style="margin:0" action="/revisePrice" method="post"  name="revisePrice_{{receiptList' value.rid}}">
	  						<input type="text" name="description" placeholder="输入金额调整描述" class="span4"> ￥<span data-placement="top" data-toggle="ctooltip" data-original-title="扣款请在金额前加“-”">
	  						<input type="number" name="price" placeholder="输入调整金额" pattern="[0-9]" step="0.01" class="span2"></span>
	  						<input type="hidden" name="rid" value="{{receiptList' value.rid}}">
	  						<input type="submit" value="添加" class="btn">
	  						</form>
	  						</td>
	  						</tr>
	  						<!-- elseif -->
	  						<tr><th colspan="2" class="taC">报销金额调整</th></tr>
	  						<!-- loop receiptList' value.reviseDetail -->
	  						<tr><th><span class="interval">|</span>{{receiptList' value' value.name}}：{{receiptList' value' value.description}}</th><td class="taR">￥{{receiptList' value' value.price}}</td></tr>
	  						<!-- endloop -->
	  						<tr><th class="taR">合计</th><td class="colOrange taR">￥{{receiptList' value.revisePrice}}</td></tr>
	  						<!-- endif -->
	  						<!-- loop receiptList' value.reviseDetail -->
	  						<tr><th><a href="/revocationAdjustment/{{receiptList' value' value.sid}}/{{receiptList' value' value.price}}/{{receiptList' value.rid}}">撤销</a><span class="interval">|</span>{{receiptList' value' value.name}}：{{receiptList' value' value.description}}</th><td class="taR">￥{{receiptList' value' value.price}}</td></tr>
	  						<!-- endloop -->
	  						<tr><th class="taR">合计</th><td class="colOrange taR">￥{{receiptList' value.revisePrice}}</td></tr>
	  						
	  						
	  						<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
	  						<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
	  						
	  						<tr><th colspan="2" class="taC">收款信息</th></tr>
							<tr><th>收款人户名</th>
							<td>{{receiptDetail' value.remittanceName}}</td>
							</tr>
							<tr>
							<th>收款银行</th>
							<td>
							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
							广发银行
							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
							其他
							<!-- endif -->
							</td>
							</tr>
							<tr><th>收款开户银行名称</th><td>
							{{receiptDetail' value.bankName}}
							</td></tr>
							<tr><th>收款账号</th><td>
							{{receiptDetail' value.bankNumber}}
							</td></tr>
							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
							<tr><th>联行号</th><td>
							{{receiptDetail' value.coupletNumber}}
							</td></tr>
							<!-- endif -->
	  						
	  						<tr><th class="taC" colspan="2">报销说明</th></tr>
	  						<tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
	  						
	  						<tr><th class="taC" colspan="2">附件</th>
	  						</tr>
	  						<tr><td colspan="2">
	  						
	  						{{enclosurHtml}}
	  						
	  						</td></tr>
	  						
	  						
	  						

						</tbody>
	  					</table>
	  					
	  					
	  					
	  				
	  				<!-- endif -->
	  				<br/>
	  				<!-- 
	  				<table class="table table-bordered table-condensed table-hover">
						<tbody>
							<tr><th colspan="2" class="taC">确认汇款金额</th></tr>
							<tr><th>汇款金额（用于生成汇款单）</th>
							<td class="taR" width="200">
							￥<input placeholder="输入汇款金额" pattern="[0-9]" id="amount" step="1" min="0" value="{{receiptList' value.amount}}" class="span2" type="number"></td></tr>
						</tbody>
					</table>
					 -->
			<table class="table table-bordered table-condensed table-hover">
				<tbody>
				<tr><th colspan="2" class="taC">费用结算</th></tr>
				<tr><th>结算结果<br><span class="colGray">("支出"由公司汇出，"收入"提交人需汇款至公司。)</span></th>
				<td class="taR" width="200"><!-- <span class="colGreen">收入</span> --><span class="colRed">支出</span></td>
				</tr>
				<tr><th>汇款金额</th><td class="taR" width="200">￥{{receiptDetail' value.sum}}</td></tr>
				</tbody>
			</table>
					
					
	  				</div>
	  				
	  				<div class="seCensor loan-censor ">
	  					<form action="/expensesDefray" method="post" id="verifyOpinion_{{receiptList' value.rid}}" name="verifyOpinion_{{receiptList' value.rid}}">
	  						<input type="hidden" id="status_{{receiptList' value.rid}}" name="status" value=""></input>
	  						<input type="hidden" name="rid" value="{{receiptList' value.rid}}"></input>
	  						<input type="hidden" name="Locate" value="{{receiptList' value.Locate}}"></input>
	  						<input type="hidden" name="amount" value="{{receiptList' value.amount}}">
		  					<div class="title">
		  					{{receiptDetail' value.receiptOrder}}
		  					</div>
		  					
		  					<div class="reportButton clearfix">
		  					
		  					
		  					
		  						<!-- if {{receiptDetail' value.button}}==4 -->
		  						
	  							<a href="javascript:void(0)" onClick="updateApprovalReceipt(1,{{receiptList' value.rid}})" class="buttonDone buttonBlock">同意支付</a>
		  						
		  						<!-- endif -->
		  					</div>
		  					<div class="censorList clearfix censorHeight">
		  					<ul>
		  					
		  						
		  					
		  					
		  						<!-- if {{empty(receiptDetail' value.rlList)}} -->
		  						<li class="post" >
		  							<div class="avtra"><img src="{{receiptList' value.staffDetail.avatar}}_2.jpg" width="32"></div>
		  							<div class="comment">
		  								<p><span class="fR">{{datetij}}</span>{{receiptList' value.staffDetail.username}}</p>
		  								<p>提交审批</p>
		  							</div>
		  						</li>
		  						<!-- endif -->
		  					
		  						<!-- loop receiptDetail' value.rlList -->
		  						<li <!-- if {{receiptDetail' value' value.status}}==1 --> class="done" <!-- elseif {{receiptDetail' value' value.status}}==4 --> class="back" <!-- elseif {{receiptDetail' value' value.status}}==2 --> class="post" <!-- endif --> >
		  							<div class="avtra"><img src="{{receiptDetail' value' value.img}}_2.jpg" width="32"></div>
		  							<div class="comment">
		  								<p <!-- if {{receiptDetail' value' value.status}}!=2 --> class="colGray" <!-- endif --> ><span class="fR">{{receiptDetail' value' value.date}}</span>{{receiptDetail' value' value.username}} <!-- if {{receiptDetail' value' value.rolename}}!='' --> （{{receiptDetail' value' value.rolename}}） <!-- endif --></p>
		  								<p>{{receiptDetail' value' value.opinion}}</p>
		  							</div>
		  						</li>
		  						<!-- endloop -->
		  						
		  						<!-- loop receiptDetail' value.verifyList -->
		  						
		  						
		  						<!-- if  {{receiptDetail' value' value.status}}!=1||{{empty(receiptDetail' value.rlList)}} -->
			  						<li <!-- if {{receiptDetail' value' value.status}}==1 --> class="done" <!-- elseif {{receiptDetail' value' value.status}}==3 --> class="undone"  <!-- endif -->>
			  							<div class="avtra"><img src="{{receiptDetail' value' value.2}}_2.jpg" width="32"></div>
			  							<!-- if {{receiptDetail' value' value.status}}==4 -->
			  							<div class="comment">
			  								{{receiptDetail' value' value.1}}<!-- if isset({{receiptDetail' value' value.rolename}}) --> （{{receiptDetail' value' value.rolename}}） <!-- endif -->
			  								<p><textarea name="opinion" id="opinion_{{receiptList' value.rid}}" placeholder="填写审批意见（可选）"></textarea></p>
			  							</div>
			  							<!-- else -->
			  							<div class="comment">
			  								<p class="colGray"><span class="fR">{{receiptDetail' value' value.date}}</span>{{receiptDetail' value' value.1}}<!-- if isset({{receiptDetail' value' value.rolename}}) --> （{{receiptDetail' value' value.rolename}}） <!-- endif --></p>
			  								<p>{{receiptDetail' value' value.opinion}}</p>
			  							</div>
			  							<!-- endif -->
			  						</li>
		  						<!-- endif -->
		  						
		  						<!-- endloop -->
		  						
		  					</ul>
		  					</div>
		  					<div class="reportButton clearfix">
		  					
		  					
		  					
		  						<!-- if {{receiptDetail' value.button}}==4 -->
		  						<a href="/expensesRetreats/{{receiptList' value.rid}}" class="buttonBack" data-placement="top" data-toggle="ctooltip" data-original-title="上报人修改后由你继续审批">撤回</a>
	  							<a href="javascript:void(0)" onClick="updateApprovalReceipt(3,{{receiptList' value.rid}})" class="buttonUndone" data-placement="top" data-toggle="ctooltip" data-original-title="终止报销单">终止</a>
	  						
		  						<!-- endif -->
		  					</div>
	  					</form>
	  				</div>
	  				
	  			</div>
	  		<!-- endloop -->
	  		
	  			
	  		</div>
	  		
	  		</div>
	  		
	  		
			</div>
		</div>
	</div>
<script type="text/javascript">autoFlashHeight();</script>	
</body>