diff --git a/src/components/patients/PatientForm.jsx b/src/components/patients/PatientForm.jsx index 0cd8892a..934c8d8c 100644 --- a/src/components/patients/PatientForm.jsx +++ b/src/components/patients/PatientForm.jsx @@ -85,8 +85,6 @@ function PatientForm({ onSave, onCancel, PatientDict }) { infoConvenio: false, endereco: false, contato: false, - infoAdicionais: false, - anexos: false, }); // Função para alternar o estado de colapso de uma seção @@ -141,7 +139,7 @@ function PatientForm({ onSave, onCancel, PatientDict }) { setFormData(prev => ({ ...prev, [name]: telefoneFormatado })); } }; - + const handleCepBlur = async () => { const cep = formData.cep.replace(/\D/g, ''); if (cep.length === 8) { @@ -375,6 +373,21 @@ function PatientForm({ onSave, onCancel, PatientDict }) { + + {/* CAMPOS MOVIDOS */} +
+ + +
+
+ +
+ + + {formData.anexos ? formData.anexos.name : 'Nenhum arquivo escolhido'} +
+
+ @@ -547,44 +560,7 @@ function PatientForm({ onSave, onCancel, PatientDict }) { - - {/* INFORMAÇÕES ADICIONAIS */} -
-

handleToggleCollapse('infoAdicionais')} style={{ fontSize: '1.8rem' }}> - Informações Adicionais - - {collapsedSections.infoAdicionais ? '▲' : '▼'} - -

-
-
-
- - -
-
-
-
- {/* ANEXOS DO PACIENTE */} -
-

handleToggleCollapse('anexos')} style={{ fontSize: '1.8rem' }}> - Anexos do Paciente - - {collapsedSections.anexos ? '▲' : '▼'} - -

-
-
-
- - - {formData.anexos ? formData.anexos.name : 'Nenhum arquivo escolhido'} -
-
-
-
- {/* Botões */}