<!-- include '../header' -->
<link href="<?= WEB_SITE_GLOBAL ?>css/datepicker.min.css" rel="stylesheet" type="text/css">
<script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.min.js"></script>
<script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.zh.js"></script>

<link rel=stylesheet href="<?= WEB_SITE_GLOBAL ?>css/jquery.validator.css"> 
<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/jquery.validator.min.js"></script>
<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/zh-CN.js"></script>
<script src="<?= WEB_SITE_GLOBAL ?>js/pay.validator.js"></script>

<script src="<?= WEB_SITE_GLOBAL ?>js/payments.js"></script>

<body>
	<div class="mainLayout">
		<div class="mainMenu">
			<div class="menuItem">
				<a href="#" class="mLogo">CLD</a>
				<ul>
					<!-- include '../menu' -->
				</ul>
			</div>
		</div>
		<div class="warpContent">
			<div class="subMenu fL">
				<div class="menuItem">
					<!-- include '../admin/receipt_menu' -->
				</div>
			</div>
			<div class="adminContent autoHeight">
				<legend>
					所有收支
				</legend>
				<div class="demandCate">
				
				<form action="/paymentsAchieve/1/{{expensesType}}"  id="iaa" method="get" >
					<input type="hidden" name="submitType" id="submitType" value="">
					<ul class="cateList">
						<li>
							<a <!-- if {{expensesType}}=='ALL' --> class="now" <!-- endif -->  href="/paymentsAchieve/1/ALL">所有</a>
							<a <!-- if {{expensesType}}=='INCOME' --> class="now" <!-- endif --> href="/paymentsAchieve/1/INCOME" title="收入">收入</a>
							<a <!-- if {{expensesType}}=='PAY' --> class="now" <!-- endif --> href="/paymentsAchieve/1/PAY" title="支出">支出</a>
						</li>
						
						<!-- if {{expensesType}}=='INCOME'||{{expensesType}}=='ALL' -->
						<li >
						
							<select name="accountType" id="accountType" node-accountTypeSearch node-accountTypeSelect>
								<option <!-- if {{accountType}}=='' --> selected <!-- endif --> value=''>请选择</option>
								<option <!-- if {{accountType}}=='1' --> selected <!-- endif --> value='1'>利息收入</option>
								<option <!-- if {{accountType}}=='2' --> selected <!-- endif --> value='2'>补贴收入</option>
								<option <!-- if {{accountType}}=='3' --> selected <!-- endif --> value='3'>纵横知道</option>
								<option <!-- if {{accountType}}=='4' --> selected <!-- endif --> value='4'>借款收回</option>
								<option <!-- if {{accountType}}=='5' --> selected <!-- endif --> value='5'>退汇</option>
								<option <!-- if {{accountType}}=='6' --> selected <!-- endif --> value='6'>其他</option>
								<option <!-- if {{accountType}}=='7' --> selected <!-- endif --> value='7'>广发理财</option>
								<option <!-- if {{accountType}}=='9' --> selected <!-- endif --> value='9'>工行理财</option>
								<option <!-- if {{accountType}}=='8' --> selected <!-- endif --> value='8'>保证金</option>
							</select>
							<!--利息收入 二级-->
							<span node-accountMsg1  <!-- if {{accountType}}!='1' --> style="display:none;" <!-- endif --> >
							<select name="accountMsg1" node-accountTypeSearch >
								<option <!-- if {{accountMsg}}=='' --> selected <!-- endif --> value="">请选择</option>
								<option <!-- if {{accountMsg}}=='银行存款' --> selected <!-- endif --> value="银行存款">银行存款</option>
								<option <!-- if {{accountMsg}}=='理财收益' --> selected <!-- endif --> value="理财收益">理财收益</option>
								<option <!-- if {{accountMsg}}=='个人借款' --> selected <!-- endif --> value="个人借款">个人借款</option>
							</select>
							</span>
							
							<!--补贴收入 二级-->
							<span node-accountMsg2 <!-- if {{accountType}}!='2' --> style="display:none;" <!-- endif --> >
							<select name="accountMsg2" node-accountTypeSearch>
								<option <!-- if {{accountMsg}}=='' --> selected <!-- endif -->  value="">请选择</option>
								<option <!-- if {{accountMsg}}=='社保' --> selected <!-- endif -->  value="社保">社保</option>
								<option <!-- if {{accountMsg}}=='财政' --> selected <!-- endif -->  value="财政">财政</option>
							</select>
							</span>
							<!--借款收回 二级-->
							<span node-accountMsg4 <!-- if {{accountType}}!='4' --> style="display:none;" <!-- endif --> >
							<select name="accountMsg4" node-accountTypeSearch>
								<option <!-- if {{accountMsg}}=='' --> selected <!-- endif -->  value="">请选择</option>
								<option <!-- if {{accountMsg}}=='备用金' --> selected <!-- endif -->  value="备用金">备用金</option>
								<option <!-- if {{accountMsg}}=='私人借款' --> selected <!-- endif -->  value="私人借款">私人借款</option>
							</select>
							</span>
							
						<span node-accountMsg7 <!-- if {{accountType}}!='7' --> style="display:none;" <!-- endif --> >
							<select name="accountMsg7" node-accountTypeSearch>
								<option <!-- if {{accountMsg}}=='' --> selected <!-- endif -->  value="">请选择</option>
								<option <!-- if {{accountMsg}}=='公司固定' --> selected <!-- endif -->  value="公司固定">公司固定</option>
								<option <!-- if {{accountMsg}}=='公司活期' --> selected <!-- endif -->  value="公司活期">公司活期</option>
								<option <!-- if {{accountMsg}}=='个人（GR）' --> selected <!-- endif -->  value="个人（GR）">个人（GR）</option>
							</select>
							</span>


						</li>
						<!-- endif -->
						<li>
						<!-- if {{expensesType}}=='PAY'||{{expensesType}}=='ALL' -->
						<!--支出-->
						<select name="expenditureType" id="expenditureType" node-expenditureTypeSearch node-expenditureTypeSelect>
								<option <!-- if {{expenditureType}}=='' --> selected <!-- endif --> value="">请选择</option>
								<option <!-- if {{expenditureType}}=='1' --> selected <!-- endif --> value="1">银行手续费</option>
								<option <!-- if {{expenditureType}}=='2' --> selected <!-- endif --> value="2">总部电话费</option>
								<option <!-- if {{expenditureType}}=='3' --> selected <!-- endif --> value="3">缴税</option>
								<option <!-- if {{expenditureType}}=='4' --> selected <!-- endif --> value="4">广发理财</option>
								<option <!-- if {{expenditureType}}=='6' --> selected <!-- endif --> value="4">工行理财</option>
								<option <!-- if {{expenditureType}}=='5' --> selected <!-- endif --> value='5'>保证金</option>
							</select>
						
						<!-- endif -->
						</li>
						<li>
							<div class="search">
								<div class="input-append">
								
								<input class="datepicker-here span3" name="inputDate" value="{{inputDate}}" placeholder="按时间筛选" type="text" data-range="true" data-multiple-dates-separator=" : " data-language="zh">
								
									
									<button class="btn btn-small" type="submit">查询</button>
								</div>
							</div></li>
						<li>
							<div class="search">
								<div class="input-append">
									<input class="span3" name="price" value="{{price}}" placeholder="输入金额" type="text">
									<button class="btn btn-small" type="submit">搜索</button>
								</div>
							</div></li>
					</ul>
					
					</form>
					
				</div>
				<div class="saeaList">
					<table class="table table-hover">
						<tbody>
							<tr class="thead"><th width="50"></th><th width="140">费用类别</th><th>单号</th><th>金额</th><th >到款/支付银行</th><th >银行到款/支付时间</th><th>入库时间</th><th>操作</th></tr>
							
							<!-- loop list -->
							<!-- if {{list' value.expensesType}}==1 -->
							<tr>
								<th>收入</th>
								<td>
								
								<!-- if {{list' value.accountType}}==1 -->
												利息收入
												<!-- elseif {{list' value.accountType}}==2 -->
												补贴收入
												<!-- elseif {{list' value.accountType}}==3 -->
												纵横知道
												<!-- elseif {{list' value.accountType}}==4 -->
												借款收回
												<!-- elseif {{list' value.accountType}}==5 -->
												退汇
												<!-- elseif {{list' value.accountType}}==6 -->
												其他
												<!-- elseif {{list' value.accountType}}==7 -->
												广发理财
												<!-- elseif {{list' value.accountType}}==9 -->
												工行理财
												<!-- elseif {{list' value.accountType}}==8 -->
												保证金
												<!-- elseif {{list' value.accountType}}==10 -->
												理财收入
												<!-- endif -->
								<!-- if {{list' value.accountMsg}}!='' -->				
								/ {{list' value.accountMsg}}				
								<!-- endif -->				
								</td>
								<td><a href="#saea-detail5" node-income=waste data-key="{{list' value.aidKey}}" data-toggle="modal">{{list' value.bookSerial}}</a></td>
								<td class="taR">￥{{list' value.receivedPrice}}</td>
								<td>{{list' value.receivedBank}}</td>
											<td>
											{{list' value.receivedDate}}
											</td>
											<td>{{list' value.inputDate}}</td>
								
								<td><a href="#nodeincome" style="display:none" node-income='detail' data-isKey="{{list' value.aidKey}}" data-toggle="modal">编辑</a> 
								<a href="#delincome" del-income='detail' data-isKey="{{list' value.aidKey}}" data-toggle="modal">删除</a></td>
							</tr>
							<!-- else -->
							<tr>
								<th><span class="colRed">支出</span></th>
								<td>
								<!-- if {{list' value.expenditureType}}==1 -->
											理财本金
											<!-- elseif {{list' value.expenditureType}}==2 -->
											总部电话费
											<!-- elseif {{list' value.expenditureType}}==3 -->
											缴税
											<!-- elseif {{list' value.expenditureType}}==4 -->
											广发理财
											<!-- elseif {{list' value.expenditureType}}==6 -->
											工行理财
											<!-- elseif {{list' value.expenditureType}}==5 -->
											保证金
											<!-- elseif {{list' value.expenditureType}}==7 -->
											理财支出
											<!-- endif -->
								<!-- if {{list' value.expenditureMsg}}!='' -->				
								/ {{list' value.expenditureMsg}}				
								<!-- endif -->
								
								</td>
								<td><a href="#saea-detail4" node-pay=waste data-key="{{list' value.aidKey}}" data-toggle="modal" >{{list' value.bookSerial}}</a></td>
								<td class="taR">￥{{list' value.expenditurePrice}}</td>
								<td>{{list' value.expenditureBank}}</td>
											<td>
											{{list' value.expenditureDate}}
											</td>
											<td>{{list' value.inputDate}}</td>
								<td>
								<a href="#nodeEXPENDITURE" style="display:none" node-EXPENDITURE='detail' data-isKey="{{list' value.aidKey}}" data-toggle="modal">编辑</a> 
								<a href="#delincome" del-income='detail' data-isKey="{{list' value.aidKey}}" data-toggle="modal">删除</a></td>
							</tr>
							<!-- endif -->
							<!-- endloop -->
							
							
						</tbody>
					</table>
				</div>
						  		<!--翻页-->
				<div class="demandPage">
					<ul class="pagination fL">
	  							<!-- if {{page.previous}}==0 -->
								<li><a href="javascript:void(0)" title="上一页">&lt;</a></li>
								<!-- else -->
								<li><a href="/paymentsAchieve/{{page.previous}}/{{expensesType}}" title="上一页">&lt;</a></li>
								<!-- endif -->	
								
	  							<!-- if {{page.on_page}}>=3 -->
	  							<li><a href="/paymentsAchieve/1/{{expensesType}}" title="上一页">1</a></li>
	  							<li class="point"><span>...</span></li>
	  							<!-- endif -->
	  							
	  							{{page.page}}
	  							
	  							<!-- if {{page.on_page}}<3 && {{page.total_page}}>5 -->
	  							<li><a href="/paymentsAchieve/4/{{expensesType}}" >4</a></li>
	  							<li><a href="/paymentsAchieve/5/{{expensesType}}" >5</a></li>
	  							<!-- endif -->
	  							
	  							<!-- if {{page.total_page}}>3 -->
	  							<li class="point"><span>...</span></li>
			  					<!-- endif -->
			  					
			  					<!-- if {{page.next}}=={{page.on_page}} -->
								<li><a href="javascript:void(0)" title="下一页">&gt;</a></li>
								<!-- else -->
								<li><a href="/paymentsAchieve/{{page.next}}/{{expensesType}}" title="下一页">&gt;</a></li>
								<!-- endif -->
			  					
			  		</ul>
			  	</div>			
			  	
			  	
			  	
			</div>
			</div>
			
	<div class="modal hide fade" id="nodeincome">
		<div class="modal-dialog ">
			<div class="modal-content">
				<div class="modal-header">
					<h3>录入日常收支</h3>
				</div>
				<div class="modal-body saeaList">
				
				<div id="INCOMEBox"  >
				<form action="/paymentsIncomeUpdateDo" method="post" id="paymentsIncome" class="nice-validator n-default" novalidate="novalidate">
					<input type="hidden" name="aidKey" id="aidKeyIncome" value="">
					<table  class="table table-bordered table-condensed">
						<tbody>
						<!--收入-->
						<tr>
							<th class="taC" colspan="2">收入信息填写</th>
						</tr>
												<tr>
							<th class="taC">费用类型</th>
							<td >
							<select name="accountType" id="accountTypeEdi" node-accountTypeSelect>
								<option value=''>请选择</option>
								<option value='1'>利息收入</option>
								<option value='2'>补贴收入</option>
								<option value='3'>纵横知道</option>
								<option value='4'>借款收回</option>
								<option value='5'>退汇</option>
								<option value='6'>其他</option>
								<option value='7'>理财本金</option>
								<option value='8'>保证金</option>
							</select>
							<p>
							<!--利息收入 二级-->
							<div node-accountMsg1 style="display:none">
							<label class="radio inline"><input name="accountMsg1" checked  value="银行存款" type="radio">银行存款</label>
							<label class="radio inline"><input name="accountMsg1"  value="理财收益" type="radio">理财收益</label>
							<label class="radio inline"><input name="accountMsg1"  value="个人借款" type="radio">个人借款</label>
							</div>
							<!--补贴收入 二级-->
							<div node-accountMsg2 style="display:none">
							<label class="radio inline"><input name="accountMsg2" checked  value="银行存款" type="radio">社保</label>
							<label class="radio inline"><input name="accountMsg2"   value="银行存款" type="radio">财政</label>
							</div>
							<!--借款收回 二级-->
							<div node-accountMsg4 style="display:none">
							<label class="radio inline"><input name="accountMsg4" checked  value="备用金" type="radio">备用金</label>
							<label class="radio inline"><input name="accountMsg4"   value="私人借款" type="radio">私人借款</label> 
							</div>
							<!--理财G 二级-->
							<div node-accountMsg7 style="display:none">
							可提取余额：￥{{statisticsList.financingPrice.0.financingPrice}}
							<br/>
							<label class="radio inline"><input name="accountMsg7" value="公司固定" checked type="radio">公司固定</label>
							<label class="radio inline"><input name="accountMsg7" value="公司活期" type="radio">公司活期</label>
							<label class="radio inline"><input name="accountMsg7" value="个人（GR）" type="radio">个人（GR）</label>
							
							</div>
							</p>
							</td>
						</tr>
						<tr>
							<th class="taC">到款金额</th>
							<td><input name="receivedPrice" id="receivedPrice"  value="0" placeholder="输入开票金额" pattern="[0-9]" min="0" step="0.01" type="number"></td>
						</tr>
						<tr>
							<th class="taC">到款信息</th><td><input name="receivedMsg" id="receivedMsg"  value="" type="text"></td>
						</tr>
						<tr>
							<th class="taC">到款银行</th>
							<td>
								<select name="receivedBank" id="receivedBank">
									<option value="纵横广发">纵横广发</option>
									<option value="个人广发">个人广发</option>
									<option value="华润银行">华润银行</option>
								</select>
							</td>
						</tr>
						<tr>
							<th class="taC">银行到款时间</th><td><input name="receivedDate" id="receivedDate"  value="" type="date"></td>
						</tr>
						
						<tr>
							<th class="taC">备注</th>
							<td><textarea class="form-control" name="remarks" rows="3"></textarea></td>
						</tr>
						
						<!--收入-->
					</tbody>
				</table>
				
				<div class="modal-footer">
					<input type="submit" value="确认录入" class="button">
					<a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
				</div>
				
				</form>
				
				</div>
				</div>
				
			</div></div>
</div>		
			
			
			
			
			
			
		<div class="modal hide fade" id="nodeEXPENDITURE">
		<div class="modal-dialog ">
			<div class="modal-content">
				<div class="modal-header">
					<h3>录入日常收支</h3>
				</div>
				<div class="modal-body saeaList">
				
				
				
					
				
						<!--支出-->
					<div id="EXPENDITUREBox"  >
					
					<form action="/paymentsExpenditureEdiDo" method="post" id="paymentsExpenditure" class="nice-validator n-default" novalidate="novalidate">
					<input type="hidden" name="aidKey" id="aidKeyExpenditure" value="">
					<table   class="table table-bordered table-condensed">
					<tbody>
						<tr>
							<th class="taC" colspan="2">支出信息填写</th>
						</tr>
						<tr>
							<th class="taC">费用类型</th><td>
							<select name="expenditureType" id="expenditureTypeEdi" node-expenditureTypeSelect>
								<option value="">请选择</option>
								<option value="1">银行手续费</option>
								<option value="2">总部电话费</option>
								<option value="3">缴税</option>
								<option value="4">理财G</option>
							</select>
							<!--缴税 二级-->
							<div node-expenditureMsg3 style="display:none">
							<p>
							<label class="radio inline"><input name="expenditureMsg3" checked value="增值税" type="radio">增值税</label>
							<label class="radio inline"><input name="expenditureMsg3"  value="税金附加" type="radio">税金附加</label>
							<label class="radio inline"><input name="expenditureMsg3"  value="企业所得税" type="radio">企业所得税</label>
							</p>
							</div>
							<div node-expenditureMsg4 style="display:none">
							可提取余额：￥{{statisticsList.financingPrice.0.financingPrice}}
							<br/>
							<label class="radio inline"><input name="expenditureMsg4" value="公司固定" checked type="radio">公司固定</label>
							<label class="radio inline"><input name="expenditureMsg4" value="公司活期" type="radio">公司活期</label>
							<label class="radio inline"><input name="expenditureMsg4" value="个人（GR）" type="radio">个人（GR）</label>
							
							</div>
						</tr>
						<tr>
							<th class="taC">支出金额</th><td>
							<input name="expenditurePrice" id="expenditurePrice"   value="0" placeholder="输入开票金额" pattern="[0-9]" min="0" step="0.01" type="number"></td>
						</tr>
						<tr>
							<th class="taC">支出银行</th>
							<td>
								<select name="expenditureBank" id="expenditureBank">
									<option value="纵横广发">纵横广发</option>
									<option value="个人广发">个人广发</option>
									<option value="华润银行">华润银行</option>
								</select>
							</td>
						</tr>
						
						<tr>
							<th class="taC">银行到款时间</th><td><input name="expenditureDate" id="expenditureDate"  value="" type="date"></td>
						</tr>
						
						<tr>
							<th class="taC">备注</th>
							<td><textarea class="form-control" name="remarks" rows="3"></textarea></td>
						</tr>
						
						<!--支出-->
						</tbody>
						</table>
						
						<div class="modal-footer">
							<input type="submit" value="确认录入" class="button">
							<a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
						</div>
						
						</form>
						</div>
						
						
						
				</div>
				
				
			</div></div>
</div>	
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			<!--弹出日常收支 -->
	<div class="modal hide fade" id="saea-detail4">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<h3>费用详情</h3>
				</div>
				<div class="modal-body saeaList">
					<table class="table table-bordered table-condensed">
						<tboay>
						
						<tr>
							<th class="taC" width="110">收支录入</th>
							<td id='WI-wasteStaff'></td>
						</tr>
						<tr>
							<th class="taC">单号</th>
							<td id='WI-bookSerial'></td>
						</tr>
						<tr>
							<th class="taC">费用类型</th>
							<td id='WI-expenditureMsg'></td>
						</tr>
						<tr>
							<th class="taC">支出金额</th>
							<td id='WI-expenditurePrice'></td>
						</tr>
						<tr>
							<th class="taC">支出银行</th>
							<td id='WI-expenditureBank'></td>
						</tr>
						<tr>
							<th class="taC">银行支付时间</th>
							<td id='WI-expenditureDate'></td>
						</tr>
						<tr>
							<th class="taC">备注</th>
							<td id='WI-remarks'></td>
						</tr>
						</tboay>
					</table>
				</div>
				<div class="modal-footer">
					<a href="#" class="button btn-gray" data-dismiss="modal"
						aria-hidden="true">关闭</a>
				</div>
			</div>
		</div>
	</div>
			
			
		<!--弹出日常收支 -->
	<div class="modal hide fade" id="saea-detail5">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<h3>费用详情</h3>
				</div>
				<div class="modal-body saeaList">
					<table class="table table-bordered table-condensed">
						<tboay>
						<tr>
							<th class="taC" colspan="2">收入</th>
						</tr>
						<tr>
							<th class="taC" width="110">收支录入</th>
							<td id='IN-wasteStaff'></td>
						</tr>
						<tr>
							<th class="taC">单号</th>
							<td id='IN-bookSerial'></td>
						</tr>
						<tr>
							<th class="taC">费用类型</th>
							<td id='IN-expenditureMsg'></td>
						</tr>
						<tr>
							<th class="taC">收入金额</th>
							<td id='IN-expenditurePrice'></td>
						</tr>
						<tr>
							<th class="taC">收入银行</th>
							<td id='IN-expenditureBank'></td>
						</tr>
						<tr>
							<th class="taC">银行收入时间</th>
							<td id='IN-expenditureDate'></td>
						</tr>
						<tr>
							<th class="taC">备注</th>
							<td id='IN-remarks'></td>
						</tr>
						</tboay>
					</table>
				</div>
				<div class="modal-footer">
					<a href="#" class="button btn-gray" data-dismiss="modal"
						aria-hidden="true">关闭</a>
				</div>
			</div>
		</div>
	</div>	
			
			

<!--弹出（日收支）-->
<div class="modal hide fade" id="delincome">

<form action="/paymentsDelDo" method="post" id="paymentsExpenditure" class="nice-validator n-default" novalidate="novalidate">

<input type="hidden" name="aidKey" id="aidKeyDel" value="">

		<div class="modal-dialog ">
			<div class="modal-content">
				<div class="modal-header">
					<h3>删除收支</h3>
				</div>
				<div class="modal-body">
					<p>确认删除该收支？</p>
				</div>
				<div class="modal-footer">
				
					<input type="submit" value="确认删除" class="button">
				
					<a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
				</div>
			</div></div>
</form>
	</div>	
<script type="text/javascript">autoFlashHeight();</script>

</body>
