|
|
|
|
@ -37,6 +37,14 @@ class OrdersController extends CommonController
|
|
|
|
|
$project_id = request()->project_id ?? $projects->first()->id;
|
|
|
|
|
$project = Project::find($project_id);
|
|
|
|
|
$status = $request->get('status', 20);
|
|
|
|
|
$building_id = $request->get('building_id');
|
|
|
|
|
$area_id = $request->get('area_id');
|
|
|
|
|
|
|
|
|
|
// 楼栋
|
|
|
|
|
$buildings = Building::where('project_id', $project_id)->get();
|
|
|
|
|
// 病区
|
|
|
|
|
$areas = Area::where('project_id', $project_id)->get();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$month = request()->month ?? '全部';
|
|
|
|
|
$months = (new OrdersController())->_getMonths();
|
|
|
|
|
@ -118,7 +126,7 @@ class OrdersController extends CommonController
|
|
|
|
|
'20' => '进行中',
|
|
|
|
|
'100' => '已完成'
|
|
|
|
|
];
|
|
|
|
|
return view($this->bladePath . ".index", compact("status", "data", "project_id", "month", "project", "hushizhang", "yuanfang", "order_status_list"));
|
|
|
|
|
return view($this->bladePath . ".index", compact('buildings', 'areas', "status", "data", "project_id", "month", "project", "hushizhang", "yuanfang", "order_status_list"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function _getMonths()
|
|
|
|
|
|