caipin 6 anni fa
parent
commit
5a79ab9270

+ 7 - 6
protected/controller/ReceiptExtendController.php

@@ -2664,8 +2664,9 @@ class ReceiptExtendController extends DooController {
     	$cidIn = $this->get_args ( 'cidIn' ) ? $this->get_args ( 'cidIn' ) : '12,10,9';
     	$year=2019; //= $this->get_args ( 'year' ) ? $this->get_args ( 'year' ) : date('Y');
     	
+    	
+    	$sectionHtml='';
     	if(!empty($cidIn)){
-    		
     		Doo::loadModel ( 'receiptDetail' );
     		$receiptDetail = new receiptDetail ();
     		Doo::loadModel ( 'accountItem' );
@@ -2704,17 +2705,17 @@ class ReceiptExtendController extends DooController {
     		}
     		
     		//构建栏目展示Html
-    		$sectionHtml='';
+    		
     		foreach ($aiAllList as $key=>$value){ 
-    			$sectionHtml.='<th colspan="'.count($value[$key]).'">'.$key.'</th>';
+    			$sectionHtml.='<th colspan="'.count($value).'">'.$key.'</th>';
     		}
     		
-    		print_r($aiAllList);
-    		print_r($sectionHtml);
+    		//print_r($aiAllList);
+    		//print_r($sectionHtml);
     	}
     	
     	
-    	
+    	$data['sectionHtml']=$sectionHtml;
     	
     	$data ['memu'] = "receipt";
     	$data ['staff'] = $this->staff;

+ 1 - 0
protected/view/receipt/receiptSummaryStatisticsByAgency.html

@@ -42,6 +42,7 @@
 								<th class="taC" colspan="56">支出</th>
 								</tr>
 								<tr>
+								{{sectionHtml}}
 								<th colspan="22">日常相关费用</th>
 								<th colspan="6">差旅相关费用</th>
 								<th colspan="8">内部培训费用</th>