i更新
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user