This commit is contained in:
Your Name
2026-05-18 11:20:24 +08:00
parent 1d66f84bd3
commit 08290b329e
8 changed files with 157 additions and 43 deletions
@@ -15,6 +15,7 @@ class PrescriptionValidate extends BaseValidate
'dosage_bag_count' => 'integer|between:1,5',
'patient_name' => 'require',
'phone' => 'require|max:20',
'gender' => 'require|in:0,1',
'clinical_diagnosis' => 'require',
'herbs' => 'require|array',
'action' => 'require|in:approve,reject',
@@ -27,6 +28,8 @@ class PrescriptionValidate extends BaseValidate
'patient_name.require' => '患者姓名不能为空',
'phone.require' => '手机号不能为空',
'phone.max' => '手机号过长',
'gender.require' => '请选择性别',
'gender.in' => '性别无效',
'clinical_diagnosis.require' => '临床诊断不能为空',
'herbs.require' => '请添加中药',
];
@@ -68,7 +71,7 @@ class PrescriptionValidate extends BaseValidate
public function scenePatchPatient()
{
return $this->only(['id', 'patient_name', 'phone']);
return $this->only(['id', 'patient_name', 'phone', 'gender']);
}
public function sceneAudit()