|  | @@ -2701,9 +2701,7 @@ class ReceiptExtendController extends DooController {
 | 
	
		
			
				|  |  |      		$summaryDateHtml='';
 | 
	
		
			
				|  |  |      		$cglist=$category->getCategoryInCid($cidIn);
 | 
	
		
			
				|  |  |      		foreach ($cglist as $cgk=>$value){
 | 
	
		
			
				|  |  | -    			
 | 
	
		
			
				|  |  |      			//办事处每月数据展示
 | 
	
		
			
				|  |  | -    			
 | 
	
		
			
				|  |  |      			for($month=1;$month<=12;$month++){
 | 
	
		
			
				|  |  |      				$summaryDateHtml.='<tr>';
 | 
	
		
			
				|  |  |      				$summaryDateHtml.='<th>'.$value['title'].$month.'月合计</th>
 | 
	
	
		
			
				|  | @@ -2716,26 +2714,36 @@ class ReceiptExtendController extends DooController {
 | 
	
		
			
				|  |  |      				
 | 
	
		
			
				|  |  |      				$itemHtml='';
 | 
	
		
			
				|  |  |      				if(isset($dataSummary[$value['cid']])){
 | 
	
		
			
				|  |  | -    					foreach ($aiAllList as $aiak=>$aiav){
 | 
	
		
			
				|  |  | -    						$falg=true;    						
 | 
	
		
			
				|  |  | -    						foreach ($dataSummary[$value['cid']][$month][$aiak] as $dsk=>$dsv){
 | 
	
		
			
				|  |  | -    							if($dsv['item']==$aiav['name']){
 | 
	
		
			
				|  |  | -    								$itemHtml.='<td class="taR">'.$dsv['price'].'</td>';
 | 
	
		
			
				|  |  | -    								$falg=false;  
 | 
	
		
			
				|  |  | -    								break;
 | 
	
		
			
				|  |  | +    					foreach ($aiAllList as $aiak=>$aiav){//总项目
 | 
	
		
			
				|  |  | +    						
 | 
	
		
			
				|  |  | +    						foreach ($aiav as $k=>$v){//项目细则
 | 
	
		
			
				|  |  | +    							$falg=true;
 | 
	
		
			
				|  |  | +    							$tempHtml='';
 | 
	
		
			
				|  |  | +    							foreach ($dataSummary[$value['cid']][$month][$aiak] as $dsk=>$dsv){//数据实体
 | 
	
		
			
				|  |  | +    								if($dsv['item']==$v['name']){
 | 
	
		
			
				|  |  | +    									$tempHtml.='<td class="taR">'.$dsv['price'].'</td>';
 | 
	
		
			
				|  |  | +    									$falg=false;
 | 
	
		
			
				|  |  | +    									break;
 | 
	
		
			
				|  |  | +    								}
 | 
	
		
			
				|  |  | +    							}
 | 
	
		
			
				|  |  | +    							if($falg){
 | 
	
		
			
				|  |  | +    								$tempHtml.='<td class="taR"></td>';
 | 
	
		
			
				|  |  |      							}
 | 
	
		
			
				|  |  |      						}
 | 
	
		
			
				|  |  | -    						if($falg){
 | 
	
		
			
				|  |  | -    							$itemHtml.='<td class="taR"></td>';
 | 
	
		
			
				|  |  | -    						}
 | 
	
		
			
				|  |  | +    						
 | 
	
		
			
				|  |  | +    						$itemHtml.='<td class="taR colRed"></td>';//每个月份 项目金额合计
 | 
	
		
			
				|  |  | +    						$itemHtml.=$tempHtml;//每个月份项目细则金额
 | 
	
		
			
				|  |  | +    						
 | 
	
		
			
				|  |  |      					}
 | 
	
		
			
				|  |  |      				}else{
 | 
	
		
			
				|  |  |      					foreach ($aiAllList as $aiak=>$aiav){
 | 
	
		
			
				|  |  | -    						$itemHtml.='<td class="taR"></td>';
 | 
	
		
			
				|  |  | +    						$itemHtml.='<td class="taR colRed"></td>';
 | 
	
		
			
				|  |  | +    						foreach ($aiav as $k=>$v){
 | 
	
		
			
				|  |  | +    							$itemHtml.='<td class="taR"></td>';
 | 
	
		
			
				|  |  | +    						}
 | 
	
		
			
				|  |  |      					}
 | 
	
		
			
				|  |  |      				}
 | 
	
		
			
				|  |  |      				
 | 
	
		
			
				|  |  | -    				$summaryDateHtml.='<td class="taR colRed"></td>';
 | 
	
		
			
				|  |  |      				$summaryDateHtml.=$itemHtml;
 | 
	
		
			
				|  |  |      				$summaryDateHtml.='</tr>';
 | 
	
		
			
				|  |  |      			}
 |