<!-- 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>以下是您的报销单</legend>
				<div class="demandCate">
				<form action="/myReceipt" id="up" method="post">
					<input type="hidden" name="item" <!-- if {{item}}=="" --> value="all" <!-- else --> value="{{item}}" <!-- endif -->  />
					
					<ul class="cateList ">
						<li>
						<a href="/myReceipt" <!-- if {{item}}=="all"||{{item}}=="" --> class="now" <!-- endif --> >所有</a>
						<a href="#">借款申请</a>
						<a href="#">报销单</a>
						<a href="#">对公汇款</a>
						</li>
					
	  					<li >
	  					<a href="/myReceipt/all" <!-- if {{item}}=="all"||{{item}}=="" --> class="now" <!-- endif -->>所有</a>
	  					<a href="/myReceipt/approval" <!-- if {{item}}=="approval" --> class="now" <!-- endif --> >审批中</a>
	  					<a href="/myReceipt/past" <!-- if {{item}}=="past" --> class="now" <!-- endif --> >同意支付</a>
	  					<a href="/myReceipt/whdw" <!-- if {{item}}=="whdw" --> class="now" <!-- endif --> >撤回</a>
	  					<a href="/myReceipt/withdraw" <!-- if {{item}}=="withdraw" --> class="now" <!-- endif --> >终止</a>
	  					</li>
	  					<li>
	  					<select name="year" id="Y" onchange="receiptYear();">
	  					<!-- include 'year' -->
	  					</select> 
	  					<select name="moth" id="M" onchange="receiptMoth();">
	  					<option value="">所有月份</option>
	  					{{mothHtml}}
	  					</select>
	  					</li>
	  					<li>报销总计：￥{{stList.rePrice}}</li>
	  					<li>同意支付：<span class="colGreen">￥{{stList.agPrice}}</span></li>
	  					<li>审批中：￥{{stList.skPrice}}</li>
	  			</ul>
	  			</form>
	  		</div>
	  		<div class="saeaList ">
	  			<!-- loop receiptList -->
	  			<div class="entry loan-list">
	  				<!-- if {{receiptList' value.status}}==1 -->
	  				<div class="seal done"></div>
	  				<!-- elseif {{receiptList' value.status}}==3 -->
	  				<div class="seal undone"></div>	
	  				<!-- elseif {{receiptList' value.status}}==4 -->
	  				<div class="seal back"></div>	
	  				<!-- endif -->
	  				
	  				
	  				<!-- if {{receiptList' value.Rtype}}==1 -->
	  			
	  			<div class="seTable">
						<table class="table table-bordered table-condensed table-hover">
							<tbody>
							<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>借款费用</th><td width="140" class="taR">￥{{receiptList' value.accountItem.cSum.loanSum}}</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.sum}}</b><br>柒仟零壹拾壹元贰角贰分</td></tr>
							</tbody>
						</table>
					</div>
	  			
	  			
	  			
	  			<!-- else -->
	  				
	  				<div class="seTable">
	  					<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 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="colGreed taR"><b style="font-size:24px">￥{{receiptDetail' value.sum}}</b></td></tr>
	  					
	  						</tbody>
	  					</table>
	  				</div>
	  				
	  				<!-- endif -->
	  				
	  				
	  				<div class="seCensor">
	  					<div class="title">
	  					{{receiptDetail' value.receiptOrder}}
	  					</div>
	  					<div class="censorList">
	  					<ul>
		  						<li class="post">
		  							<div class="avtra"><img src="{{staff.0.avatar}}_2.jpg" width="32"></div>
		  							<div class="comment">
		  								<p><span class="fR">{{receiptDetail' value.date}}</span>{{staff.0.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"></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 -->
		  						
		  						
		  						
		  						
	  						
	  						
	  					</ul>
	  					<!-- if {{receiptDetail'  value.status}}==4 -->
	  					<div class="reportButton btnList">
	  						<a href="/editReceipt/{{receiptDetail' value.rid}}" class="buttonBack buttonBlock" data-placement="top" data-toggle="ctooltip" data-original-title="编辑你的报销单后继续审批">继续审批</a>
	  					</div>
	  					<!-- endif -->
	  					</div>
	  				</div>
	  			</div>
	  			<!-- endloop -->
	  			
			</div>
		</div>
	</div>
	<!--弹出-->
<div class="modal hide fade" id="addCallout">
    <div class="modal-header">
    <h3>添加批注</h3>
    </div>
    <div class="modal-body">
    <form class="">
	    	<div class="control-group">
				<div class="controls clearfix">
					<label>
	                	批注内容
	              	</label>
	              	<textarea rows="8" class="span6"></textarea>
				</div>
	    	</div>
    </form>
    </div>
	<div class="modal-footer">
	    <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">取消</a>
	   	<a href="#" class="button">确定</a>
	</div>
</div>
    <!--弹出内容-->
<script type="text/javascript">autoFlashHeight();</script>	
</body>