1
This commit is contained in:
@@ -425,6 +425,9 @@ class OrderPrescriptionService extends BaseService
|
||||
|
||||
dump("下载处方签章文件成功");
|
||||
|
||||
// 处方签章pdf转图片
|
||||
|
||||
|
||||
// 上传oss
|
||||
$filename = "applet/prescription/" . $order_prescription['order_prescription_id'] . '.' . 'pdf';
|
||||
$prescription_pdf_url = $oss->putObject($filename, $prescription_pdf_result);
|
||||
|
||||
@@ -736,6 +736,8 @@ class PatientDoctorService extends BaseService
|
||||
$data['hospital_name'] = $patient_history_doctor['userDoctor']['Hospital']['hospital_name'];
|
||||
}
|
||||
|
||||
$data['doctor_title'] = empty($patient_history_doctor['userDoctor']['doctor_title']) ? "" : DoctorTitleCode::getMessage($patient_history_doctor['userDoctor']['doctor_title']);
|
||||
|
||||
// 按照天来计算,当日为1,前一天为2 未服务过为0
|
||||
if (empty($patient_history_doctor['created_at'])) {
|
||||
$data['days'] = 0;
|
||||
|
||||
@@ -1308,6 +1308,7 @@ class UserDoctorService extends BaseService
|
||||
unset($product);
|
||||
}
|
||||
|
||||
// 开具处方
|
||||
$OrderPrescriptionService = new OrderPrescriptionService();
|
||||
$prescription_img = $OrderPrescriptionService->openPrescription($order_prescription->order_prescription_id,$user_info['user_id']);
|
||||
if (empty($prescription_img)){
|
||||
|
||||
@@ -53,7 +53,7 @@ class UserPatientService extends BaseService
|
||||
|
||||
// 获取处方数量-未使用
|
||||
$OrderPrescriptionService = new OrderPrescriptionService();
|
||||
$order_prescription_count = $OrderPrescriptionService->getPatientPrescriptionWithStatus($user_patient['patient_id'],3);
|
||||
$order_prescription_count = $OrderPrescriptionService->getPatientPrescriptionWithStatus($user_patient['patient_id'],2);
|
||||
|
||||
// 获取药品数量-待支付
|
||||
$OrderProductService = new OrderProductService();
|
||||
|
||||
@@ -197,6 +197,7 @@ class UserPharmacistService extends BaseService
|
||||
// 审核成功
|
||||
$data['prescription_status'] = 2;
|
||||
$data['pharmacist_audit_status'] = 1;
|
||||
$data['platform_audit_status'] = 1;
|
||||
}else{
|
||||
$data['pharmacist_audit_status'] = 2;
|
||||
$data['pharmacist_fail_reason'] = $pharmacist_fail_reason;
|
||||
@@ -208,6 +209,9 @@ class UserPharmacistService extends BaseService
|
||||
|
||||
OrderPrescription::edit($params,$data);
|
||||
|
||||
|
||||
|
||||
|
||||
// 发送消息
|
||||
$ImService = new ImService();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user