新增药师开具处方ca签章
This commit is contained in:
@@ -888,7 +888,7 @@ class UserDoctorService extends BaseService
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
|
||||
$order_inquiry_id = $this->request->input('order_inquiry_id');
|
||||
$order_prescription_id = $this->request->input('order_prescription_id');
|
||||
$order_prescription_id = $this->request->route('order_prescription_id');
|
||||
|
||||
// 获取医生信息
|
||||
$params = array();
|
||||
@@ -1158,8 +1158,8 @@ class UserDoctorService extends BaseService
|
||||
$message_content_data['message_type'] = 6;
|
||||
$message_content_data['title'] = "处方已开具";
|
||||
$message_content_data['desc'] = "";
|
||||
$message_content_data['data']['order_inquiry_id'] = $order_inquiry['order_inquiry_id'];
|
||||
$message_content_data['data']['order_prescription_id'] = $order_prescription['order_prescription_id'];
|
||||
$message_content_data['data']['order_inquiry_id'] = (string)$order_inquiry['order_inquiry_id'];
|
||||
$message_content_data['data']['order_prescription_id'] = (string)$order_prescription['order_prescription_id'];
|
||||
$message_content_data['data']['product_name'] = $product_name ?? "药品";
|
||||
$message_content_data['data']['pharmacist_verify_time'] = date('Y-m-d H:i:s',time());;
|
||||
$message_content = [
|
||||
@@ -1236,9 +1236,17 @@ class UserDoctorService extends BaseService
|
||||
$params['order_inquiry_id'] = $order_inquiry['order_inquiry_id'];
|
||||
$params['doctor_id'] = $user_info['client_user_id'];
|
||||
$params['pharmacist_audit_status'] = 1;
|
||||
$order_prescription = OrderPrescription::getOne($params);
|
||||
$order_prescription = OrderPrescription::getList($params);
|
||||
if (!empty($order_prescription)) {
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "订单已开具处方,无法重复开具");
|
||||
foreach ($order_prescription as $item){
|
||||
if ($item['pharmacist_audit_status'] == 1){
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "处方正在审核中,请耐心等待");
|
||||
}
|
||||
|
||||
if ($item['pharmacist_audit_status'] == 2){
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "您已开具处方,请勿重复开具");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Db::beginTransaction();
|
||||
@@ -1380,8 +1388,8 @@ class UserDoctorService extends BaseService
|
||||
$message_content_data['message_type'] = 6;
|
||||
$message_content_data['title'] = "处方已开具";
|
||||
$message_content_data['desc'] = "";
|
||||
$message_content_data['data']['order_inquiry_id'] = $order_inquiry['order_inquiry_id'];
|
||||
$message_content_data['data']['order_prescription_id'] = $order_prescription['order_prescription_id'];
|
||||
$message_content_data['data']['order_inquiry_id'] = (string)$order_inquiry['order_inquiry_id'];
|
||||
$message_content_data['data']['order_prescription_id'] = (string)$order_prescription['order_prescription_id'];
|
||||
$message_content_data['data']['product_name'] = $product_name ?? "药品";
|
||||
$message_content_data['data']['pharmacist_verify_time'] = date('Y-m-d H:i:s',time());;
|
||||
$message_content = [
|
||||
|
||||
Reference in New Issue
Block a user