<!-- include '../header' -->
<script src="<?= WEB_SITE_GLOBAL ?>js/payments.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>

<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">
					<div class="saea-borad">
						<div class="borad-menu">
							<a  href="#inputincome" data-toggle="modal" class="invoice">录入日常收支</a>
						</div>
						<div class="borad-news">
							<div class="saeaList">
								<div class="clearfix">
									<table class="table table-bordered table-condensed">
										<tbody>
										<tr><th class="taC">本日累计日收入</th><td>￥{{statisticsList.statisticsDay.0.inComePrice}}</td>
										<th class="taC">本日累计日支出</th><td>￥{{statisticsList.statisticsDay.0.payPrice}}</td></tr>
										<tr><th class="taC">{{statisticsList.statisticsMonth.0.month}}月累计日收入</th><td>￥{{statisticsList.statisticsMonth.0.inComePrice}}</td>
										<th class="taC">{{statisticsList.statisticsMonth.0.month}}月累计日支出</th><td>￥{{statisticsList.statisticsMonth.0.payPrice}}</td></tr>
										<tr><th class="taC">理财存款</th><td>￥{{statisticsList.financingPrice.0.financingPrice}}</td>
										<th class="taC">保证金</th><td>{{statisticsList.statisticsBond}}</td></tr>
										</tbody>

									</table>
								</div>
								
								<div class="clearfix">
									<legend><div class="fR"><a href="/paymentsAchieve">所有收支</a></div>最近收支</legend>
									<table class="table table-bordered table-condensed">
										<tbody>
										<tr><th class="taC" width="50"></th><th class="taC" width="140">费用类别</th><th class="taC">单号</th><th class="taC">金额</th><th class="taC">到款/支付银行</th><th class="taC">银行到款/支付时间</th><th class="taC">录入时间</th></tr>
										
										<!-- loop list -->
										<tr>
											<!-- if {{list' value.expensesType}}==1 -->
											<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 -->
											
											</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>
											<!-- else -->
											<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 -->
											
											</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>
											
											<!-- endif -->
											
										</tr>
										<!-- endloop -->
										
										</tbody>
									</table>
								</div>
							</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="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="inputincome">
		<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">
						<tbody>
						<tr>
							<th class="taC">选择收支</th>
							<td>
								<select name="payMentsType" node-payMentsSelect>
									<option value="INCOME">收入</option>
									<option value="EXPENDITURE">支出</option>
								</select>
							</td>
						</tr>
					</tbody>
				</table>
				<div id="INCOMEBox"  >
				<form action="/paymentsIncomeDo" method="post" id="paymentsIncome" class="nice-validator n-default" novalidate="novalidate">
				
					<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="accountType" 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='9'>工行理财</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>
							<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>
							<!--广发理财 二级-->
							<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>
							<!--工行理财 二级-->
							<div node-accountMsg9 style="display:none">
							可提取余额：￥{{statisticsList.financingPrice.0.financingPrice}}
							<br/>
							<label class="radio inline"><input name="accountMsg9" value="公司固定" checked type="radio">公司固定</label>
							<label class="radio inline"><input name="accountMsg9" value="公司活期" type="radio">公司活期</label>
							<label class="radio inline"><input name="accountMsg9" 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">
									<option value="纵横广发">纵横广发</option>
									<option value="个人广发">个人广发</option>
									<option value="华润银行">华润银行</option>
									<option value="纵横工行">纵横工行</option>
								</select>
							</td>
						</tr>
						<tr>
							<th class="taC">银行到款时间</th><td><input name="receivedDate" id="receivedDate"  value="{{date}}" 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 id="EXPENDITUREBox" style="display:none" >
					
					<form action="/paymentsExpenditureDo" method="post" id="paymentsExpenditure" class="nice-validator n-default" novalidate="novalidate">
					<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="expenditureType" node-expenditureTypeSelect>
								<option value="">请选择</option>
								<option value="1">银行手续费</option>
								<option value="2">总部电话费</option>
								<option value="3">缴税</option>
								
								<option value='4'>广发理财</option>
								<option value='6'>工行理财</option>
								
								<option value="5">保证金</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>
							
							<div node-expenditureMsg6 style="display:none">
							可提取余额：￥{{statisticsList.financingPrice.0.financingPrice}}
							<br/>
							<label class="radio inline"><input name="expenditureMsg6" value="公司固定" checked type="radio">公司固定</label>
							<label class="radio inline"><input name="expenditureMsg6" value="公司活期" type="radio">公司活期</label>
							<label class="radio inline"><input name="expenditureMsg6" 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>
									<option value="纵横工行">纵横工行</option>
								
								</select>
							</td>
						</tr>
						
						
						<tr>
							<th class="taC">银行到款时间</th><td><input name="expenditureDate" id="expenditureDate"  value="{{date}}" 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>
    
<script type="text/javascript">autoFlashHeight();</script>

</body>
