liyinglin 3 years ago
parent 3de55837da
commit 5c169ae76b

@ -79,9 +79,7 @@ class OrdersController extends CommonController
foreach ($data as $order) {
$order = $order->refreshTotal();
$factors = json_decode($order->factors,true);
dd((collect($factors)->where('factor_name','所在科室')->first()));
$order->department = (collect($factors)->where('factor_name','所在科室')->first()->factor_item_name)??'';
$order->department = (collect($factors)->where('factor_name','所在科室')->first()['factor_item_name'])??'';
}
return view($this->bladePath . ".index", compact("data", "project_id", "month", "project"));
}

Loading…
Cancel
Save