Commit a42a9c14 by lujunyi

中药打印不显示用法用量选择

parent 269210f5
......@@ -282,10 +282,7 @@ public function search()
$imgUrl = Storage::url($cosPath);
}
$dosageList = [];
if ($prescription->prescription_type == PrescriptionModel::PRESCRIPTION_TYPE_WM) {
$dosageList = DosageModel::where('pharmacy_id', $prescription->pharmacy_id)->select('id', 'dosage_desc')->get()->toArray();
}
$dosageList = DosageModel::where('pharmacy_id', $prescription->pharmacy_id)->select('id', 'dosage_desc')->get()->toArray();
return response()->json([
'status' => true,
......@@ -293,6 +290,7 @@ public function search()
'img_url' => $imgUrl,
'drug_info' => $prescription->drug_info,
'dosage_list' => $dosageList,
'prescription_type' => $prescription->prescription_type,
],
]);
// } catch (\Exception $e) {
......
......@@ -99,8 +99,9 @@
$('#prescription-image').attr('src', response.data.img_url + '?t=' + new Date().getTime());
$('#download-btn').data('url', response.data.img_url);
$('#prescription-container').show();
this.showEditableForm(response.data.drug_info,response.data.dosage_list);
if (response.data.prescription_type != 1) {
this.showEditableForm(response.data.drug_info,response.data.dosage_list);
}
} else {
Dcat.error(response.message || '获取处方失败');
}
......
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