<!-- include 'header' -->
<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">
				</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>￥{{isMonth.statisticsMonth.0.invoicePrice}}</td>
									<th class="taC">本月累计入账</th><td>￥{{isMonth.statisticsMonth.0.accountPrice}}</td></tr>
									{{htm}}
									<tr><th class="taC">今年累计开票</th><td>￥{{isMonth.statisticsYear.0.invoicePrice}}</td>
									<th class="taC">今年累计入账</th><td>￥{{isMonth.statisticsYear.0.accountPrice}}</td></tr>
								</tbody>

							</table>
						</div>
						
						
						
						
						
						
						<div class="clearfix">
							
							<legend><div class="fR"></div>待入账</legend>
							<!-- if !empty({{list.myClaim}}) -->
							<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>
								
								</tr>
								<!-- loop list.myClaim -->
								<tr>
									<td><b>￥{{myClaim' value.receivablesPrice}}</b></td>
									<td>{{myClaim' value.receivablesMessage}}</td>
									<td>{{myClaim' value.receivablesDate}}</td>
									<td>
									<!-- if {{myClaim' value.source}}==0 -->
									{{myClaim' value.inputStaff}} 转入 {{myClaim' value.date}}
									<!-- else -->
									{{myClaim' value.username}} 认领  {{myClaim' value.confirmTime}}
									<!-- endif -->
									</td>
									<!-- 废弃
									<td width="">
<a class="button btn-green  btn-block" data-key="{{myClaim' value.iidKey}}" node-recording="true" href="#recorded" data-toggle="modal">收款入账</a>
									</td>
									 -->
								</tr>
								<!-- endloop -->
								
								</tbody>
							</table>
							<!-- else -->
							<blockquote><p class="colGray">暂时没有需要处理的收款</p></blockquote>
							<!-- endif -->
						</div>
						<div class="clearfix">
							
							<legend><div class="fR"><a href="/invoiceReceivablesAchieve">查看更多</a></div>最近入账</legend>
							<!-- if !empty({{list.bindClaim}}) -->
							<table class="table table-bordered table-condensed">
								<tbody>
								<tr><th class="taC">银行到账信息</th><th class="taC" width="90">收款金额</th><th class="taC">收款流水号</th><th class="taC" width="90">开票金额</th><th class="taC">开票流水号</th><th class="taC">入账时间</th></tr>
								<!-- loop list.bindClaim -->
								<tr>
									<td>{{bindClaim' value.receivablesMessage}}</td>
									<td><b>￥{{bindClaim' value.receivablesPrice}}</b></td>
									<td><a href="#billing" node-invoice='INFO' data-type="receivables" data-isKey="{{receivablesList' value.iridKeyUrl}}" data-toggle="modal">{{bindClaim' value.receivablesSerial}}</a></td>
									<td><b>￥{{bindClaim' value.invoice.invoicePrice}}</b></td>
									<td><a href="#invdetail" node-invoice='INFO' data-isKey="{{receivablesList' value.invoice.iidKeyUrl}}"  data-toggle="modal">{{bindClaim' value.invoice.invoiceSerial}}</a></td>
									<td>{{bindClaim' value.bindDate}}</td>
								</tr>
								<!-- endloop -->
								
								</tbody>
							</table>
							<!-- else -->
							<blockquote><p class="colGray">暂时没有入账完成的收款</p></blockquote>
							<!-- endif -->
						</div>
					</div>
				</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  fade" id="billing">
		<div id="nr"></div>
	</div>
	<!--弹出入账
	<div class="modal hide fade" id="recorded">
		<form action="/invoiceBindReceivables" method="post" >
		<input type="hidden" name="key" value="">
		<input type="hidden" name="invoiceKey" value="">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-header">
					<h3>收款入账</h3>
				</div>
				<div class="modal-body">
					<p class="alert alert-block">收款与发票进行绑定，完成入账；已绑定收款的发票，进行核销，核销金额将作为你的最终销售收入。</p>
					<table class="table table-bordered table-condensed">
						<thead><th>开票内容</th><th>开票金额</th><th>发票类型</th><th>单位/抬头</th><th>入账操作</th></thead>
						<tbody data-invoice="myClaim">
						<tr><td>loading</td></tr>
						
						</tbody>
					</table>
					<p node-msg="true" class="alert alert-erro hide">loading</p>
				</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>