|
|
@@ -506,6 +506,15 @@ class ServiceOrderLogic extends BaseLogic
|
|
|
$order_info['spare_parts'] = array_values($spare_parts)??[];
|
|
|
}
|
|
|
|
|
|
+ //获取所有的改约记录
|
|
|
+ $order_info['appoint_list'] = [];
|
|
|
+ $appoint_log = ServiceWorkAppointmentLog::where('work_id',$order_info['work_id'])->order('id desc')->select()->toArray();
|
|
|
+ if(!empty($appoint_log)){
|
|
|
+ foreach ($appoint_log as $k=>$v){
|
|
|
+ $order_info['appoint_list'][$k]['last_appointment_time'] = date('Y-m-d H:i:s',$v['last_appointment_time']);
|
|
|
+ $order_info['appoint_list'][$k]['this_appointment_time'] = date('Y-m-d H:i:s',$v['this_appointment_time']);
|
|
|
+ }
|
|
|
+ }
|
|
|
return $order_info;
|
|
|
}
|
|
|
catch (\Exception $e) {
|