This commit is contained in:
Your Name
2026-11-17 17:06:05 +08:00
parent 08892f4270
commit 378bf32069
51 changed files with 4656 additions and 103 deletions
@@ -41,6 +41,9 @@ class PrescriptionValidate extends BaseValidate
public function sceneAdd()
{
if (\app\common\service\esign\PrescriptionEsignService::enabled()) {
$this->remove('doctor_signature', 'require');
}
return $this->only([
'prescription_type', 'dosage_amount', 'dosage_unit', 'dosage_bag_count', 'need_decoction', 'bags_per_dose',
'prescription_name', 'patient_id', 'patient_name', 'phone', 'gender', 'age',
@@ -54,6 +57,9 @@ class PrescriptionValidate extends BaseValidate
public function sceneEdit()
{
if (\app\common\service\esign\PrescriptionEsignService::enabled()) {
$this->remove('doctor_signature', 'require');
}
return $this->only([
'id', 'prescription_type', 'dosage_amount', 'dosage_unit', 'dosage_bag_count', 'need_decoction', 'bags_per_dose',
'prescription_name', 'patient_id', 'patient_name', 'phone', 'gender', 'age',