<!-- 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">
				<div class="borad-menu">
					<a href="#inputbill" data-toggle="modal" class="invoice">录入收款</a>
				</div>
				
				
				<div class="borad-news">
					<div class="saeaList">
					
						<div class="clearfix">
							<legend><div class="fR"><a href="/invoiceReceivablesAS/1/Unclaimed/{{year}}/All/">查看所有</a></div>未入账发票</legend>
							<div class="input-append">
							<form action="/invoiceReceivables" id="ira" method="post">
									<input name="invoiceTC" class="datepicker-here span6" placeholder="输入开票单位查询" data-range="true" data-multiple-dates-separator=" - " data-language="zh" type="text">
									
								<input type="submit" value="查询" class="btn btn-small">
									
							</form>
							</div>
							<table class="table table-bordered table-condensed">
								<thead><tr><th>开票单位（抬头）</th><th>开票金额</th><th>提交开票</th><th>出票</th><th>开票流水号</th><th width="80">入账</th></tr></thead>
								<tbody>
								<!-- loop invoiceUnAccount -->
									<tr>
									<td><!-- if !empty({{invoiceUnAccount' value.invoiceType}}) -->
	                                   	{{invoiceUnAccount' value.invoiceCompany}}
	                                    <!-- else -->
	                                    {{invoiceUnAccount' value.invoiceTitle}}
	                                    <!-- endif -->
	                                    </td>
									<td>
										<!-- if !empty({{invoiceUnAccount' value.invoiceType}}) -->
	                                    <b>￥{{invoiceUnAccount' value.invoicePrice}}</b><sup>专</sup>
	                                    <!-- else -->
	                                    <b>￥{{invoiceUnAccount' value.invoicePrice}}</b>
	                                    <!-- endif -->
									</td>
									<td>{{invoiceUnAccount' value.categoryName}}{{invoiceUnAccount' value.userName}} {{invoiceUnAccount' value.date}}</td>
									<td>{{invoiceUnAccount' value.lastApprover.username}}&nbsp;{{invoiceUnAccount' value.printTime}}</td>
									<td>
									<a href="#invdetail" node-invoice='INFO' data-isKey="{{invoiceUnAccount' value.iidKeyUrl}}" data-toggle="modal">{{invoiceUnAccount' value.invoiceSerial}}</a>
									</td>
									<td><a class="button btn-block" href="#recorded" node-invoiceReceivables='INFO' data-isKey="{{invoiceUnAccount' value.iidKeyUrl}}" data-toggle="modal">入账</a></td>
									</tr>
									<!-- endloop -->
								</tbody>
							</table>
						</div>
					
					
					
					<div class="clearfix">
							<legend><div class="fR"><a href="/invoiceReceivablesAS/1/Unclaimed/{{year}}/All/">查看所有</a></div>最近认领&amp;录入</legend>
							<table class="table table-bordered table-condensed">
								<tbody>
								<tr><th class="taC" width="70">收款金额</th><th class="taC">银行到帐信息</th><th class="taC">银行/到帐时间</th><th class="taC">收款录入</th><th class="taC">收款认领</th><th class="taC">开票单位</th><th class="taC" width="80">绑定发票</th></tr>
								<tr>
									<td><b>￥3000.00</b></td>
									<td>张宇</td>
									<td>广发银行珠海分行柠溪支行<br>2016-03-03</td>
									<td>张少珊 2016-03-03<br>公共待认领款项</td>
									<td>总部-陈特<br>2016-03-03</td>
									<td>珠海XXX公司</td>
									<td><a class="button btn-block" href="#search-invoice" data-toggle="modal">查询发票</a></td>
								</tr>
								<tr>
									<td><b>￥3000.00</b></td>
									<td>张宇</td>
									<td>广发银行珠海分行柠溪支行<br>2016-03-03</td>
									<td>张少珊 2016-03-03<br>公共待认领款项</td>
									<td>广东办-刘飞<br>2016-03-0</td>
									<td>珠海XXX公司</td>
									<td><a class="button btn-block" href="#search-invoice" data-toggle="modal">查询发票</a></td>
								</tr>
								<tr>
									<td><b>￥3000.00</b></td>
									<td>张宇</td>
									<td>广发银行珠海分行柠溪支行<br>2016-03-03</td>
									<td>张少珊 2016-03-03<br>公共待认领款项</td>
									<td> </td>
									<td> </td>
									<td></td>
								</tr>
								<tr>
									<td><b>￥3000.00</b></td>
									<td>张宇</td>
									<td>广发银行珠海分行柠溪支行<br>2016-03-03</td>
									<td>张少珊 2016-03-03<br>办事处待认领款项</td>
									<td>广东办-刘飞<br>2016-03-03</td>
									<td>珠海XXX公司</td>
									<td><a class="button btn-block" href="#search-invoice" data-toggle="modal">查询发票</a></td>
								</tr>
								</tbody>
							</table>
							<blockquote><p class="colGray">暂时没有已认领的收款</p></blockquote>
						</div>
					
					
						<div class="clearfix">
							<!-- if !empty({{receivablesList}}) -->
							<legend><div class="fR"><a href="/invoiceReceivablesAS">查看更多</a></div>最近入账</legend>
							<table class="table table-bordered table-condensed">
								<tbody>
								<tr><th class="taC" width="70">收款金额</th><th class="taC">银行到帐信息</th><th class="taC">银行/到帐时间</th><th class="taC">收款录入</th><th class="taC">收款认领</th></tr>
								<!-- loop receivablesList -->
								<tr>
									<td><b>￥{{receivablesList' value.receivablesPrice}}</b></td>
									<td>{{receivablesList' value.receivablesMessage}}</td>
									<td>{{receivablesList' value.receivablesBank}} {{receivablesList' value.receivablesDate}}</td>
									<td>{{receivablesList' value.inputStaff}} {{receivablesList' value.date}}</td>
									<td>{{receivablesList' value.invoiceROLog.operation}} {{receivablesList' value.invoiceROLog.date}}</td>
								</tr>
								<!-- endloop -->
								
								</tbody>
							</table>
							<!-- else -->
							<blockquote><p class="colGray">暂时没有已认领的收款</p></blockquote>
							<!-- endif -->
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

<!--弹出（发票详情）-->
	<div class="modal  fade" id="invdetail">
		
		<div id="nc"></div>
	</div>
	<!--弹出发票详情-->
	
	
	
	<div class="modal hide fade" id="recorded">
	<div class="modal-dialog modal-lg">
		<div class="modal-content">
		
		<form action="/invoiceCompareClaimPrice" method="post" name="receivablesInvoice">
			<input type="hidden" name="iidKey" id="inKey" value="">
			<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  name="receivablesPrice" placeholder="输入开票金额" pattern="[0-9]" min="0" step="0.01" type="number"></td>
					</tr>
					<tr>
						<th class="taC">收款信息</th><td><input type="text" name="receivablesMessage"  ></td>
					</tr>
					<tr>
						<th class="taC">收款银行</th><td>
						<select name="receivablesBank">
								<option>广发银行珠海分行柠溪支行</option>
							</select>
							</td>
					</tr>
					<tr>
						<th class="taC">银行到帐时间</th><td><input name="receivablesDate"  type="date"></td>
					</tr>
					</tbody>
				</table>
				
				
				<div id="irtc"></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>
			
		</form>
			
		</div>
	</div>
</div>
	
	
	
	
	
	<!--弹出（录入收款）-->
	<div class="modal hide fade" id="inputbill">
	<form action="/invoiceReceivablesDo" method="post" name="receivablesInvoice">
		<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">
								<option>广发银行珠海分行柠溪支行</option>
							</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" >
								<option post-data="PUBLIC" value="PUBLIC" >公共待认领款项</option>
								<!-- loop category -->
								<option <!-- if {{category' value.cid}} == {{staff.0.cid}}  --> selected <!-- endif --> post-data="{{category' value.cid}}" value="{{category' value.cid}}:{{category' value.title}}" >{{category' value.title}}</option>
								<!-- endloop -->
							</select>

							<select name="receivablesStaff">
							<option value="PUBLIC">办事处待认领款项</option>
								<!-- loop staffList -->
								<option value="{{staffList' value.sid}}-{{staffList' value.username}}">{{staffList' value.category}}-{{staffList' value.username}}</option>
								<!-- endloop -->
							</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>
	<!--弹出内容-->
<script type="text/javascript">autoFlashHeight();</script>	
</body>