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()); // 新增药品订单 // 新增药品订单详情