<!-- 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>以下费用需要您执行</legend>
				
				<div class="demandCate">
					<ul class="cateList">
	  					<li><a href="/hisImplement">返回</a></li>
	  					<li><a id="examineExe" data="{{receiptList.0.rid}}" href="javascript:void(0)">查看下一份费用执行</a></li>
	  			</ul>
	  			</div>
				
				
	  		<div class="saeaList ">
	  			<!-- loop receiptList -->
	  			
	  			<!-- if {{receiptList' value.Rtype}}==1 -->
	  				<div class="entry loan-list">
	  				<div class="seTable">
	  				
	  					<!-- if {{receiptList' value.loanRid}}!=0&&{{receiptList' value.status}}==1 -->
	  					
	  					<table class="table table-bordered table-condensed table-hover">
							<tbody>
							
							<tr><td colspan="2">费用审批完成：{{receiptList' value.pastDate}}</td></tr>
							
							<tr><th colspan="2" class="taC">借款费用</th></tr>
							
							<!-- loop receiptList' value.loanItem.借款费用 -->
	  							<tr><th>{{receiptList' value' value.name}}</th><td  width="140" class="taR">￥{{receiptList' value' value.price}}</td></tr>
	  						<!-- endloop -->
							
	  						<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>
							
							<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
							<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
							<tr><th class="taC" colspan="2">费用说明</th>
							</tr><tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
							
							<tr class="warning"><td class="taR"><b>（{{receiptDetail' value.receiptOrder}}）本次费用合计</b></td>
							<td class="taR"><b style="font-size:24px">￥{{receiptDetail' value.loanSum}}</b><br>{{receiptDetail' value.loanSumCN}}</td></tr>
							</tbody>
						</table>
						
						<br/>
						<!-- if empty({{wbDetailLoan}}) -->
						<div class="alert" style="margin:0">该费用没有生成流水。</div>
						<br/>
						<!-- else -->
						<div class="alert alert-erro" style="margin:0">该费用已生成流水。</div>
						<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">
										<!-- if {{wbDetailLoan.expensesType}}==1 -->
										收入
										<!-- elseif {{wbDetailLoan.expensesType}}==2 -->
										支出
										<!-- endif -->
										</td></tr>
										<tr><th>汇款金额</th><td class="taR" width="220">￥{{wbDetailLoan.accountPriceShow}}
										</td></tr>
										<tr><th>提交人</th><td class="taR" width="220">
										{{wbDetailLoan.category}}-{{wbDetailLoan.name}}</td></tr>
										<tr><th>备注</th><td class="taR" width="220">{{wbDetailLoan.remarks}}
										</td></tr>
										</tbody>
						</table>
						<!-- endif -->
						
						
						
						<br/>
						<table class="table table-bordered table-condensed table-hover">
	  					<tbody>
	  					
	  						<tr><th colspan="2" class="taC">日常相关费用</th></tr>
	  						<!-- loop receiptList' value.accountItem.日常相关费用 -->
	  							<tr><th>{{receiptList' value' value.name}}</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 receiptDetail' value.accountItem.差旅相关费用 -->
	  						<tr><th>{{receiptDetail' value' value.name}}</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 receiptDetail' value.accountItem.培训班费用 -->
	  						<tr><th>{{receiptDetail' value' value.name}}</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 receiptDetail' value.accountItem.其他 -->
	  						<tr><th>{{receiptDetail' value' value.name}}</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>
	  						<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>
	  						
	  						<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 class="warning">
	  						<td class="taR"><b>本次借款</b></td>
	  						<td class="colGreed taR"><b style="font-size:24px">￥{{receiptDetail' value.loanSum}}</b><br>{{receiptDetail' value.loanSumCN}}</td>
	  						</tr>
	  						<tr class="warning">
	  						<td class="taR"><b>本次报销金额</b></td>
	  						<td class="colGreed taR"><b style="font-size:24px">￥{{receiptDetail' value.sum}}</b><br>{{receiptDetail' value.sumCN}}</td>
	  						</tr>
	  						<tr <!-- if {{receiptDetail' value.relust}}>=0 --> class="success" <!-- else --> class="error" <!-- endif --> ><td class="taR"><b>差额</b></td>
	  						<td class="taR"><b style="font-size:24px">￥{{receiptDetail' value.relust}}</b><br>{{receiptDetail' value.relustCN}}</td></tr>
	  						</tbody>
	  					</table>
	  					
	  					
	  					<!-- else -->
	  					
	  					<table class="table table-bordered table-condensed table-hover">
							<tbody>
							
							<tr><td colspan="2">费用审批完成：{{receiptList' value.pastDate}}</td></tr>
							
							<tr><th colspan="2" class="taC">借款费用</th></tr>
							
							<!-- loop receiptList' value.loanItem.借款费用 -->
	  							<tr><th>{{receiptList' value' value.name}}</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>
							
							<tr class="warning"><td class="taR"><b>（{{receiptDetail' value.receiptOrder}}）本次费用合计</b></td>
							<td class="taR"><b style="font-size:24px">￥{{receiptDetail' value.sum}}</b><br>{{receiptDetail' value.sumCN}}</td></tr>
							</tbody>
						</table>
	  					
	  					<!-- endif -->
	  				
	  				<br/>
	  					
	  				
	  				<!-- if empty({{wbDetail}}) -->
	  				<form action="/receiptTrainImplementWateDo"  method="post" class="nice-validator n-yellow" novalidate="novalidate">
						<input type="hidden" name="ridKey" value="{{receiptDetail' value.ridKey}}">
						<input type="hidden" name="actionType" value="NOTRAIN">
						<input type="hidden" name="expensesType" value="EXPENDITURE">
						
						<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">
								<!-- if {{receiptDetail' value.amount}}>=0 -->
								<span class="colRed">支出</span>
								<!-- else -->
								<span class="colGreen">收入</span>
								<!-- endif -->
								</td>
								</tr>
								
								<tr><th>汇款金额</th><td class="taR" width="220">￥{{receiptDetail' value.amount}}
									
								</td></tr>
								
								<!-- <tr><th>流水类型("支出"由公司汇出，"收入"提交人汇款至公司。)</th>
								<td class="taR" width="200">
								
								<select name="expensesType" >
									<option value="INCOME">收入</option>
									<option value="EXPENDITURE">支出</option>
								</select>
								
								</td></tr>  -->
										
								<tr><th>银行</th>
								<td class="taR" width="200">
								<select name="bank" id="bank">
									<option value="CGBDeposit">纵横广发</option>
									<option value="ICBCDeposit">纵横工行</option>
									<option value="HUADeposit">华润银行</option>
									<option value="PersonalDeposit">个人广发</option>
									</select>
								</td></tr>
										
								</tbody>
								</table>
								<input class="fR button" type="submit" value="确定生成流水">
						</form>
	  				<!-- else -->
						<div class="alert alert-erro" style="margin:0">该费用已生成流水。</div>
						<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">
										<!-- if {{wbDetail.expensesType}}==1 -->
										收入
										<!-- elseif {{wbDetail.expensesType}}==2 -->
										支出
										<!-- endif -->
										</td></tr>
										<tr><th>汇款金额</th><td class="taR" width="220">￥{{wbDetail.accountPriceShow}}
										</td></tr>
										<tr><th>提交人</th><td class="taR" width="220">
										{{wbDetail.category}}-{{wbDetail.name}}</td></tr>
										<tr><th>备注</th><td class="taR" width="220">{{wbDetail.remarks}}
										</td></tr>
										</tbody>
						</table>
						<!-- endif -->
	  				
	  				
	  				
					</div>
	  			
	  			
	  			
	  			<div class="seCensor loan-censor">
	  					<form method="post" action="/implementDo" id="implementLoan" >
	  					<input type="hidden" name='rid' value="{{receiptList' value.rid}}" >
	  					<input type="hidden" name="amount" id="amountInpLoan" value="{{receiptList' value.amount}}">
	  					
	  					<input type="hidden" name="accountBank" id="accountBankLoan" value="">
	  					
	  					<div class="title">
	  					{{receiptDetail' value.receiptOrder}}
	  					</div>
	  					<div class="censorList clearfix censorHeight">
	  					<ul>
		  						<li class="post">
		  							<div class="avtra"><img src="{{receiptDetail' value.staffDetail.avatar}}_2.jpg" width="32"></div>
		  							<div class="comment">
		  								<p><span class="fR">{{receiptDetail' value.date}}</span>{{receiptDetail' value.staffDetail.username}}</p>
		  								<p>提交审批</p>
		  							</div>
		  							
		  						</li>
		  						
		  						<!-- loop receiptDetail' value.verifyList -->
		  						
		  						
		  						
			  						<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>
			  							
			  							<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>
			  							
			  						</li>
		  						
		  						
		  						<!-- endloop -->
		  						
		  						
		  						<!-- loop receiptDetail' value.executeList -->
		  						
		  						<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">
			  								<p class="colGray">{{receiptDetail' value' value.1}}（费用执行）</p>
			  								<p><textarea name="opinion" id="opinion_{{receiptList' value.rid}}" placeholder="填写审批意见（可选）"></textarea></p>
			  							</div>
			  							<!-- else -->
			  							
			  							<div class="comment">
			  								<p class="colGray">{{receiptDetail' value' value.1}}（费用执行）<span class="fR">{{receiptDetail' value' value.date}}</span></p>
			  								<p>{{receiptDetail' value' value.opinion}}</p>
			  							</div>
			  							<!-- endif -->
										
										
										
										
										
									</li>
								<!-- endloop -->
	  						
	  					</ul>
	  					<!-- if {{receiptDetail' value.button2}}==1 -->
	  					<div class="reportButton">
								
							<a href="javascript:void(0)" onClick="setExeReceipt('Loan',{{receiptList' value.rid}})" class="buttonDone buttonBlock">执行完成</a>
	  					</div>
	  					<!-- endif -->
	  					</form>
	  					</div>
	  				</div>
	  			</div>
	  			
	  			<!-- elseif {{receiptList' value.Rtype}}==2 -->
	  					
	  					
	  				<div class="entry public-list">
	  				
	  				
	  				<div class="seTable">
	  					<table class="table table-bordered table-condensed table-hover">
	  					<tbody>
	  						<tr><td colspan="2">费用审批完成：{{receiptList' value.pastDate}}</td></tr>
	  						
	  						<tr><th colspan="2" class="taC">办事处相关费用</th></tr>
	  						<!-- loop receiptList' value.accountItem.日常相关费用 -->
	  							<tr><th>{{receiptList' value' value.name}}</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.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>
	  						
	  						
	  						<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 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.sumCN}}</td></tr>
	  					
	  						</tbody>
	  					</table>
	  					
	  					<br/>
	  					<!-- if empty({{wbDetail}}) -->
	  				<form action="/receiptTrainImplementWateDo"  method="post" class="nice-validator n-yellow" novalidate="novalidate">
						<input type="hidden" name="ridKey" value="{{receiptDetail' value.ridKey}}">
						<input type="hidden" name="actionType" value="NOTRAIN">
						
						<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="colRed">支出</span></td>
								</tr>
								
								<tr><th>汇款金额（用于生成汇款单）</th><td class="taR" width="220">￥
									{{receiptDetail' value.amount}}
								</td></tr>
								
								<!--  
								<tr><th>流水类型("支出"由公司汇出，"收入"提交人汇款至公司。)</th>
								<td class="taR" width="200">
								
								<select name="expensesType" >
									<option value="INCOME">收入</option>
									<option value="EXPENDITURE">支出</option>
								</select>
								
								</td></tr>
										-->
										
								<tr><th>银行</th>
								<td class="taR" width="200">
								<select name="bank" id="bank">
									<option value="CGBDeposit">纵横广发</option>
									<option value="ICBCDeposit">纵横工行</option>
									<option value="HUADeposit">华润银行</option>
									<option value="PersonalDeposit">个人广发</option>
									</select>
								</td></tr>
										
								</tbody>
								</table>
								<input class="fR button" type="submit" value="确定生成流水">
						</form>
	  				<!-- else -->
						<div class="alert alert-erro" style="margin:0">该费用已生成流水。</div>
						<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">
										<!-- if {{wbDetail.expensesType}}==1 -->
										收入
										<!-- elseif {{wbDetail.expensesType}}==2 -->
										支出
										<!-- endif -->
										</td></tr>
										<tr><th>汇款金额</th><td class="taR" width="220">￥{{receiptDetail' value.amount}}
										</td></tr>
										<tr><th>提交人</th><td class="taR" width="220">
										{{wbDetail.category}}-{{wbDetail.name}}</td></tr>
										<tr><th>备注</th><td class="taR" width="220">{{wbDetail.remarks}}
										</td></tr>
										</tbody>
						</table>
						<!-- endif -->
	  					
	  				</div>
	  				
	  				
	  				
	  				<div class="seCensor public-censor">
	  					<form method="post" action="/implementDo" id="implementPublic" >
	  					<input type="hidden" name='rid' value="{{receiptList' value.rid}}" >
	  					<input type="hidden" name="amount" id="amountInpPublic" value="{{receiptList' value.amount}}">
	  					
	  					<input type="hidden" name="accountBank" id="accountBankPublic" value="">
	  					
	  					<div class="title">
	  					{{receiptDetail' value.receiptOrder}}
	  					</div>
	  					<div class="censorList clearfix censorHeight">
	  					<ul>
	  							
		  						<li class="post">
		  							<div class="avtra"><img src="{{receiptDetail' value.staffDetail.avatar}}_2.jpg" width="32"></div>
		  							<div class="comment">
		  								<p><span class="fR">{{receiptDetail' value.date}}</span>{{receiptDetail' value.staffDetail.username}}</p>
		  								<p>提交审批</p>
		  							</div>
		  							
		  						</li>
		  						
		  						<!-- loop receiptDetail' value.verifyList -->
		  						
		  						
		  						
			  						<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>
			  							
			  							<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>
			  							
			  						</li>
		  						
		  						
		  						<!-- endloop -->
		  						
		  						
		  						
		  						<!-- loop receiptDetail' value.executeList -->
		  						
		  						<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">
			  								<p class="colGray">{{receiptDetail' value' value.1}}（费用执行）</p>
			  								<p><textarea name="opinion" id="opinion_{{receiptList' value.rid}}" placeholder="填写审批意见（可选）"></textarea></p>
			  							</div>
			  							<!-- else -->
			  							
			  							<div class="comment">
			  								<p class="colGray">{{receiptDetail' value' value.1}}（费用执行）<span class="fR">{{receiptDetail' value' value.date}}</span></p>
			  								<p>{{receiptDetail' value' value.opinion}}</p>
			  							</div>
			  							<!-- endif -->
										
										
										
										
										
									</li>
								<!-- endloop -->
		  						
		  						
		  						
	  						
	  					</ul>
	  					<!-- if {{receiptDetail' value.button2}}==1 -->
	  					<div class="reportButton">
	  					<a href="javascript:void(0)" onClick="setExeReceipt('Public',{{receiptList' value.rid}})" class="buttonDone buttonBlock">执行完成</a>
	  							
								
							</div>
							<!-- endif -->
	  					
	  					</form>
	  					</div>
	  				</div>
	  				
	  				
	  				</div>
	  				
	  				</div>
	  					
	  					
	  					
	  					
	  			
	  			<!-- else -->
	  				
	  				<div class="entry receipt-list">
	  				
	  				
	  				<div class="seTable">
	  					<table class="table table-bordered table-condensed table-hover">
	  					<tbody>
	  						<tr><td colspan="2">费用审批完成：{{receiptList' value.pastDate}}</td></tr>
	  					
	  						<tr><th colspan="2" class="taC">日常相关费用</th></tr>
	  						<!-- loop receiptList' value.accountItem.日常相关费用 -->
	  							<tr><th>{{receiptList' value' value.name}}</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 receiptDetail' value.accountItem.差旅相关费用 -->
	  						<tr><th>{{receiptDetail' value' value.name}}</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>


							<!-- if isset({{receiptList' value.accountItem.内部培训费用}}) -->
							<tr><th colspan="2" class="taC">内部培训费用</th></tr>
							<!-- loop receiptList' value.accountItem.内部培训费用 -->
							<tr><th>{{receiptList' value' value.name}}</th><td  width="200" class="taR">
								￥{{receiptList' value' value.price}}
							</td>
							</tr>
							<!-- endloop -->
							<tr><th class="taR">合计</th><td class="colGreen taR" id="inttrainResult">￥{{receiptList' value.accountItem.cSum.inttrainSum}}</td></tr>
							<!-- endif -->


	  						<tr><th colspan="2" class="taC">其他</th></tr>
	  						<!-- loop receiptDetail' value.accountItem.其他 -->
	  						<tr><th>{{receiptDetail' value' value.name}}</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>
	  						
	  						<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>
	  						
	  						<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 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.sumCN}}</td></tr>
	  					
	  						</tbody>
	  					</table>
	  					
	  					<br/>
	  					<!-- if empty({{wbDetail}}) -->
	  				<form action="/receiptTrainImplementWateDo"  method="post" class="nice-validator n-yellow" novalidate="novalidate">
						<input type="hidden" name="ridKey" value="{{receiptDetail' value.ridKey}}">
						<input type="hidden" name="actionType" value="NOTRAIN">
						
						<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="colRed">支出</span></td>
								 </tr>
								
								<tr><th>汇款金额（用于生成汇款单）</th><td class="taR" width="220">￥
			{{receiptDetail' value.amount}}
								</td></tr>
								
								<!-- 
								<tr><th>流水类型("支出"由公司汇出，"收入"提交人汇款至公司。)</th>
								<td class="taR" width="200">
								<select name="expensesType" >
									<option value="INCOME">收入</option>
									<option value="EXPENDITURE">支出</option>
								</select>
								</td></tr>
									 -->	
								<tr><th>银行</th>
								<td class="taR" width="200">
								<select name="bank" id="bank">
									<option value="CGBDeposit">纵横广发</option>
									<option value="ICBCDeposit">纵横工行</option>
									<option value="HUADeposit">华润银行</option>
									<option value="PersonalDeposit">个人广发</option>
									</select>
								</td></tr>
										
								</tbody>
								</table>
								<input class="fR button" type="submit" value="确定生成流水">
						</form>
	  				<!-- else -->
						<div class="alert alert-erro" style="margin:0">该费用已生成流水。</div>
						<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">
										<!-- if {{wbDetail.expensesType}}==1 -->
										收入
										<!-- elseif {{wbDetail.expensesType}}==2 -->
										支出
										<!-- endif -->
										</td></tr>
										<tr><th>汇款金额</th><td class="taR" width="220">￥{{wbDetail.accountPriceShow}}
										</td></tr>
										<tr><th>提交人</th><td class="taR" width="220">
										{{wbDetail.category}}-{{wbDetail.name}}</td></tr>
										<tr><th>备注</th><td class="taR" width="220">{{wbDetail.remarks}}
										</td></tr>
										</tbody>
						</table>
						<!-- endif -->
	  					
	  				</div>
	  				
	  				
	  				
	  				<div class="seCensor receipt-censor">
	  					<form method="post" action="/implementDo" id="implementReceipt" >
	  					<input type="hidden" name='rid' value="{{receiptList' value.rid}}" >
	  					<input type="hidden" name="amount" id="amountInpReceipt" value="{{receiptList' value.amount}}">
	  					
	  					<input type="hidden" name="accountBank" id="accountBankReceipt" value="">
	  					
	  					<div class="title">
	  					{{receiptDetail' value.receiptOrder}}
	  					</div>
	  					<div class="censorList clearfix censorHeight">
	  					<ul>
	  							
		  						<li class="post">
		  							<div class="avtra"><img src="{{receiptDetail' value.staffDetail.avatar}}_2.jpg" width="32"></div>
		  							<div class="comment">
		  								<p><span class="fR">{{receiptDetail' value.date}}</span>{{receiptDetail' value.staffDetail.username}}</p>
		  								<p>提交审批</p>
		  							</div>
		  							
		  						</li>
		  						
		  						
		  						<!-- loop receiptDetail' value.verifyList -->
		  						
		  						
		  						
			  						<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>
			  							
			  							<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>
			  							
			  						</li>
		  						
		  						
		  						<!-- endloop -->
		  						
		  						<!-- loop receiptDetail' value.executeList -->
		  						
		  						<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">
			  								<p class="colGray">{{receiptDetail' value' value.1}}（费用执行）</p>
			  								<p><textarea name="opinion" id="opinion_{{receiptList' value.rid}}" placeholder="填写审批意见（可选）"></textarea></p>
			  							</div>
			  							<!-- else -->
			  							
			  							<div class="comment">
			  								<p class="colGray">{{receiptDetail' value' value.1}}（费用执行）<span class="fR">{{receiptDetail' value' value.date}}</span></p>
			  								<p>{{receiptDetail' value' value.opinion}}</p>
			  							</div>
			  							<!-- endif -->
										
										
										
										
										
									</li>
								<!-- endloop -->
		  						
		  						
		  						
	  						
	  					</ul>
	  					<!-- if {{receiptDetail' value.button2}}==1 -->
	  					<div class="reportButton">
	  							
							<a href="javascript:void(0)" onClick="setExeReceipt('Receipt',{{receiptList' value.rid}})" class="buttonDone buttonBlock">执行完成</a>
						</div>
							<!-- endif -->
	  					
	  					</form>
	  					</div>
	  				</div>
	  				
	  				
	  				</div>
	  				<!-- endif -->
	  			
	  			
	  			
	  			
	  			
	  			
	  			
	  			
	  			
	  			
	  			
	  			
	  			
	  			
	  			
	  			
	  			
	  			
	  			<!-- endloop -->
	  			
			</div>
		</div>
	</div>
	
<script type="text/javascript">autoFlashHeight();</script>	
</body>