caipin 5 年之前
父节点
当前提交
31751db9ca
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      protected/class/receipt.func.php

+ 1 - 0
protected/class/receipt.func.php

@@ -1877,6 +1877,7 @@ function excelRCData($summaryData,$aiAllList,$cglist,$year){
 			$col++;
 			foreach ($aiav as $k=>$v){//项目细则
 				$sumRowStart=$onRow-1;
+				$obj->getActiveSheet()->getStyle($col.$onRow)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00);
 				$obj->getactivesheet()->setCellValue( $col.$onRow, '='.$col.$sumRowStart.'/'.$col.'4' );
 				$col++;
 			}