|
|
@@ -78,6 +78,7 @@ class ResearchExpenseSummarySheetExport implements WithEvents, WithTitle
|
|
|
|
|
|
// 固定数值列
|
|
|
$sheet->setCellValue("{$col_7_1}{$currentRow}", $item['val7_1'] ?? 0);
|
|
|
+ $sheet->setCellValue("{$col_7_2}{$currentRow}", $item['val7_2'] ?? 0);
|
|
|
$sheet->setCellValue("{$col_8_1}{$currentRow}", $item['val8_1'] ?? 0);
|
|
|
$sheet->setCellValue("{$col_8_3}{$currentRow}", $item['val8_3'] ?? 0);
|
|
|
|
|
|
@@ -86,10 +87,10 @@ class ResearchExpenseSummarySheetExport implements WithEvents, WithTitle
|
|
|
$lastDetailCol = Coordinate::stringFromColumnIndex($startDetailIdx + $totalDynamic - 1);
|
|
|
|
|
|
$sheet->setCellValue("{$col_6}{$currentRow}", "=SUM({$firstDetailCol}{$currentRow}:{$lastDetailCol}{$currentRow})");
|
|
|
- $sheet->setCellValue("{$col_7_2}{$currentRow}", "={$col_7_1}{$currentRow}");
|
|
|
+// $sheet->setCellValue("{$col_7_2}{$currentRow}", "={$col_7_1}{$currentRow}");
|
|
|
$sheet->setCellValue("{$col_8_2}{$currentRow}", "={$col_8_1}{$currentRow}*0.8");
|
|
|
$sheet->setCellValue("{$col_8_4}{$currentRow}", "={$col_8_3}{$currentRow}*0.8");
|
|
|
- $sheet->setCellValue("{$col_E}{$currentRow}", "={$col_6}{$currentRow}+{$col_7_2}{$currentRow}+{$col_8_2}{$currentRow}+{$col_8_4}{$currentRow}");
|
|
|
+ $sheet->setCellValue("{$col_E}{$currentRow}", "={$col_6}{$currentRow}+{$col_7_1}{$currentRow}+{$col_7_2}{$currentRow}+{$col_8_2}{$currentRow}+{$col_8_4}{$currentRow}");
|
|
|
|
|
|
// 严格清洗类型字符串进行归集
|
|
|
$cleanType = preg_replace('/[\s\v\t\r\n]+/u', '', (string)$item['type']);
|