Commit 269210f5 by lujunyi

中药不显示

parent d112216f
......@@ -282,7 +282,10 @@ public function search()
$imgUrl = Storage::url($cosPath);
}
$dosageList = DosageModel::where('pharmacy_id', $prescription->pharmacy_id)->select('id', 'dosage_desc')->get()->toArray();
$dosageList = [];
if ($prescription->prescription_type == PrescriptionModel::PRESCRIPTION_TYPE_WM) {
$dosageList = DosageModel::where('pharmacy_id', $prescription->pharmacy_id)->select('id', 'dosage_desc')->get()->toArray();
}
return response()->json([
'status' => true,
......
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