fix: 保存行程数据到form_data以便在详情页显示
This commit is contained in:
@@ -179,6 +179,15 @@ class BusinessTripService
|
|||||||
'start_date' => $businessTrip->start_date,
|
'start_date' => $businessTrip->start_date,
|
||||||
'end_date' => $businessTrip->end_date,
|
'end_date' => $businessTrip->end_date,
|
||||||
'destination' => $businessTrip->destination,
|
'destination' => $businessTrip->destination,
|
||||||
|
'estimated_cost' => $businessTrip->estimated_cost,
|
||||||
|
'itineraries' => $businessTrip->itineraries->map(function ($item) {
|
||||||
|
return [
|
||||||
|
'destination' => $item->destination,
|
||||||
|
'start_date' => $item->start_date,
|
||||||
|
'end_date' => $item->end_date,
|
||||||
|
'estimated_cost' => $item->estimated_cost,
|
||||||
|
];
|
||||||
|
})->toArray(),
|
||||||
'approvers' => $approvers,
|
'approvers' => $approvers,
|
||||||
'cc_users' => $ccUsers,
|
'cc_users' => $ccUsers,
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user