caipin 8 anni fa
parent
commit
129168d59b

+ 13 - 5
global/css/global.css

@@ -1136,6 +1136,12 @@ border-color: #d6e9c6;
   left:1px;
   top:1px;
 }
+.centerRecord .mostList li.select{
+  padding:0
+}
+.centerRecord .mostList li.select select{
+  margin:10px 0 0 20px
+}
 .infoCenter .dateList {
   overflow: hidden;
   overflow-y:auto;
@@ -1923,7 +1929,7 @@ a.new-ribbon:before{
   min-height:400px
 }
 .saeaList .seTable{
-  margin:0 25% 0 0;
+  margin:0 0 0 25.1%;
 }
 .saeaList .seTable .sFile{
   margin: 0 5px 5px 0;
@@ -2033,7 +2039,7 @@ table .taC{
 }
 .saeaList .seCensor {
   position: absolute;
-  right:0;
+  right:left;
   top:0;
   width:25%;
   height:100%;
@@ -2269,9 +2275,7 @@ table .taC{
 }
 .seCensor .reportButton {
   width:100%;
-  position: absolute;
-  bottom: 0;
-  right:0;
+  margin:2px 0;
 }
 .seCensor .reportButton button{
   border:none;
@@ -2286,6 +2290,8 @@ table .taC{
 }
 .reportButton a.buttonDone,.reportButton button.buttonDone{
   background:#7ea85c;
+  font-size: 16px;
+  margin-bottom: 2px
 }
 .reportButton a.buttonDone:hover,.reportButton button.buttonDone:hover{
   background:#4f8e08
@@ -2295,6 +2301,7 @@ table .taC{
 }
 .reportButton a.buttonUndone{
   background:#ce5e5e;
+  padding: 3px 0
 }
 .reportButton a.buttonUndone:hover{
   background:#c01010;
@@ -2304,6 +2311,7 @@ table .taC{
 }
 .reportButton a.buttonBack{
   background:#ffa132;
+  padding: 3px 0
 }
 .reportButton a.buttonBack:hover{
   background:#ff8a00;

+ 4 - 2
protected/config/acl.conf.php

@@ -49,14 +49,16 @@ $acl ['发票打印'] ['allow'] = array (
 		'InvoiceController' => array (
 				'invoicePrint',
 				'invoicePrintDetail',
-				'invoicePrintDo'
+				'invoicePrintDo',
+				'invoiceTAchieve'
 		) 
 );
 $acl ['发票邮寄'] ['allow'] = array (
 		'InvoiceController' => array (
 				'invoicePost',
 				'ajaxGetInvoicePostDetail',
-				'invoiceExpressAddDo'
+				'invoiceExpressAddDo',
+				'invoiceTAchieve'
 		) 
 );
 $acl ['发票退票'] ['allow'] = array (

+ 10 - 0
protected/config/routes.conf.php

@@ -397,12 +397,22 @@ $route['*']['/invoicePrint'] = array('InvoiceController', 'invoicePrint');
 $route['*']['/invoicePrintDetail/:iid'] = array('InvoiceController', 'invoicePrintDetail','extension'=>'.html');
 $route['*']['/invoicePrintDo'] = array('InvoiceController', 'invoicePrintDo');
 
+$route['get']['/invoicePrintAchieve'] = array('InvoiceController', 'invoiceTAchieve');
+$route['get']['/invoicePrintAchieve/:page'] = array('InvoiceController', 'invoiceTAchieve');
+$route['get']['/invoicePrintAchieve/:page/:date'] = array('InvoiceController', 'invoiceTAchieve');
+$route['get']['/invoicePrintAchieve/:page/:date/:MebSea'] = array('InvoiceController', 'invoiceTAchieve');
 
 //发票邮寄
 $route['*']['/invoicePost'] = array('InvoiceController', 'invoicePost');
 $route['*']['/invoiceExpressAddDo'] = array('InvoiceController', 'invoiceExpressAddDo');
 $route['post']['/ajaxGetInvoicePostDetail'] = array('InvoiceController', 'ajaxGetInvoicePostDetail');
 
+$route['get']['/invoicePostAchieve'] = array('InvoiceController', 'invoiceTAchieve');
+$route['get']['/invoicePostAchieve/:page'] = array('InvoiceController', 'invoiceTAchieve');
+$route['get']['/invoicePostAchieve/:page/:date'] = array('InvoiceController', 'invoiceTAchieve');
+$route['get']['/invoicePostAchieve/:page/:date/:MebSea'] = array('InvoiceController', 'invoiceTAchieve');
+
+
 //发票退票
 $route['get']['/invoiceUntread'] = array('InvoiceController', 'invoiceUntread');
 $route['post']['/invoiceUntreadEstablishedDo'] = array('InvoiceController', 'invoiceUntreadEstablishedDo');

+ 90 - 12
protected/controller/InvoiceController.php

@@ -13,6 +13,8 @@ class InvoiceController extends DooController {
 	public $data;
 	private $INVOICEKEY = "APPROVAL";
 	private $INVOICECOLLECTPATH = "protected/cache/invoiceCollect/";
+	private $ACTION='';
+	
 	public function beforeRun($resource, $action) {
 		Doo::loadModel ( "invoiceManage" );
 		$invoiceManage = new invoiceManage ();
@@ -54,20 +56,10 @@ class InvoiceController extends DooController {
 				Doo::loadModel ( 'staff' );
 				$staff = new staff ();
 				
-				// $invoiceManage
-				
-				// $uname = $this->auth->getUname();
-				// if ($uname) {
-				// $uGroups = $this->users->getUidByname($this->auth->getUname());
-				// } else {
-				// $uGroups['groups'] = 'anonymous';
-				// }
-				// $falg = Doo::acl()->isAllowed($uGroups['groups'], $resource, $action);
-				// if (!$falg)
-				// return Doo::conf()->APP_URL;
+				$uriPartsOrig = explode('/', $_SERVER['REQUEST_URI']);
+				$this->ACTION=$uriPartsOrig[1];
 				
 				$this->data ['new'] = $this->isInvoiceNew ();
-				
 				$this->staff = $staff->getUserByIdList ( $_COOKIE ["staff"] );
 				return "/";
 			}
@@ -1935,6 +1927,92 @@ class InvoiceController extends DooController {
 		$this->render ( "/admin/invoiceApprovalAchieve", $this->data );
 	}
 	
+	function invoiceTAchieve() {
+		Doo::loadModel ( 'invoice' );
+		$invoice = new invoice ();
+		Doo::loadClass ( 'XDeode' );
+		$XDeode = new XDeode ( 5 );
+		Doo::loadModel ( 'staff' );
+		$staff = new staff ();
+		
+		$MebSea = isset ( $this->params ['MebSea'] ) ? urldecode ( $this->params ['MebSea'] ) : '';
+	
+		$page_size = 2;
+		$page = isset ( $this->params ['page'] ) && is_numeric ( $this->params ['page'] ) ? $this->params ['page'] : 1;
+		$date = isset ( $this->params ['date'] ) ? $this->params ['date'] : 'MONTHO';
+	
+		$get = "/" . $date;
+	
+		$con = '';
+		if ($date == 'MONTHO')
+			$con = ' and updateTime>DATE_SUB(CURDATE(), INTERVAL 1 MONTH)';
+			elseif ($date == 'MONTHT')
+			$con = ' and updateTime>DATE_SUB(CURDATE(), INTERVAL 3 MONTH)';
+			elseif ($date == 'MONTHY')
+			$con = ' and updateTime>DATE_SUB(CURDATE(), INTERVAL 1 YEAR)';
+	
+			if (! empty ( $MebSea )) {
+				$con .= ' and ( invoiceTitle like "%' . $MebSea . '%" or invoiceCompany like "%' . $MebSea . '%" or invoicePrice like "%' . $MebSea . '%" )';
+				$get .= "/" . $MebSea;
+			}
+			$pageinfo ['page'] = array (
+					'previous' => ''
+			);
+			
+			$sql="";$action="";
+			if ($this->ACTION=='invoicePrintAchieve'){
+				$sql = "status=2 and printStatus=1 and moldManage like '%[\"" . $this->staff [0] ['sid'] . "\",%'". $con;
+				$action="invoicePrintAchieve";
+			}elseif ($this->ACTION=='invoicePostAchieve'){
+				// and untreadStatus=0
+				$sql = "postStatus=1 and doPost=1 and status=2 and isDelete=0". $con;
+				$action="invoicePostAchieve";
+			}
+			
+			$pageinfo = $this->get_page ( "CLD_invoice", $sql, $page, $page_size, $action, $get, "" );
+			$limit = $pageinfo ['lower'] . ',' . $page_size;
+			$list = $invoice->getInvoiceByUntreadStatusPage ( $limit, $sql );
+			
+			$this->data ['MebSeaEn'] = $MebSea;
+			$this->data ['MebSea'] = urlencode ( $MebSea );
+			$this->data ['get'] = $get;
+			$this->data ['page'] = $pageinfo;
+			
+			$this->data ['date'] = $date;
+	
+			$this->data ['memu'] = "invoice";
+			$this->data ['staff'] = $this->staff;
+			
+			if ($this->ACTION=='invoicePrintAchieve'){
+				foreach ( $list as $key => $value ) {
+					$list [$key] ['iidKey'] = $XDeode->encode ( $value ['iid'] );
+			
+					$lastApprover = json_decode ( $value ['processApprovals'], true );
+					if (! empty ( $lastApprover )) {
+						$lastApproverKey = array_keys ( $lastApprover );
+						$lastApprover = end ( $lastApprover );
+			
+						$staffDetail = $staff->getOne ( array (
+								'where' => 'sid=' . end ( $lastApproverKey ),
+								'asArray' => true
+						) );
+						$lastApprover ['username'] = $staffDetail ['username'];
+					}
+					$list [$key] ['lastApprover'] = $lastApprover;
+				}
+				$this->data ['receiptMemu'] = 'invoicePrint';
+				$this->data ['list'] = $list;
+				$this->render ( "/admin/invoicePrintAchieve", $this->data );
+			}elseif ($this->ACTION=='invoicePostAchieve'){
+			
+				$this->data ['receiptMemu'] = 'invoicePost';
+				$this->data ['list'] = $list;
+				$this->render ( "/admin/invoicePostAchieve", $this->data );
+			}
+			
+			
+	}
+	
 	/**
 	 * 获得与我有关可收款的发票
 	 */

+ 2 - 1
protected/model/invoice.php

@@ -434,7 +434,7 @@ class invoice extends DooModel {
 		Doo::loadClass ( 'XDeode' );
 		$XDeode = new XDeode ( 5 );
 		$list = $this->find ( array (
-				'where' => "postStatus=" . $postStatus . " and doPost=1 and status=2",
+				'where' => "postStatus=" . $postStatus . " and doPost=1 and status=2 and isDelete=0",
 				'asArray' => TRUE 
 		) );
 		foreach ( $list as $key => $value ) {
@@ -534,6 +534,7 @@ class invoice extends DooModel {
 		
 		
 		foreach ( $list as $key => $value ) {
+			$list [$key] ['iidKey'] = $this->authcode ( $value ['iid'], '' );
 			$list [$key] ['iidKeyK'] = $XDeode->encode ( $value ['iid'] );
 			$list [$key] ['irList'] = $invoiceReceivables->getInvoiceReceivablesInIridString ( $value ['irid'] );
 			$list [$key] ['operationLog'] = $invoiceOperationLog->getInvoiceOperationLogByIid( $value ['iid'], 'desc' );

+ 2 - 29
protected/view/admin/invoicePost.html

@@ -75,7 +75,7 @@
 						<div class="clearfix">
 							<legend>
 								<div class="fR">
-									<a href="invoice-shipping-all.html">查看更多</a>
+									<a href="/invoicePostAchieve">查看更多</a>
 								</div>
 								最近邮寄发票
 							</legend>
@@ -250,34 +250,7 @@
 							</tr>
 						</tbody>
 					</table>
-					<table style="display:none" class="table table-bordered table-condensed">
-						<tbody>
-							<tr>
-								<th class="taC">快递跟踪</th>
-							</tr>
-							<tr>
-								<td class="taC">
-									<blockquote>
-										<p>
-											<span class="colGray">2016-11-22 周二 15:40:53</span>&nbsp;您的包裹已出库
-										</p>
-									</blockquote>
-									<blockquote>
-										<p>
-											<span class="colGray">2016-11-22 周二 15:40:53</span>&nbsp;包裹正在等待揽收
-										</p>
-									</blockquote>
-									<blockquote>
-										<p>
-											<span class="colGray">2016-11-21 周一 18:04:23</span>&nbsp;[泰州市]申通快递
-											兴化恒通婴儿用品公司收件员 已揽件
-										</p>
-									</blockquote>
-
-								</td>
-							</tr>
-						</tbody>
-					</table>
+					
 				</div>
 				<div class="modal-footer">
 					<a href="#" class="button btn-gray" data-dismiss="modal"

+ 246 - 0
protected/view/admin/invoicePostAchieve.html

@@ -0,0 +1,246 @@
+<!-- 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">
+				<legend>
+					已打印发票
+				</legend>
+				<div class="demandCate">
+					<ul class="cateList">
+						<li><a <!-- if {{date}}=='MONTHO' --> class="now" <!-- endif --> href="/invoicePostAchieve/1/MONTHO/{{MebSea}}">最近一个月</a>
+	  					<a <!-- if {{date}}=='MONTHT' --> class="now" <!-- endif --> href="/invoicePostAchieve/1/MONTHT/{{MebSea}}">最近三个月</a>
+	  					<a <!-- if {{date}}=='MONTHY' --> class="now" <!-- endif --> href="/invoicePostAchieve/1/MONTHY/{{MebSea}}" >今年</a>
+	  					<a <!-- if {{date}}=='MONTHA' --> class="now" <!-- endif --> href="/invoicePostAchieve/1/MONTHA/{{MebSea}}" >更旧</a></li>
+						<li>
+							<div class="search">
+								<div class="input-append">
+									<form action="/invoicePostAchieve/1/{{date}}" id="ira" method="get" >
+								<input class="span3" type="text"  data-irmMebSea value="{{MebSeaEn}}" placeholder="发票抬头、开票金额">
+								<button class="btn btn-small" node-iramMebSea type="button">搜索</button>
+								</form>
+								</div>
+							</div></li>
+					</ul>
+				</div>
+				<div class="saeaList">
+					<table class="table table-hover">
+						<tbody>
+						<tr class="thead"><th>开票流水号</th><th>开票单位(抬头)</th><th>开票金额</th><th>提交开票</th><th>快递信息</th><th>邮寄发票</th><th>操作</th></tr>
+						
+						<!-- loop list -->
+						<tr>
+							<td><a href="#invdetail" node-invoice='INFO' data-isKey="{{pendingInvoice' value.iidKeyK}}" data-toggle="modal">{{list' value.invoiceSerial}}</a></td>
+							<td><!-- if !empty({{list' value.invoiceType}}) -->
+	                                   	{{list' value.invoiceCompany}}
+	                                    <!-- else -->
+	                                    {{list' value.invoiceTitle}}
+	                                    <!-- endif --></td>
+							<td>
+							<!-- if !empty({{list' value.invoiceType}}) -->
+	                        <b>¥{{list' value.invoicePrice}}</b><sup>专</sup>
+	                          <!-- else -->
+	                          <b>¥{{list' value.invoicePrice}}</b>
+	                          <!-- endif -->
+							</td>
+							
+							<td>{{list' value.categoryName}}{{list' value.userName}} {{list' value.date}}</td>
+							<td>{{invoiceList' value.expressCompany}}:
+							<a href="#shipping" node-post="express-msg" post-data="{{invoicePost' value.iidKey}}" data-toggle="modal">{{invoiceList' value.expressNumber}}</a></td>
+										<td>{{invoiceList' value.poster}} {{invoiceList' value.postTime}}</td>
+							<td></td>
+						</tr>
+						<!-- endloop -->
+						
+						<tr>
+							<td><a href="#invdetail" data-toggle="modal">#F20160316001</a></td>
+							<td>珠海XXXX公司</td>
+							<td><b>¥3000.00</b></td>
+							<td>广东办刘飞 2016-03-03 12:20:20</td>
+							<td>顺丰速运:<a href="#shipping" data-toggle="modal">01239812382398</a></td>
+							<td>赵淑燕 2016-03-03 12:20:20</td>
+							<td><a href="#editshipping" data-toggle="modal">修改邮寄</a></td>
+						</tr>
+						<tr>
+							<td><a href="#invdetail" data-toggle="modal">#F20160316001</a></td>
+							<td>珠海XXXX公司</td>
+							<td><b>¥3000.00</b><sup>专</sup></td>
+							<td>广东办刘飞 2016-03-03 12:20:20</td>
+							<td>顺丰速运:<a href="#shipping" data-toggle="modal">01239812382398</a></td>
+							<td>赵淑燕 2016-03-03 12:20:20</td>
+							<td><a href="#editshipping" data-toggle="modal">修改邮寄</a></td>
+						</tr>
+						</tbody>
+					</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="/invoicePostAchieve/{{page.previous}}{{get}}" title="上一页">&lt;</a></li>
+								<!-- endif -->	
+								
+	  							<!-- if {{page.on_page}}>=3 -->
+	  							<li><a href="/invoicePostAchieve/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="/invoicePostAchieve/4{{get}}" >4</a></li>
+	  							<li><a href="/invoicePostAchieve/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="/invoicePostAchieve/{{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="editshipping">
+		<div class="modal-dialog">
+			<div class="modal-content">
+				<div class="modal-header">
+					<h3>邮寄物品</h3>
+				</div>
+				<div class="modal-body saeaList">
+					<div class="alert">
+						已邮寄发票,3天内可修改邮寄信息。
+					</div>
+					<table class="table table-bordered table-condensed">
+						<tbody>
+						<tr>
+							<th colspan="4" class="taC">申请邮寄信息</th>
+						</tr>
+						<tr>
+							<th class="taC" width="100">收件人</th><td>陈工</td>
+							<th class="taC" width="100">收件人手机/电话</th><td>12345678901</td>
+						</tr>
+						<tr>
+							<th class="taC" width="100">收件地址</th><td colspan="3">广东省珠海市XXX路XXX号</td>
+						</tr>
+						<tr>
+							<th class="taC" width="100">邮寄物品</th><td colspan="3">合同x1、锁套装x1</td>
+						</tr>
+						</tbody>
+					</table>
+					<table class="table table-bordered table-condensed">
+						<tbody>
+						<tr>
+							<th colspan="4" class="taC">实际邮寄信息</th>
+						</tr>
+						<tr>
+							<th class="taC" width="100"><span class="colRed">*</span>快递公司</th><td>
+							<select><option>顺丰速运</option><option>圆通速运</option></select></td>
+						</tr>
+						<tr>
+							<th class="taC" width="100"><span class="colRed">*</span>快递单号</th><td><input type="text"></td></tr>
+						<tr>
+							<th class="taC" width="100"><span class="colRed">*</span>邮寄物品</th><td colspan="3"><textarea class="span4"></textarea></td>
+						</tr>
+						</tbody>
+					</table>
+				</div>
+				<div class="modal-footer">
+					<a href="#" class="button" data-dismiss="modal">确定</a>
+					<a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
+				</div>
+			</div></div>
+	</div>
+	<!--编辑-->
+	
+	<!--弹出快递跟踪-->
+	<div class="modal hide fade" id="shipping">
+		<div class="modal-dialog">
+			<div class="modal-content">
+				<div class="modal-header">
+					<h3>邮寄物品</h3>
+				</div>
+				<div class="modal-body saeaList">
+				<div style='text-align: center' loading-msg='express-msg'></div>
+					<table class="table table-bordered table-condensed">
+						<tbody>
+							<tr>
+								<th colspan="4" class="taC">申请邮寄信息</th>
+							</tr>
+							<tr>
+								<th class="taC" width="100">收件人</th>
+								<td recipients-data='express-msg'></td>
+								<th class="taC" width="100">收件人手机/电话</th>
+								<td recipientsPhone-data='express-msg'></td>
+							</tr>
+							<tr>
+								<th class="taC" width="100">收件地址</th>
+								<td recipientsAddress-data='express-msg' colspan="3"></td>
+							</tr>
+							<tr>
+								<th class="taC" width="100">邮寄物品</th>
+								<td mailItems-data='express-msg' colspan="3"></td>
+							</tr>
+						</tbody>
+					</table>
+					<table class="table table-bordered table-condensed">
+						<tbody>
+							<tr>
+								<th colspan="4" class="taC">实际邮寄信息</th>
+							</tr>
+							<tr>
+								<th class="taC" width="100">快递公司</th>
+								<td expressCompany-data='express-msg'></td>
+								<th class="taC" width="100">快递单号</th>
+								<td expressNumber-data='express-msg'></td>
+							</tr>
+							</tr>
+							<tr>
+							<tr>
+								<th class="taC" width="100">邮寄物品</th>
+								<td colspan="3" actualItems-data='express-msg'></td>
+							</tr>
+						</tbody>
+					</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>

+ 1 - 1
protected/view/admin/invoicePrint.html

@@ -63,7 +63,7 @@
 						
 						
 						<div class="clearfix">
-							<legend><div class="fR"><a href="invoice-print-all.html">查看更多</a></div>最近打印发票</legend>
+							<legend><div class="fR"><a href="/invoicePrintAchieve">查看更多</a></div>最近打印发票</legend>
 							<!-- if !empty({{printed}}) -->
 							<table class="table table-bordered table-condensed">
 								<tbody>

+ 119 - 0
protected/view/admin/invoicePrintAchieve.html

@@ -0,0 +1,119 @@
+<!-- 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">
+				<legend>
+					已打印发票
+				</legend>
+				<div class="demandCate">
+					<ul class="cateList">
+						<li><a <!-- if {{date}}=='MONTHO' --> class="now" <!-- endif --> href="/invoicePrintAchieve/1/MONTHO/{{MebSea}}">最近一个月</a>
+	  					<a <!-- if {{date}}=='MONTHT' --> class="now" <!-- endif --> href="/invoicePrintAchieve/1/MONTHT/{{MebSea}}">最近三个月</a>
+	  					<a <!-- if {{date}}=='MONTHY' --> class="now" <!-- endif --> href="/invoicePrintAchieve/1/MONTHY/{{MebSea}}" >今年</a>
+	  					<a <!-- if {{date}}=='MONTHA' --> class="now" <!-- endif --> href="/invoicePrintAchieve/1/MONTHA/{{MebSea}}" >更旧</a></li>
+						<li>
+							<div class="search">
+								<div class="input-append">
+									<form action="/invoicePrintAchieve/1/{{date}}" id="ira" method="get" >
+								<input class="span3" type="text"  data-irmMebSea value="{{MebSeaEn}}" placeholder="发票抬头、开票金额">
+								<button class="btn btn-small" node-iramMebSea type="button">搜索</button>
+								</form>
+								</div>
+							</div></li>
+					</ul>
+				</div>
+				<div class="saeaList">
+					<table class="table table-hover">
+						<tbody>
+						<tr class="thead"><th>开票流水号</th><th>开票单位(抬头)</th><th>开票金额</th><th>提交开票</th><th>发票号</th><th>打印发票</th></tr>
+						
+						<!-- loop list -->
+						<tr>
+							<td><a href="#invdetail" node-invoice='INFO' data-isKey="{{pendingInvoice' value.iidKeyK}}" data-toggle="modal">{{list' value.invoiceSerial}}</a></td>
+							<td><!-- if !empty({{list' value.invoiceType}}) -->
+	                                   	{{list' value.invoiceCompany}}
+	                                    <!-- else -->
+	                                    {{list' value.invoiceTitle}}
+	                                    <!-- endif --></td>
+							<td>
+							<!-- if !empty({{list' value.invoiceType}}) -->
+	                        <b>¥{{list' value.invoicePrice}}</b><sup>专</sup>
+	                          <!-- else -->
+	                          <b>¥{{list' value.invoicePrice}}</b>
+	                          <!-- endif -->
+							</td>
+							
+							<td>{{list' value.categoryName}}{{list' value.userName}} {{list' value.date}}</td>
+							<td>
+							  {{invoiceList' value.invoiceNo}}
+							</td>
+							<td>{{invoiceList' value.lastApprover.username}}&nbsp;{{invoiceList' value.printTime}}</td>
+						</tr>
+						<!-- endloop -->
+						
+						
+						</tbody>
+					</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="/invoicePrintAchieve/{{page.previous}}{{get}}" title="上一页">&lt;</a></li>
+								<!-- endif -->	
+								
+	  							<!-- if {{page.on_page}}>=3 -->
+	  							<li><a href="/invoicePrintAchieve/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="/invoicePrintAchieve/4{{get}}" >4</a></li>
+	  							<li><a href="/invoicePrintAchieve/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="/invoicePrintAchieve/{{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>
+	
+<script type="text/javascript">autoFlashHeight();</script>	
+</body>