From d00ebd2f9493d8d68e31f84bb88db45ebaef09d0 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Mon, 17 Apr 2023 14:42:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9=E5=A4=84?= =?UTF-8?q?=E6=96=B9=E9=99=90=E5=88=B6=EF=BC=8C=E5=AE=A1=E6=A0=B8=E4=B8=AD?= =?UTF-8?q?=E5=A4=84=E6=96=B9=E4=B8=8D=E5=85=81=E8=AE=B8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/UserDoctorService.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Services/UserDoctorService.php b/app/Services/UserDoctorService.php index e58a04e..b7a3606 100644 --- a/app/Services/UserDoctorService.php +++ b/app/Services/UserDoctorService.php @@ -1016,6 +1016,11 @@ class UserDoctorService extends BaseService return fail(HttpEnumCode::HTTP_ERROR, "处方已删除,无法更改"); } + if ($order_prescription['prescription_status'] == 1 && $order_prescription['pharmacist_audit_status'] == 0) { + // 已使用 + return fail(HttpEnumCode::HTTP_ERROR, "处方审核中,不允许修改"); + } + // 获取处方订单数据 $params = array(); $params['order_inquiry_id'] = $order_prescription['order_inquiry_id'];