fix: 审批详情页行程数据显示完整字段

修改后端行程数据映射,包含所有字段:
- departure: 出发地
- destination: 目的地
- start_time/end_time: 开始/结束时间(保持与数据库字段一致)
- transport: 出行方式
- trip_type: 行程类型
- remark: 备注

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-03 13:57:26 +08:00
parent 4fd8afe07a
commit 46b233c743
+7 -4
View File
@@ -172,10 +172,13 @@ class BusinessTripService
// 创建审批单
$itinerariesData = $businessTrip->itineraries->map(function ($item) {
return [
'destination' => $item->destination,
'start_date' => $item->start_time,
'end_date' => $item->end_time,
'estimated_cost' => $item->estimated_cost ?? 0,
'departure' => $item->departure ?? '',
'destination' => $item->destination ?? '',
'start_time' => $item->start_time,
'end_time' => $item->end_time,
'transport' => $item->transport ?? '',
'trip_type' => $item->trip_type ?? 'oneway',
'remark' => $item->remark ?? '',
];
})->toArray();