liyinglin 3 years ago
parent 720b64d9cf
commit be91db483f

@ -79,6 +79,7 @@ class OrdersController extends CommonController
foreach ($data as $order) {
$order = $order->refreshTotal();
$factors = json_decode($order->factors,true);
dd($factors);
$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