 <!-- 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;">
				
				<legend><div class="fR"></div>
				<!-- if {{status}}==2  -->
				您有{{receiptApprovalCount}}份报销单需要审批
				<!-- 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 <!-- if {{status}}==2 --> class="now" <!-- endif --> href="/approval/2">需要我审批</a>
		  					<a <!-- if {{ap}}==4 --> class="now" <!-- endif --> href="/approval/4">我已审批</a>
		  					<a <!-- if {{status}}==1 --> class="now" <!-- endif --> href="/approval/1">同意支付</a>
		  					
		  					<a <!-- if {{status}}==5 --> class="now" <!-- endif --> href="/approval/5">撤回</a>
		  					
		  					<a <!-- if {{status}}==3 --> class="now" <!-- endif --> href="/approval/3">终止</a>
	  					</li>
	  					<li><a  href="/remittance">汇款模式</a></li>
	  					<li>
	  						<select name="year" id="Y" onChange="receiptYear();">
	  					<!-- include 'year' --></select>
	  						<select name="month" id="M" onChange="receiptMoth();">
	  					<option value="">所有月份</option>
	  					{{mothHtml}}
	  					</select>
	  					</li>
	  					<li>
	  						<select name="cid" onChange="receiptYear();">
	  						<option value="">办事处</option>
	  						<!-- loop categoryList -->
	  						<option <!-- if {{categoryList' value.cid}}=={{cid}} --> selected <!-- endif --> value="{{categoryList' value.cid}}">{{categoryList' value.title}}</option>
	  						<!-- endloop -->
	  						</select>
	  						<select name="sid" onChange="receiptYear();">
	  						<option value="">员工</option>
	  						<!-- loop staffList -->
	  							<option <!-- if {{categoryList' value.sid}}=={{sid}} --> selected <!-- endif --> value="{{categoryList' value.sid}}">{{categoryList' value.username}}</option>
	  						<!-- endloop -->
	  						</select>
	  					</li>
	  				</ul>
	  			</form>
	  		</div>
	  		
	  		
	  		<div class="saeaList">
	  		
	  			<!-- loop receiptList -->
	  			<div id="{{receiptList' value.Locate}}"  class="entry">
	  			
	  			<!-- 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 -->
	  			
	  			
	  			<!-- if {{receiptList' value.Rtype}}==1 -->
	  			222
	  			<!-- else -->
	  				<div class="seTable reportTable">
	  					
	  					<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}}<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>
	  						<!-- 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 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>
	  						
	  						
	  						<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></td></tr>

						</tbody>
	  					</table>
	  				</div>
	  				<!-- endif -->
	  				
	  				
	  				<div class="seCensor">
	  					<form action="/updateApprovalReceipt" 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>
	  						
		  					<div class="title">
		  					{{receiptDetail' value.receiptOrder}}
		  					</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 -->
		  						
		  						
		  						
			  						<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"></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>
		  						
		  						
		  						<!-- endloop -->
		  						
		  					</ul>
		  					</div>
		  					
		  					<div class="reportButton">
		  					
		  					
		  					
		  						<!-- if {{receiptDetail' value.button}}==4 -->
		  						
		  						<a href="javascript:void(0)" p-d="{{receiptList' value.rid}}" node-ReceiptBack="true" 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>
	  							<a href="javascript:void(0)" onClick="updateApprovalReceipt(1,{{receiptList' value.rid}})" class="buttonDone buttonBlock">同意支付</a>
	  						
	  						
		  						<a href="javascript:void(0)" style="display:none" onClick="updateApprovalReceipt(3,{{receiptList' value.rid}})" class="buttonUndone">退回</a>
		  						<a href="javascript:void(0)" style="display:none" onClick="updateApprovalReceipt(1,{{receiptList' value.rid}})" class="buttonDone">同意支付</a>
		  						<!-- endif -->
		  					</div>
	  					</form>
	  				</div>
	  				<!--<div class="seReport">
	  					<div class="avtra"><img src="{{receiptList' value.staffDetail.avatar}}_2.jpg">{{receiptList' value.staffDetail.username}}</div>
	  					<div class="taC">{{receiptList' value.staffDetail.category}}</div>
	  				</div>-->
	  			</div>
	  		<!-- endloop -->
	  		
	  		
	  		
	  		
	  			<div class="entry" style="display:none">
	  				<div class="seTable reportTable">
	  					<table class="table table-bordered table-condensed table-hover">
	  					<tbody>
	  						<tr><th colspan="2" class="taC">办事处相关费用</th></tr>
	  						<tr><th class="taR">合计</th><td class="colGreen taR">￥0.00</td></tr>
	  						<tr><th colspan="2" class="taC">差旅相关费用</th></tr>
	  						<tr><th>往来交通费<div class="repMark fR"><i class="rmDone">●</i><i class="rmUdone">●</i><i class="rmClear">●</i></div></th><td  width="140" class="taR">￥2020.00</td></tr>
	  						<tr><th>市内交通费<div class="repMark fR"><i class="rmDone">●</i><i class="rmUdone">●</i><i class="rmClear">●</i></div></th><td class="taR">￥50.00</td></tr>
	  						<tr><th>出差补助</th><td class="taR">￥90.00</td></tr>
	  						<tr><th class="taR">合计</th><td class="colGreen taR">￥2160.00</td></tr>
	  						<tr><th colspan="2" class="taC">培训班费用</th></tr>
	  						<tr><th class="taR">合计</th><td class="colGreen taR">￥0.00</td></tr>
	  						<tr><th colspan="2" class="taC">其他</th></tr>
	  						<tr><th class="taR">合计</th><td class="colGreen taR">￥0.00</td></tr>
	  						<tr><th colspan="2" class="taC">报销金额调整</th></tr>
	  						<tr class="error"><td colspan="2" class="taR"><form class="taR" style="margin:0"><input type="text" placeholder="输入金额调整描述" class="span4"> ￥<span data-placement="top" data-toggle="ctooltip" data-original-title="扣款请在金额前加“-”"><input type="number" placeholder="输入调整金额" pattern="[0-9]" step="1" class="span2"></span> <input type="button" value="添加" class="btn"></form></td></tr>
	  						<tr><th><a href="#">撤销</a><span class="interval">|</span>赵淑燕：市内交通费只给报销40元</th><td class="taR">-￥10.00</td></tr>
	  						<tr><th><a href="#">撤销</a><span class="interval">|</span>何银龄：机票我出了100</th><td class="taR">-￥110.00</td></tr>
	  						<tr><th><a href="#">撤销</a><span class="interval">|</span>谭玉堂：奖励10元</th><td class="taR">+￥10.00</td></tr>
	  						<tr><th class="taR">合计</th><td class="colOrange taR">-￥110.00</td></tr>
	  						<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
	  						<tr><th style="text-align:center" colspan="2">广东办</th></tr>
	  						<th class="taC" colspan="2">报销说明</th>
	  						<tr><td colspan="2">这是报销说明的内容</td></tr>
	  						<th class="taC" colspan="2">附件</th>
	  						<tr><td colspan="2"><a href="#" class="sFile" target="_blank">发票1.jpg</a><a href="#" class="sFile" target="_blank">QQ截图20150624170045.png</a><a href="#" class="sFile" target="_blank">Doc1.docx</a></td></tr>
	  						<tr class="warning"><td class="taR"><b>（#B1402130405003）本次报销费用合计</b></td><td class="taR"><b style="font-size:24px">￥2050.00</b><br>贰仟零伍拾元整</td></tr>
	  						</tbody>
	  					</table>
	  				</div>
	  				<div class="seCensor">
	  					<div class="title">
	  					#B201506249876
	  					</div>
	  					<div class="censorList clearfix censorHeight">
	  					<ul>
	  						<li class="post">
	  							<div class="avtra"><img src="images/avatar-6.png" width="32"></div>
	  							<div class="comment">
	  								<p><span class="fR">2014-02-13</span>刘飞</p>
	  								<p>提交审批</p>
	  							</div>
	  						</li>
	  						<li class="done">
	  							<div class="avtra"><img src="images/avatar-1.png" width="32"></div>
	  							<div class="comment">
	  								<p class="colGray"><span class="fR">2014-02-13</span>谭玉堂（经理）</p>
	  								<p>同意支付！阿斯顿萨上的事实的是当时的是对</p>
	  							</div>
	  						</li>
	  						<li class="done">
	  							<div class="avtra"><img src="images/avatar-2.png" width="32"></div>
	  							<div class="comment">
	  								<p class="colGray"><span class="fR">2014-02-13</span>何银龄（经理）</p>
	  								<p>同意</p>
	  							</div>
	  						</li>
	  						<li class="back">
	  							<div class="avtra"><img src="images/avatar-3.png" width="32"></div>
	  							<div class="comment">
	  								<p class="colGray"><span class="fR">2014-02-13</span>赵淑燕</p>
	  								<p>撤回</p>
	  							</div>
	  						</li>
	  						<li class="post">
	  							<div class="avtra"><img src="images/avatar-6.png" width="32"></div>
	  							<div class="comment">
	  								<p><span class="fR">2014-02-13</span>刘飞</p>
	  								<p>提交审批</p>
	  							</div>
	  						</li>
	  						<li class="done">
	  							<div class="avtra"><img src="images/avatar-1.png" width="32"></div>
	  							<div class="comment">
	  								<p class="colGray"><span class="fR">2014-02-13</span>谭玉堂（经理）</p>
	  								<p>同意支付！阿斯顿萨上的事实的是当时的是对</p>
	  							</div>
	  						</li>
	  						<li class="done">
	  							<div class="avtra"><img src="images/avatar-2.png" width="32"></div>
	  							<div class="comment">
	  								<p class="colGray"><span class="fR">2014-02-13</span>何银龄（经理）</p>
	  								<p>同意</p>
	  							</div>
	  						</li>
	  						<li>
	  							<div class="avtra"><img src="images/avatar-3.png" width="32"></div>
	  							<div class="comment">
	  								<p class="colGray">赵淑燕</p>
	  								<p><textarea placeholder="填写审批意见（可选）"></textarea></p>
	  							</div>
	  						</li>
	  						<li>
	  							<div class="avtra"><img src="images/avatar-4.png" width="32"></div>
	  							<div class="comment">
	  								<p class="colGray">杨福芳</p>
	  							</div>
	  						</li>
	  						<li>
	  							<div class="avtra"><img src="images/avatar-4.png" width="32"></div>
	  							<div class="comment">
	  								<p class="colGray">杨福芳</p>
	  							</div>
	  						</li>
	  						<li>
	  							<div class="avtra"><img src="images/avatar-4.png" width="32"></div>
	  							<div class="comment">
	  								<p class="colGray">杨福芳</p>
	  							</div>
	  						</li>
	  					</ul>
	  					</div>
	  					<div class="reportButton">
	  						<a href="" class="buttonBack" data-placement="top" data-toggle="ctooltip" data-original-title="上报人修改后由你继续审批">撤回</a>
	  						<a href="" class="buttonUndone" data-placement="top" data-toggle="ctooltip" data-original-title="终止报销单">终止</a>
	  						<a href="" class="buttonDone buttonBlock">同意支付</a>
	  					</div>
	  				</div>
	  			</div>
	  			
	  			
	  			
	  			
	  		</div>
			</div>
		</div>
	</div>
<script type="text/javascript">autoFlashHeight();</script>	
</body>