You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
618 B
31 lines
618 B
<?php
|
|
|
|
namespace App\Admin\Actions\Exporter;
|
|
|
|
use Maatwebsite\Excel\Concerns\Exportable;
|
|
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
|
|
|
class OrderDelivery implements WithMultipleSheets
|
|
{
|
|
use Exportable;
|
|
|
|
protected $params = [];
|
|
public function __construct(array $params)
|
|
{
|
|
$this->params = $params;
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function sheets(): array
|
|
{
|
|
$sheets = [];
|
|
|
|
$sheets[] = new OrderDeliveryTotalSheet($this->params);// 统计
|
|
$sheets[] = new OrderDeliveryDetailSheet($this->params);// 明细
|
|
|
|
return $sheets;
|
|
}
|
|
|
|
}
|