|
@@ -120,13 +120,36 @@ function _getReceiptSummaryHtml($cglist,$aiAllList,$dataSummary,$year){
|
|
}
|
|
}
|
|
|
|
|
|
//各办事处占比
|
|
//各办事处占比
|
|
-
|
|
|
|
|
|
+ $categoryHtml='';
|
|
|
|
+ foreach ($cglist as $cgk=>$value){
|
|
|
|
+ $categoryProportionHtml='<tr><th>'.$value['title'].'费用占比</th>
|
|
|
|
+ <td class="taR"></td><td class="taR"></td><td class="taR"></td><td class="taR"></td><td class="taR"></td>
|
|
|
|
+ <td class="taR colGreen"></td>';
|
|
|
|
+ foreach ($aiAllList as $aalk=>$aalv){
|
|
|
|
+ //合计占比
|
|
|
|
+ $proportionTotal=$yearPriceArray[$value['cid']][$aalk]/$topYearPrice[$aalk];
|
|
|
|
+ //栏目
|
|
|
|
+ $categoryProportionHtml.='<td class="taR colRed">'.$proportionTotal.'</td>';
|
|
|
|
+ //栏目细则
|
|
|
|
+ foreach ($aalv as $k=>$v){
|
|
|
|
+ //细则占比计算
|
|
|
|
+ $proportionLawsTotal=$yearLawsPriceArray[$value['cid']][$aalk][$v['name']]/$topYearLawsPrice[$aalk][$v['name']];
|
|
|
|
+ $categoryProportionHtml.='<th>'.$proportionLawsTotal.'</th>';
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $categoryProportionHtml.='</tr>';
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ $categoryHtml.=$html[$value['cid']]['total'];
|
|
|
|
+ $categoryHtml.=$categoryProportionHtml;
|
|
|
|
+ $categoryHtml.=$html[$value['cid']]['allMonth'];
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
$topYearTempHtml.='</tr>';
|
|
$topYearTempHtml.='</tr>';
|
|
$topHtml='';
|
|
$topHtml='';
|
|
$topHtml.=$topYearTempHtml;//全年合计
|
|
$topHtml.=$topYearTempHtml;//全年合计
|
|
-
|
|
|
|
|
|
+ $topHtml.=$categoryHtml;//全年合计
|
|
|
|
|
|
return $topHtml;
|
|
return $topHtml;
|
|
}
|
|
}
|