From d992d3103989154fa87d4b11e39b5e9d67c68f12 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Mar 2026 12:59:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=9D=E5=AD=98=E8=A1=8C=E7=A8=8B?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=B0form=5Fdata=E4=BB=A5=E4=BE=BF?= =?UTF-8?q?=E5=9C=A8=E8=AF=A6=E6=83=85=E9=A1=B5=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/BusinessTripService.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/app/service/BusinessTripService.php b/backend/app/service/BusinessTripService.php index eccb519..1829b82 100644 --- a/backend/app/service/BusinessTripService.php +++ b/backend/app/service/BusinessTripService.php @@ -179,6 +179,15 @@ class BusinessTripService 'start_date' => $businessTrip->start_date, 'end_date' => $businessTrip->end_date, '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, 'cc_users' => $ccUsers, ],