[ 'project_name' => '...', 'months' => [ 1 => [...数据...], 2 => [...] ] ] ] public function __construct(array $data) { $this->data = $data; } public function sheets(): array { $sheets = []; foreach ($this->data as $groupKey => $payload) { // $groupKey 比如 "2025-RD01" $sheets[] = new ProjectDepreciationSheetExport( $groupKey, $payload['project_name'], $payload['months'] ); } return $sheets; } }