Commit 951d7774 by 赵增煜

处方单筛选列表搜索bug修复

parent 6ccea13d
...@@ -51,7 +51,7 @@ public function prescriptionList(Request $request) ...@@ -51,7 +51,7 @@ public function prescriptionList(Request $request)
// 客开 0 店开 1 // 客开 0 店开 1
$open_source = $request->input('open_source'); $open_source = $request->input('open_source');
if (in_array($open_source, [0, 1])) { if (isset($open_source) && in_array($open_source, [0, 1])) {
$query = $query->where('open_source', $open_source); $query = $query->where('open_source', $open_source);
} }
...@@ -67,7 +67,7 @@ public function prescriptionList(Request $request) ...@@ -67,7 +67,7 @@ public function prescriptionList(Request $request)
// 状态 // 状态
$status = $request->input('status'); $status = $request->input('status');
if (in_array($status, [0, 1, 2])) { if (isset($status) && in_array($status, [0, 1, 2])) {
$query->where('status', $status); $query->where('status', $status);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment