liyinglin 2 years ago
parent eabe82d5af
commit 37b09f37eb

@ -35,6 +35,7 @@ class OrdersController extends CommonController
}
$project_id = request()->project_id ?? $projects->first()->id;
$project = Project::find($project_id);
$status = $request->get('status', 20);
$month = request()->month ?? date("Y-m");
$months = (new StatisticsController())->_getMonths();
@ -101,7 +102,15 @@ class OrdersController extends CommonController
$factors = json_decode($order->factors, true);
$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)

@ -26,6 +26,14 @@
value="{{ sprintf("%02d",$i)}}" @if(sprintf("%02d",$i) == request()->date) {{ "selected" }}@endif>{{sprintf("%02d",$i)}}</option>
@endfor
</select>
<select class="form-control mr-1" name="status" onchange="$(this).closest('form').submit()">
@foreach($order_status_list as $key=>$mm)
<option value="{{$key}}" @if($key == $status) {{ "selected" }}@endif>{{$mm}}</option>
@endforeach
</select>
<input class="form-control" type="text" name="keyword" value="{{ request()->keyword }}"
placeholder="订单编号/联系人/联系电话">

Loading…
Cancel
Save