|
|
|
@ -268,6 +268,12 @@ class FenzhenController extends Controller
|
|
|
|
$worksheet->setCellValueExplicit('AO' . 11,round($zhunshilv, 2) , \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING);
|
|
|
|
$worksheet->setCellValueExplicit('AO' . 11,round($zhunshilv, 2) , \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING);
|
|
|
|
$worksheet->getStyle('AL11:AO' . 11)->applyFromArray($styleArray);
|
|
|
|
$worksheet->getStyle('AL11:AO' . 11)->applyFromArray($styleArray);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//新建Sheet2
|
|
|
|
|
|
|
|
$worksheet2 = new \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet($spreadsheet, 'Sheet2');
|
|
|
|
|
|
|
|
$spreadsheet->addSheet($worksheet2);
|
|
|
|
|
|
|
|
$worksheet2->setCellValue('A1', 'Foo');
|
|
|
|
|
|
|
|
$worksheet2->setCellValue('B1', 'Bar');
|
|
|
|
|
|
|
|
|
|
|
|
$file_name = Str::orderedUuid();
|
|
|
|
$file_name = Str::orderedUuid();
|
|
|
|
$dir_path = "public/excel/" . date('Ym') . '/' . $file_name;
|
|
|
|
$dir_path = "public/excel/" . date('Ym') . '/' . $file_name;
|
|
|
|
Storage::makeDirectory($dir_path);
|
|
|
|
Storage::makeDirectory($dir_path);
|
|
|
|
|