<!-- include 'header' -->
<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/invoice.validator.js"></script>
<script src="<?= WEB_SITE_GLOBAL ?>js/invoice.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">
					<!-- include 'invoiceMenu' -->
				</div>
			</div>
			<div class="adminContent autoHeight">
				<legend>
					收款管理
				</legend>
				<div class="demandCate">
				<form action="/invoiceReceivablesAS/1/{{status}}" id="iras" method="get">
					<ul class="cateList">
					<li>
						<a <!-- if {{status}}=='All' --> class="now" <!-- endif --> href="/invoiceReceivablesAS/1/All/{{year}}/{{month}}/{{MebSea}}">所有</a>
	  					<a <!-- if {{status}}=='Unclaimed' --> class="now" <!-- endif --> title="未认领" href="/invoiceReceivablesAS/1/Unclaimed/{{year}}/{{month}}/{{MebSea}}">未认领</a>
	  					<a <!-- if {{status}}=='Credited' --> class="now" <!-- endif --> title="已入账" href="/invoiceReceivablesAS/1/Credited/{{year}}/{{month}}/{{MebSea}}" >已入账</a>
	  				</li>
					
					
	  					<li><select node-iryChange >
							<!-- include 'year' -->
						</select>
	  					
						<select node-irmChange >
	  					<option value="All">所有月份</option>
	  					{{mothHtml}}
	  					</select>
	  					</li>
	  					
						<li><div class="search"><div class="input-append">
									<input class="span3" data-irmMebSea placeholder="收款金额，收款信息" value="{{MebSeaEn}}" type="text">
									<button class="btn btn-small" node-irmMebSea type="button">搜索</button>
								</div>
							</div></li>
					</ul>
					</form>
	  			</div>
				<div class="saeaList">
		  		<table class="table table-hover">
					<tr class="thead">
						<th>收款金额</th>
						<th>收款信息</th>
						<th>到帐银行/到帐时间</th>
						<th>录入收款</th>
						<th>收款认领</th>
						<th>开票流水号</th>
						<th>操作</th>
					</tr>
					
					<!-- loop list -->
						<tr>
						<td><b>￥{{list' value.receivablesPrice}}</b></td>
						<td>{{list' value.receivablesMessage}}</td>
						<td>{{list' value.receivablesBank}}<br>{{list' value.receivablesDate}}</td>
						<td>{{list' value.inputStaff}} <br>{{list' value.date}}</td>
						<td>
						<!-- if {{list' value.receivablesStaff}}!='PUBLIC' -->
						{{list' value.irolg.operation}}<br/>{{list' value.confirmTime}}
						<!-- endif -->
						</td>
						<td>
						<a href="#invdetail" node-invoice='INFO' data-isKey="{{list' value.iidKeyK}}"  data-toggle="modal">{{list' value.irList.invoiceSerial}}</a>
						</td>
						<td>
						<!-- if {{list' value.receivablesStaff}}=='PUBLIC' -->
							<a href="#billeidt" data-isKey="{{list' value.iridKey}}" node-irUpdate  data-toggle="modal">修改</a> 
							<a  href="#billdel" data-isKey="{{list' value.iridKey}}" node-irDelete data-toggle="modal">删除</a>
						<!-- elseif {{list' value.receivablesStaff}}!='PUBLIC'&&{{list' value.iid}}==0  -->
							<a href="#receive" data-isKey="{{list' value.iridKey}}" node-alter data-toggle="modal">变更</a>
						<!-- endif -->
						</td>
						</tr>
					<!-- endloop -->
					
					
		  		</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="/invoiceReceivablesAS/{{page.previous}}{{get}}" title="上一页">&lt;</a></li>
								<!-- endif -->	
								
	  							<!-- if {{page.on_page}}>=3 -->
	  							<li><a href="/invoiceReceivablesAS/1{{get}}" 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="/invoiceReceivablesAS/4{{get}}" >4</a></li>
	  							<li><a href="/invoiceReceivablesAS/5{{get}}" >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="/invoiceReceivablesAS/{{page.next}}{{get}}" title="下一页">&gt;</a></li>
								<!-- endif -->
			  					
			  		</ul>
			  	</div>			
			</div>
		</div>
	</div>

<div loading-msg='true' style="position:absolute;  left:50%;  top:50%;  "></div>
	
	<div class="modal  fade" id="invdetail">
		
		<div id="nc"></div>
	</div>

	<!--弹出变更-->
<div class="modal hide fade" id="receive">
<form action="/invoiceReceivablesUpdateClaim" method="post" class="form-horizontal">
	<div class="modal-dialog">
		<div class="modal-content">
    <div class="modal-header">
    <h3>变更认领人</h3>
    </div>
    <div class="modal-body">
    	
    		<input type="hidden" name="claimKey" value >
    		<div loading-msg='categoryStaff'></div>
			<div class="control-group">
				<label class="control-label"><span class="colRed">*</span>办事处</label>
				<div class="controls">
					<select name="receivablesCategory" html-category>
					
					</select>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label"></label>
				<div class="controls">
					<select name="receivablesStaff" html-staff>
					
					</select>
				</div>
			</div>
		
    </div>
	<div class="modal-footer">
		<input type="submit" class="button" value="确定">
	    <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
	</div>
			</div></div>
			</form>
</div>
    <!--弹出变更-->
	<!--弹出修改-->
<div class="modal hide fade" id="billeidt">
<form action="/invoiceReceivablesUpdateClaim" method="post" name="receivablesInvoice">
	<input type="hidden" name="claimKey" id="claimuKey" value >
	<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" colspan="4">收款信息填写</th>
						</tr>
						<tr>
							<th class="taC">收款金额</th>
							<td>
							<input value="" name="receivablesPrice" placeholder="输入收款金额" pattern="[0-9]" min="0" step="0.01" type="number">
							</td>
						</tr>
						<tr>
							<th class="taC" >收款信息</th>
							<td>
							<input name="receivablesMessage" type="text">
							</td>
						</tr>
						<tr>
							<th class="taC">收款银行</th><td>
							<select name="receivablesBank" html-rbank>
								
							</select></td>
						</tr>
						<tr>
							<th class="taC">银行到帐时间</th>
							<td><input name="receivablesDate" type="date"></td>
						</tr>
						<tr>
							<th class="taC">认领收款</th><td colspan="3">
							<select name="receivablesCategory" html-rcategory>
								
							</select>

							<select name="receivablesStaff" html-rstaff>
							
							</select></td>
						</tr>
						</tbody></table>
			</div>
	<div class="modal-footer">
	    <input type="submit" class="button" value="确定">
	    <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
	</div>
			</div></div>
			</form>
</div>
    <!--弹出修改-->   
	<!--弹出删除-->
<div class="modal hide fade" id="billdel">
<form action="/invoiceReceivablesDelete" method="post" name="receivablesInvoice">
<input type="hidden" name="claimKey" id="claimdKey" value >
	<div class="modal-dialog">
		<div class="modal-content">
    <div class="modal-header">
    <h3>删除收款</h3>
    </div>
    <div class="modal-body">
    	数据诚可贵，删除需谨慎！
    </div>
	<div class="modal-footer">
	<input type="submit" class="button" value="删除">
	    <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>