From b688cc6e3b2ceb0d14001f40d1180733dcca10fb Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Mon, 13 Mar 2023 17:16:15 +0800 Subject: [PATCH] 1 --- app/Services/PatientDoctorService.php | 2 +- app/Services/PatientOrderService.php | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/Services/PatientDoctorService.php b/app/Services/PatientDoctorService.php index d2be83c..ecbd781 100644 --- a/app/Services/PatientDoctorService.php +++ b/app/Services/PatientDoctorService.php @@ -371,7 +371,7 @@ class PatientDoctorService extends BaseService $doctor_id = $this->request->input('doctor_id',''); $result = array(); - $result['data'] = []; + $result['data'] = ""; $result['message'] = "可接诊"; $result['status'] = 1; diff --git a/app/Services/PatientOrderService.php b/app/Services/PatientOrderService.php index 7a5860c..ea83aaa 100644 --- a/app/Services/PatientOrderService.php +++ b/app/Services/PatientOrderService.php @@ -748,8 +748,15 @@ class PatientOrderService extends BaseService return fail(HttpEnumCode::HTTP_ERROR,"处方已使用"); } - + // 获取处方药品数据 + $params = array(); + $params['order_prescription_id'] = $order_prescription['order_prescription_id']; + $order_prescription_product = OrderPrescriptionProduct::getList($params); + if (empty($order_prescription_product)){ + return fail(HttpEnumCode::HTTP_ERROR,"处方药品错误"); + } + dump($order_prescription_product->toArray()); // 新增药品订单 // 新增药品订单详情