|
|
|
|
@ -332,13 +332,6 @@ class OrdersController extends CommonController
|
|
|
|
|
"refunds"
|
|
|
|
|
])->find($id);
|
|
|
|
|
|
|
|
|
|
// todo::
|
|
|
|
|
// 是否需要签订协议,0否1是
|
|
|
|
|
// $order->need_agreements = 0;
|
|
|
|
|
// $order->orderAgreements = [
|
|
|
|
|
// ['paramedic_id' => $order->paramedic_id]
|
|
|
|
|
// ];
|
|
|
|
|
|
|
|
|
|
$order = $order->refreshTotal();
|
|
|
|
|
$order->balance = $order->customer->balance;
|
|
|
|
|
$paramedic_items = $order->orderItems->groupBy("paramedic_id");
|
|
|
|
|
@ -355,6 +348,12 @@ class OrdersController extends CommonController
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
$order->group_by_paramedic = collect($group_by_paramedic);
|
|
|
|
|
// todo::
|
|
|
|
|
// 是否需要签订协议,0否1是
|
|
|
|
|
$order->need_agreements = 0;
|
|
|
|
|
$order->orderAgreements = [
|
|
|
|
|
['paramedic_id' => $order->paramedic_id]
|
|
|
|
|
];
|
|
|
|
|
if ($ajax === true) {
|
|
|
|
|
return response()->json($order->toArray());
|
|
|
|
|
}
|
|
|
|
|
|