Эх сурвалжийг харах

修正体检录入偶现无法录入

loki.wu 9 сар өмнө
parent
commit
476afc5277

+ 11 - 12
lib/pages/medical_checkup_station/registration/controller/form.dart

@@ -208,18 +208,17 @@ class RegistrationFormController {
         if (patientDto != null) {
           patient.phone = patientDto.phone;
         }
-        if (patient.phone.isNullOrEmpty) {
-          ///若未预约也未录入则需要更新手机号
-          PatientDTO? currentPatient = await fillInIdentityInfo(patient);
-          if (currentPatient != null) {
-            patient = currentPatient;
-            await createResidentInList(
-              patient: patient,
-              isVital: isVital,
-            );
-          } else {
-            return;
-          }
+
+        ///若未预约也未录入则需要更新手机号
+        PatientDTO? currentPatient = await fillInIdentityInfo(patient);
+        if (currentPatient != null) {
+          patient = currentPatient;
+          await createResidentInList(
+            patient: patient,
+            isVital: isVital,
+          );
+        } else {
+          return;
         }
       } else {
         PatientDTO? currentPatient = await fillInIdentityInfo(patient);