新增用户弹窗接口,修改用户注册增加弹窗数据
This commit is contained in:
@@ -987,6 +987,52 @@ class UserDoctorService extends BaseService
|
||||
return success($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检测是否可以开具处方
|
||||
* @return array
|
||||
*/
|
||||
public function checkOpenPrescription(): array
|
||||
{
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
|
||||
$order_inquiry_id = $this->request->input('order_inquiry_id');
|
||||
|
||||
$result = array();
|
||||
$result['status'] = 1;
|
||||
$result['message'] = "成功";
|
||||
$result['data'] = [];
|
||||
|
||||
$params = array();
|
||||
$params['order_inquiry_id'] = $order_inquiry_id;
|
||||
$params['doctor_id'] = $user_info['client_user_id'];
|
||||
$order_prescription = OrderPrescription::getOne($params);
|
||||
if (empty($order_prescription)){
|
||||
return success($result);
|
||||
}
|
||||
|
||||
if ($order_prescription['prescription_status'] == 1){
|
||||
$result['status'] = 2;
|
||||
$result['message'] = "处方审核中,请勿重复开具";
|
||||
$result['data']['order_prescription_id'] = $order_prescription['order_prescription_id'];
|
||||
$result['data']['order_inquiry_id'] = $order_prescription['order_inquiry_id'];
|
||||
return success($result);
|
||||
}
|
||||
|
||||
if ($order_prescription['prescription_status'] == 2){
|
||||
$result['status'] = 2;
|
||||
$result['message'] = "您已为患者开具处方,请勿重复开具";
|
||||
$result['data']['order_prescription_id'] = $order_prescription['order_prescription_id'];
|
||||
$result['data']['order_inquiry_id'] = $order_prescription['order_inquiry_id'];
|
||||
return success($result);
|
||||
}
|
||||
|
||||
$result['status'] = 2;
|
||||
$result['message'] = "您已为患者开具处方,请勿重复开具";
|
||||
$result['data']['order_prescription_id'] = $order_prescription['order_prescription_id'];
|
||||
$result['data']['order_inquiry_id'] = $order_prescription['order_inquiry_id'];
|
||||
return success($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改处方
|
||||
* 暂时去除修改处方
|
||||
|
||||
Reference in New Issue
Block a user