|
|
|
@ -35,6 +35,7 @@ class OrdersController extends CommonController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$project_id = request()->project_id ?? $projects->first()->id;
|
|
|
|
$project_id = request()->project_id ?? $projects->first()->id;
|
|
|
|
$project = Project::find($project_id);
|
|
|
|
$project = Project::find($project_id);
|
|
|
|
|
|
|
|
$status = $request->get('status', 20);
|
|
|
|
|
|
|
|
|
|
|
|
$month = request()->month ?? date("Y-m");
|
|
|
|
$month = request()->month ?? date("Y-m");
|
|
|
|
$months = (new StatisticsController())->_getMonths();
|
|
|
|
$months = (new StatisticsController())->_getMonths();
|
|
|
|
@ -101,7 +102,15 @@ class OrdersController extends CommonController
|
|
|
|
$factors = json_decode($order->factors, true);
|
|
|
|
$factors = json_decode($order->factors, true);
|
|
|
|
$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","hushizhang"));
|
|
|
|
|
|
|
|
|
|
|
|
// 订单状态
|
|
|
|
|
|
|
|
$order_status_list = [
|
|
|
|
|
|
|
|
'0' => '待确认',
|
|
|
|
|
|
|
|
'10' => '待指派',
|
|
|
|
|
|
|
|
'20' => '进行中',
|
|
|
|
|
|
|
|
'100' => '已完成'
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
return view($this->bladePath . ".index", compact("status", "data", "project_id", "month", "project", "hushizhang", "order_status_list"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function changeItem(Request $request)
|
|
|
|
public function changeItem(Request $request)
|
|
|
|
|