Browse Source

1、移除隐藏体检按钮的逻辑

guanxinyi 1 year ago
parent
commit
3e9ac6f4fb
1 changed files with 24 additions and 29 deletions
  1. 24 29
      lib/pages/medical/widgets/health_check/form/check_form.dart

+ 24 - 29
lib/pages/medical/widgets/health_check/form/check_form.dart

@@ -172,38 +172,33 @@ class CheckForm extends GetView<MedicalController> {
   }
 
   Widget _buildSaveButton() {
-    return Obx(() {
-      if (Store.user.currentSelectPatientInfo == null) {
-        return const SizedBox();
-      }
-      return VButton(
-        // backgroundColor: Theme.of(context).primaryColor,
-        onTap: () {
-          advanceDebounce(
-            () => controller.createCheckup(
-              Store.user.currentSelectRegisterPersonInfo?.physicalExamNumber ??
-                  '',
-              'HEIBasic',
-            ),
-            "createBasicCheckup",
-            1500,
-          );
-        },
-        child: const SizedBox(
-          width: 240,
-          height: 60,
-          child: Center(
-            child: Text(
-              '提交',
-              style: TextStyle(
-                fontSize: 26,
-                color: Colors.white,
-              ),
+    return VButton(
+      // backgroundColor: Theme.of(context).primaryColor,
+      onTap: () {
+        advanceDebounce(
+          () => controller.createCheckup(
+            Store.user.currentSelectRegisterPersonInfo?.physicalExamNumber ??
+                '',
+            'HEIBasic',
+          ),
+          "createBasicCheckup",
+          1500,
+        );
+      },
+      child: const SizedBox(
+        width: 240,
+        height: 60,
+        child: Center(
+          child: Text(
+            '提交',
+            style: TextStyle(
+              fontSize: 26,
+              color: Colors.white,
             ),
           ),
         ),
-      );
-    });
+      ),
+    );
   }
 
   Widget _buildContent() {