<!-- include 'header' -->


<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">
						<!-- include 'receipt_menu' -->
						
				</div>
			</div>
				<div class="adminContent autoHeight">
					<div class="saea-borad">
						<div class="borad-menu">
							<a href="/saeaLoanAdd" class="loan">申请借款</a>
							<a href="/saeaCreate" class="receipt">申请报销</a>
							<a href="/receiptTrainAdd" class="train">培训班结算</a>
							<a href="/remitAdd" class="public">申请对公汇款</a>
						</div>
						<div class="borad-news">
							<div class="saeaList">
								<div class="clearfix">
									<legend><div class="fR"></div>需要您处理</legend>
									<table class="table table-bordered table-condensed">
										<tbody>
										<tr><th class="taC" width="140">费用类型</th><th class="taC">单号</th><th class="taC">金额</th><th class="taC">状态</th><th class="taC">操作</th></tr>
										
										<!-- loop receiptDetail -->
										<tr>
										<!-- if {{receiptDetail' value.Rtype}}==1 -->
										<th>借款</th>
										<!-- elseif {{receiptDetail' value.Rtype}}==2 -->
										<th>对公汇款</th>
										<!-- elseif {{receiptDetail' value.Rtype}}==3 -->
										<th>培训班结算</th>
										<!-- else -->
										<th>报销单</th>
										<!-- endif -->
										
										<td>
										<!-- if {{receiptLogList' value.Rtype}}==3 -->
										
										<a href="/receiptTrain/info/{{receiptDetail' value.ridKey}}.html" >{{receiptLogList' value.receiptOrder}}</a>
										<!-- else -->
										<a href="/expensesCollect/{{receiptDetail' value.rid}}">{{receiptDetail' value.receiptOrder}}</a>
										<!-- endif -->
										</td>
										<td class="taR">￥{{receiptDetail' value.sum}}
										<!-- if  {{receiptDetail' value.status}}==7 and {{receiptDetail' value.Rtype}}==1 -->
										<br/>￥{{receiptDetail' value.loanSum}}
										<!-- endif -->
										</td>
										<td>
										<!-- if {{receiptDetail' value.Rtype}}==1 and {{receiptDetail' value.status}}==8  -->
										<span class="colGreen">借款完成</span>
										<!-- elseif  {{receiptDetail' value.status}}==5 or {{receiptDetail' value.status}}==7 -->
										未提交
										<!-- elseif  {{receiptDetail' value.status}}==4 -->
										<span class="colOrange">撤回</span>
										<!-- endif -->
										</td>
										<td width="120">
										<div class="btn-group">
										<!-- if {{receiptDetail' value.Rtype}}==1 and {{receiptDetail' value.status}}==8  -->
										<a class="button btn-block" href="/saeaLoanReceiptAdd/{{receiptDetail' value.rid}}">填写费用报销</a>
										<!-- elseif  ({{receiptDetail' value.status}}==4 or {{receiptDetail' value.status}}==5) and {{receiptDetail' value.Rtype}}==1 and {{receiptDetail' value.isBK}}==0 -->
										
										<a class="button btn-gray  btn-inline" href="/saeaLoanEdi/{{receiptDetail' value.ridKey}}.html">返回编辑</a>
										<a class="button btn-inline" href="/confirmation/{{receiptDetail' value.rid}}">提交审批</a>
										
										<!-- elseif  ({{receiptDetail' value.status}}==4 or {{receiptDetail' value.status}}==5) and {{receiptDetail' value.Rtype}}==0 -->
										<a class="button btn-gray  btn-inline" href="/editReceipt/{{receiptDetail' value.ridKey}}.html">返回编辑</a><a
										 class="button btn-inline" href="/approvedReceipt/{{receiptDetail' value.rid}}">提交审批</a>
										 <!-- elseif  ({{receiptDetail' value.status}}==4 or {{receiptDetail' value.status}}==5) and {{receiptDetail' value.Rtype}}==2 -->
										<a class="button btn-gray  btn-inline" href="/remitEdit/{{receiptDetail' value.ridKey}}.html">返回编辑</a><a
										 class="button btn-inline" href="/approvedReceipt/{{receiptDetail' value.rid}}">提交审批</a>
										 <!-- elseif  ({{receiptDetail' value.status}}==4 or {{receiptDetail' value.status}}==7) and {{receiptDetail' value.Rtype}}==1 and {{receiptDetail' value.isBK}}==1 -->
										 <a class="button btn-gray  btn-inline" href="/saeaLoanReceiptEdi/{{receiptDetail' value.ridKey}}.html">返回编辑</a>
										 <a class="button btn-inline" href="/approvedReceipt/{{receiptDetail' value.rid}}">提交审批</a>
										<!-- elseif {{receiptDetail' value.Rtype}}==3 and ({{receiptDetail' value.status}}==5 or {{receiptDetail' value.status}}==4)  -->
										 <a class="button btn-gray  btn-inline" href="/receiptTrainEdi/{{receiptDetail' value.ridKey}}.html">返回编辑</a>
										
										<form action="/receiptTrainDo" method="post" id="receiptTrainApproval" class="nice-validator n-default" novalidate="novalidate">
				<input type="hidden" name="ridKey" value='{{receiptDetail' value.ridKey}}'>
				<legend><div class="fR"><button type="submit" class="button" href="#confirm" data-toggle="modal">提交审批</button></div>
				</legend>
			</form>
										
										 
										<!-- endif -->
										</div>
										</td>
										</tr>
										<!-- endloop -->
										
										<!-- loop receiptExtendList -->
										<tr>
										<!-- if {{receiptDetail' value.Rtype}}==1 -->
										<th>借款</th>
										<!-- elseif {{receiptDetail' value.Rtype}}==2 -->
										<th>对公汇款</th>
										<!-- elseif {{receiptDetail' value.Rtype}}==3 -->
										<th>培训班结算</th>
										<!-- else -->
										<th>报销单</th>
										<!-- endif -->
										
										<td>
										<!-- if {{receiptLogList' value.Rtype}}==3 -->
										
										<a href="/receiptTrain/info/{{receiptDetail' value.ridKey7}}.html" >{{receiptLogList' value.receiptOrder}}</a>
										<!-- else -->
										<a href="/expensesCollect/{{receiptDetail' value.rid}}">{{receiptDetail' value.receiptOrder}}</a>
										<!-- endif -->
										</td>
										<td class="taR">￥{{receiptDetail' value.sum}}
										<!-- if  {{receiptDetail' value.status}}==7 and {{receiptDetail' value.Rtype}}==1 -->
										<br/>￥{{receiptDetail' value.loanSum}}
										<!-- endif -->
										</td>
										<td>
										<!-- if {{receiptDetail' value.Rtype}}==1 and {{receiptDetail' value.status}}==8  -->
										<span class="colGreen">借款完成</span>
										<!-- elseif  {{receiptDetail' value.status}}==5 or {{receiptDetail' value.status}}==7 -->
										未提交
										<!-- elseif  {{receiptDetail' value.status}}==4 -->
										<span class="colOrange">撤回</span>
										<!-- endif -->
										</td>
										<td width="120">
										<div class="btn-group">
										<!-- if {{receiptDetail' value.Rtype}}==3 and ({{receiptDetail' value.status}}==5 or {{receiptDetail' value.status}}==4)  -->
										 <a class="button  btn-block" href="/receiptTrainEdi/{{receiptDetail' value.ridKey7}}.html">协作</a>
										<!-- endif -->
										</div>
										</td>
										</tr>
										<!-- endloop -->
										
										
										
										</tbody>
									</table>
								</div>
								<div class="clearfix">
									<legend><div class="fR"></div>最近费用动态</legend>
									<table class="table table-bordered table-condensed">
										<tbody>
										<tr><th class="taC" width="140">费用类型</th><th class="taC">单号</th><th class="taC">金额</th><th class="taC">状态</th></tr>
										<!-- loop receiptLogList -->
										<tr>
										
										<!-- if {{receiptLogList' value.Rtype}}==1 -->
										<th>借款</th>
										<!-- elseif {{receiptLogList' value.Rtype}}==2 -->
										<th>对公汇款</th>
										<!-- elseif {{receiptLogList' value.Rtype}}==3 -->
										<th>培训班结算</th>
										<!-- elseif {{receiptLogList' value.Rtype}}==0 -->
										<th>报销单</th>
										<!-- endif -->
										<td>
										<!-- if {{receiptLogList' value.Rtype}}==3 -->
										
										<a href="/receiptTrain/info/{{receiptLogList' value.ridKey}}.html" >{{receiptLogList' value.receiptOrder}}</a>
										<!-- else -->
										<a href="/expensesCollect/{{receiptLogList' value.rid}}" >{{receiptLogList' value.receiptOrder}}</a>
										<!-- endif -->
										</td>
										<td class="taR">￥{{receiptLogList' value.sum}}</td>
										<td>
										 <!-- if {{receiptDetail' value.status}}==1 or {{receiptDetail' value.status}}==6 --> 
										<span class="colBlue">执行中</span>
										<!-- elseif  {{receiptDetail' value.status}}==2 -->
										<span class="">审批中</span>
										<!-- elseif  {{receiptDetail' value.status}}==3 -->
										<span class="colRed">终止</span>
										<!-- elseif  {{receiptDetail' value.status}}==4 -->
										<span class="colOrange">撤回</span>
										<!-- elseif  {{receiptDetail' value.status}}==5 or {{receiptDetail' value.status}}==7 -->
										<span class="">待提交</span>
										<!-- elseif  {{receiptDetail' value.status}}==8 or {{receiptDetail' value.status}}==9 -->
										<span class="colGreen">费用完成</span>
										<!-- endif -->
										</td></tr>
										<!-- endloop -->
										
										</tbody>
									</table>
								</div>
							</div>
						</div>
					</div>
			</div>
		<!--弹出邮寄-->
<div class="modal fade" id="welcome">
	<div class="modal-dialog">
		<div class="modal-content">
		    <div class="modal-header">
		    <h3>欢迎使用费用管理（原报销单）</h3>
		    </div>
		    <div class="modal-body saeaList">
		    	<p style="font-size:18px">请查阅以下文档，了解新的费用管理</p>
		    	<br>
				<table class="table table-bordered table-condensed">
					<tbody>
					<tr>
						<th class="taC colRed" width="100">费用管理简介<br>（必读）</th>
						<td class="taC">
						<a target="_Blank" href="<?= WEB_SITE_GLOBAL ?>handbook/CLD费用管理简介.pdf">在线查阅《CLD费用管理简介》</a>
						
						</td>
						<td class="taC"><a href="<?= WEB_SITE_GLOBAL ?>handbook/CLD费用管理简介.docx">点击下载《CLD费用管理简介》</a></td>
					</tr>
					</tbody>
				</table>
				<table class="table table-bordered table-condensed">
					<tbody>
					<tr>
						<th class="taC" width="100">费用申请人</th>
						<td class="taC"><a target="_Blank" href="<?= WEB_SITE_GLOBAL ?>handbook/费用申请人使用教程.pdf">在线查阅《费用申请人使用手册》</a></td>
						<td class="taC"><a href="<?= WEB_SITE_GLOBAL ?>handbook/费用申请人使用教程.docx">点击下载《费用申请人使用手册》</a></td>
					</tr>
					</tbody>
				</table>
				<table class="table table-bordered table-condensed">
					<tbody>
					<tr>
						<th class="taC" width="100">费用审批人</th>
						<td class="taC"><a target="_Blank" href="<?= WEB_SITE_GLOBAL ?>handbook/费用审批人使用教程.pdf">在线查阅《费用审批人使用手册》</a></td>
						<td class="taC"><a href="<?= WEB_SITE_GLOBAL ?>handbook/费用审批人使用教程.docx">点击下载《费用审批人使用手册》</a></td>
					</tr>
					</tbody>
				</table>
				<table class="table table-bordered table-condensed">
					<tbody>
					<tr>
						<th class="taC" width="100">费用执行人</th>
						<td class="taC"><a target="_Blank" href="<?= WEB_SITE_GLOBAL ?>handbook/费用执行人使用教程.pdf">在线查阅《费用执行人使用手册》</a></td>
						<td class="taC"><a href="<?= WEB_SITE_GLOBAL ?>handbook/费用执行人使用教程.docx">点击下载《费用执行人使用手册》</a></td>
					</tr>
					</tbody>
				</table>
		    </div>
			<div class="modal-footer">
			    <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
			</div>
		</div>
	</div>
</div>
    <!--邮寄-->			
<script type="text/javascript">autoFlashHeight();</script>		
			<!--<script type="text/javascript">$('#welcome').modal('show')</script>-->

</body>