<!-- 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">
					<ul>
						<!-- include 'invoiceMenu' -->
					</ul>
				</div>
			</div>
			<div class="adminContent autoHeight">
                <div class="borad-menu">
                </div>
                <div class="borad-news">
                    <div class="saeaList">
                        <div class="clearfix">
                        	
                            <legend><div class="fR"><a href="/invoiceApprovalAchieve">查看更多</a></div>待审批开票</legend>
                            <!-- if !empty({{invoiceList}}) -->
                            <table class="table table-bordered table-condensed">
                                <tbody>
                                <tr><th class="taC">开票流水号</th><th class="taC">开票单位（抬头）</th><th class="taC">开票金额</th><th class="taC">提交开票</th><th class="taC">上一位审批</th><th class="taC" width="120">操作</th></tr>
                                <!-- loop invoiceList -->
                                <tr>
                                    <td><a href="#invdetail" node-invoice='INFO' data-isKey="{{invoiceList' value.iidKey}}" data-toggle="modal">{{invoiceList' value.invoiceSerial}}</a></td>
                                    <td>
                                    <!-- if !empty({{invoiceList' value.invoiceType}}) -->
                                   	{{invoiceList' value.invoiceCompany}}
                                    <!-- else -->
                                    {{invoiceList' value.invoiceTitle}}
                                    <!-- endif -->
                                    </td>
                                    <td>
                                    <!-- if !empty({{invoiceList' value.invoiceType}}) -->
                                    <b>￥{{invoiceList' value.invoicePrice}}</b><sup>专</sup>
                                    <!-- else -->
                                    <b>￥{{invoiceList' value.invoicePrice}}</b>
                                    <!-- endif -->
                                    </td>
                                    <td>{{invoiceList' value.categoryName}}{{invoiceList' value.userName}} {{invoiceList' value.date}}</td>
                                    <td>{{invoiceList' value.lastApprover.username}}&nbsp;{{invoiceList' value.lastApprover.date}}</td>
                                    <td><a class="button btn-block" href="/invoiceDetail/{{invoiceList' vlaue.iidKey}}.html" >审批开票</a></td>
                                </tr>
                                <!-- endloop -->
                                
                                </tbody>
                            </table>
                            <!-- else -->
                            <blockquote><p class="colGray">暂时没有需要审批的开票</p></blockquote>
                            <!-- endif -->
                        </div>
                        
                        <div class="clearfix">
                        	
                            <legend><div class="fR"><a href="/invoiceApprovalAchieve">查看更多</a></div>最近审批完成</legend>
                            <!-- if !empty({{ilist}}) -->
                            <table class="table table-bordered table-condensed">
                                <tbody>
                                <tr><th class="taC">开票流水号</th><th class="taC">开票单位（抬头）</th><th class="taC">开票金额</th><th class="taC">提交开票</th><th class="taC">完成审批</th></tr>
                                <!-- loop ilist -->
                                <tr>
                                    <td><a href="#invdetail" node-invoice='INFO' data-isKey="{{pendingInvoice' value.iidKeyK}}" data-toggle="modal">{{ilist' value.invoiceSerial}}</a></td>
                                    <td>
										<!-- if !empty({{ilist' value.invoiceType}}) -->
	                                   	{{ilist' value.invoiceCompany}}
	                                    <!-- else -->
	                                    {{ilist' value.invoiceTitle}}
	                                    <!-- endif -->
									</td>
                                    <td>
									<!-- if !empty({{ilist' value.invoiceType}}) -->
	                                    <b>￥{{ilist' value.invoicePrice}}</b><sup>专</sup>
	                                    <!-- else -->
	                                    <b>￥{{ilist' value.invoicePrice}}</b>
	                                    <!-- endif -->
									</td>
                                    <td>{{ilist' value.categoryName}} {{ilist' value.userName}} {{ilist' value.date}}</td>
                                    <td>
                                    <!-- if {{ilist' value.operationLog.status}}==2 -->
                                    <span class="colGreen">同意</span> 
                                   <!-- elseif {{ilist' value.operationLog.status}}==3 -->
                                   <span class="colOrange">退回</span>
                                   <!-- elseif {{ilist' value.operationLog.status}}==4 -->
                                   <span class="colRed">终止</span>
                                   <!-- endif -->
                                    	{{ilist' value.lastApprover.username}} {{ilist' value.operationLog.date}}</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>    	
<script type="text/javascript">autoFlashHeight();</script>	
</body>