链街Dcat后台
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

  1. <?php
  2. namespace App\Admin\Actions\Exporter;
  3. use Maatwebsite\Excel\Concerns\Exportable;
  4. use Maatwebsite\Excel\Concerns\WithMultipleSheets;
  5. class OrderDelivery implements WithMultipleSheets
  6. {
  7. use Exportable;
  8. protected $params = [];
  9. public function __construct(array $params)
  10. {
  11. $this->params = $params;
  12. }
  13. /**
  14. * @return array
  15. */
  16. public function sheets(): array
  17. {
  18. $sheets = [];
  19. $sheets[] = new OrderDeliveryTotalSheet($this->params);// 统计
  20. $sheets[] = new OrderDeliveryDetailSheet($this->params);// 明细
  21. return $sheets;
  22. }
  23. }