|
|
|
|
@ -18,10 +18,13 @@ class OrdersExport implements FromCollection
|
|
|
|
|
public function collection()
|
|
|
|
|
{
|
|
|
|
|
$res = [];
|
|
|
|
|
|
|
|
|
|
foreach ($this->data as $row) {
|
|
|
|
|
$res[] = [
|
|
|
|
|
"订单编号" => " ".$row->serial,
|
|
|
|
|
"所属项目/医院" => $row->project->name,
|
|
|
|
|
"楼栋" => isset($row->bed->building) ? $row->bed->building->name : "",
|
|
|
|
|
"楼层/病区" => isset($row->bed->area) ? $row->bed->area->name : "",
|
|
|
|
|
"科室" => $row->department,
|
|
|
|
|
"客户姓名" => $row->customer->name ?: $row->patient->name,
|
|
|
|
|
"联系电话" => " ".$row->customer->mobile,
|
|
|
|
|
|