fix: 修复审批详情页行程时间不显示问题

从模型的 start_time 和 end_time 字段读取数据,而不是错误的 start_date 和 end_date。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-01 21:43:55 +08:00
parent ebfac48c36
commit 09b2902d2b
+3 -3
View File
@@ -173,9 +173,9 @@ class BusinessTripService
$itinerariesData = $businessTrip->itineraries->map(function ($item) {
return [
'destination' => $item->destination,
'start_date' => $item->start_date,
'end_date' => $item->end_date,
'estimated_cost' => $item->estimated_cost,
'start_date' => $item->start_time,
'end_date' => $item->end_time,
'estimated_cost' => $item->estimated_cost ?? 0,
];
})->toArray();