Browse Source

Merge branch 'master' of http://git.ius.plus/Project-Vital/VitalApp

loki.wu 10 months ago
parent
commit
a57b4b96f4

+ 2 - 1
lib/pages/patient/create/controller.dart

@@ -374,7 +374,8 @@ class CreatePatientController extends FControllerBase
     if (result != null && result.success) {
       final patient = result.patientInfo;
       final hasConfirmed = await FaceResultDialog.show(patient, true);
-      if (hasConfirmed) {
+      if (hasConfirmed &&
+          patient.createdOrgCode == Store.user.organizationCode) {
         await _checkinPatient(patient, false);
       }
     } else {

+ 2 - 1
lib/pages/patient/list/controller.dart

@@ -62,7 +62,8 @@ class PatientListController extends FControllerBase
     if (result != null && result.success) {
       final patient = result.patientInfo;
       final hasConfirmed = await FaceResultDialog.show(patient, true);
-      if (hasConfirmed) {
+      if (hasConfirmed &&
+          patient.createdOrgCode == Store.user.organizationCode) {
         await _checkinPatient(patient);
       }
     } else {