<!-- include '../header' -->
<script src="<?= WEB_SITE_GLOBAL ?>js/payments.js"></script>
<script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.min.js"></script>
	<script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.zh.js"></script>
	<link href="<?= WEB_SITE_GLOBAL ?>css/datepicker.min.css" rel="stylesheet" type="text/css">
<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" style="height: 821px;">
				<legend><div class="fR"></div>公司流水所有收入</legend>
				<div class="demandCate">
				
				<form action="/wasteBookIncome" id="ira" method="get">
									
				
					<ul class="cateList">
	  					<li><a href="/wasteBookExpenditure" >所有支出</a>
	  					<a class="now" href="/wasteBookIncome">所有收入</a></li>
	  					
	  					<li>
	  					<select name='cid'  select-wasteBook >
								<option <!-- if 'ALL' == {{cid}}  --> selected <!-- endif --> value="ALL">所有办事处</option>
								<!-- loop categoryList -->
								<option <!-- if {{categoryList' value.cid}} == {{cid}}  --> selected <!-- endif -->  value="{{categoryList' value.cidKey}}">
								{{categoryList' value.title}}</option>
								<!-- endloop -->
							</select>
	  					
	  					</li>
	  					<li>
	  						<select name="accountType" select-wasteBook >
	  						<option <!-- if 'ALL' == {{accountType}}  --> selected <!-- endif --> value="ALL">所有</option>
	  						<option <!-- if 'INVOICE' == {{accountType}}  --> selected <!-- endif --> value="INVOICE">发票收款</option>
	  						<option <!-- if 'PAYMENTS' == {{accountType}}  --> selected <!-- endif --> value="PAYMENTS">日常收入</option>
	  						</select>
	  					</li>
	  					
	  					<!-- if 'PAYMENTS' == {{accountType}}  -->
	  					
	  					<li>
	  						<select name="dailyIncomeType" select-wasteBook>
	  						<option <!-- if 'ALL' == {{dailyIncomeType}}  --> selected <!-- endif --> value="ALL">所有</option>
	  						<option <!-- if 'FexW0' == {{dailyIncomeType}}  --> selected <!-- endif --> value='FexW0'>利息收入</option>
	  						<option <!-- if 'FWUUC' == {{dailyIncomeType}}  --> selected <!-- endif --> value='FWUUC'>补贴收入</option>
	  						<option <!-- if 'FJWys' == {{dailyIncomeType}}  --> selected <!-- endif --> value='FJWys'>纵横知道</option>
	  						<option <!-- if 'FUUXa' == {{dailyIncomeType}}  --> selected <!-- endif --> value='FUUXa'>借款收回</option>
	  						<option <!-- if 'FxQPk' == {{dailyIncomeType}}  --> selected <!-- endif --> value='FxQPk'>退回</option>
	  						<option <!-- if 'FyPxV' == {{dailyIncomeType}}  --> selected <!-- endif --> value='FyPxV'>其他</option>
	  						<option <!-- if 'FWXPj' == {{dailyIncomeType}}  --> selected <!-- endif --> value='FWXPj'>广发理财</option>
	  						<option <!-- if 'FSQQg' == {{dailyIncomeType}}  --> selected <!-- endif --> value='FSQQg'>工行理财</option>
	  						<option <!-- if 'FXXJq' == {{dailyIncomeType}}  --> selected <!-- endif --> value='FXXJq'>保证金</option>
	  						</select>
	  					</li>
	  					
	  					<!-- endif -->
	  					
	  					<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>{{year}}年合计：￥{{sum}}</li>
	  					<li>{{thsDay}}合计：￥{{thsDaySum}}</li>
	  			</ul>
	  			
	  			</form>
	  		</div>
	  		<div class="saeaList">
	  			<!--执行列表-->
	  			<div class="entry">
	  				<table class="table table-bordered table-condensed">
	  					<tr>
	  					<th class="taC">支出项</th>
	  					
	  					<!-- if 'INVOICE' == {{accountType}} -->
	  					<th class="taC">办事处</th>
	  					<th class="taC">开票单位（抬头）</th>
	  					<!-- endif -->
	  					
	  					<th class="taC">金额</th>
	  					<th class="taC">到款银行</th><th class="taC">时间</th><th class="taC">单号</th><th class="taC">提交人</th></tr>
	  						<!-- loop incomeList -->	
	  							<tr>
											<!-- if {{expenditureList' value.accountType}}==6||{{expenditureList' value.accountType}}==9||{{expenditureList' value.accountType}}==10 -->
											<td>日常收入（{{expenditureList' value.data.incomeTypeMsg}}）</td>
											<!-- elseif {{expenditureList' value.accountType}}==7||{{expenditureList' value.accountType}}==8 -->
											<td>发票收款</td>
											
											
											
											<!-- elseif {{expenditureList' value.accountType}}==1 -->
											<td>费用收入（借款）</td>
											<!-- elseif {{expenditureList' value.accountType}}==2 -->
											<td>费用收入（借款报销）</td>
											<!-- elseif {{expenditureList' value.accountType}}==3 -->
											<td>费用收入（报销）</td>
											<!-- elseif {{expenditureList' value.accountType}}==4 -->
											<td>费用收入（对公汇款）</td>
											<!-- elseif {{expenditureList' value.accountType}}==12 -->
											<td>费用收入（ 培训班结算）</td>
											
											
											
											<!-- endif -->
											
											<!-- if 'INVOICE' == {{accountType}} -->
	  					<td class="taC">{{expenditureList' value.data.title}}</td>
	  					<td class="taC">{{expenditureList' value.data.recepitTitleMark}}</td>
	  					<!-- endif -->
											
											<td>￥{{expenditureList' value.accountPriceShow}}</td>
											<td>{{expenditureList' value.accountBankMsg}}</td>
											<td>{{expenditureList' value.inputDate}}</td>
											<!-- if {{expenditureList' value.accountType}}==6||{{expenditureList' value.accountType}}==9||{{expenditureList' value.accountType}}==10 -->
<td><a href="#saea-detail5" node-income=waste data-key="{{expenditureList' value.data.aidKey}}" data-toggle="modal">{{expenditureList' value.data.bookSerial}}</a></td>
											<!-- elseif {{expenditureList' value.accountType}}==7 -->
<td><a href="#saea-detail2" node-ir=waste data-key="{{expenditureList' value.data.iridKey}}" data-toggle="modal">{{expenditureList' value.data.receivablesSerial}}</a></td>											
											<!-- elseif {{expenditureList' value.accountType}}==8 -->
			<td><a href="#saea-detail2" node-i=waste data-key="{{expenditureList' value.data.iidKey}}" data-toggle="modal">{{expenditureList' value.data.invoiceSerial}}</a></td>
											<!-- elseif {{expenditureList' value.accountType}}==12 -->
											<td><a href="/receiptTrain/info/{{expenditureList' value.data.ridKey7}}.html" data-toggle="modal">{{expenditureList' value.data.receiptOrder}}</a></td>
			<!-- elseif {{expenditureList' value.accountType}}==1||{{expenditureList' value.accountType}}==2||{{expenditureList' value.accountType}}==3||{{expenditureList' value.accountType}}==4 -->
											<td><a href="#saea-detail1" node-receipt=waste data-key="{{expenditureList' value.data.ridKey}}" data-toggle="modal">{{expenditureList' value.data.receiptOrder}}</a></td>
											
											<!-- endif -->
											<td>{{expenditureList' value.category}}-{{expenditureList' value.name}}</td>
										</tr>
	  						<!-- endloop -->				
	  				</table>
	  			</div>
	  		</div>
			</div>
		</div>
	</div>

<!--弹出费用详情 借款报销-->
	<div class="modal hide fade" id="saea-detail1">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<h3>费用详情</h3>
				</div>
				<div class="modal-body saeaList">
					<div id="wasteReceipt"></div>
				</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="saea-detail2">
        <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='IR-wasteStaff'></td></tr>
                            <tr><th class="taC">单号</th>
                            <td id='IR-bookSerial'></td>
                            </tr>
                            <tr><th class="taC">到款信息</th>
                           <td id='IR-expenditureMsg'></td>
                            </tr>
                            <tr><th class="taC">收入金额</th>
                           <td id='IR-expenditurePrice'></td>
                            </tr>
                            <tr><th class="taC">收款银行</th>
                            <td id='IR-expenditureBank'></td>
                            </tr>
                            <tr><th class="taC">银行到帐时间</th>
                           <td id='IR-expenditureDate'></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>
<script type="text/javascript">autoFlashHeight();</script>
</body>
