Update PrescriptionLogic.php

This commit is contained in:
2026-05-09 18:32:16 +08:00
parent 496a2b870b
commit 31b4afdcb7
@@ -10,6 +10,7 @@ use app\common\model\tcm\Prescription;
use app\common\model\tcm\PrescriptionOrder;
use app\common\model\tcm\Diagnosis;
use app\common\service\wechat\WechatWorkAppMessageService;
use app\adminapi\logic\auth\AuthLogic;
use think\facade\Config;
use think\facade\Log;
@@ -122,6 +123,12 @@ class PrescriptionLogic
return true;
}
// 有业务订单详情权限的用户可以查看关联处方(只读)
$perms = AuthLogic::getAuthByAdminId($adminId);
if (in_array('tcm.prescriptionOrder/detail', $perms, true)) {
return true;
}
return false;
}