瀏覽代碼

中医体质检测,其他检查

finlay 1 年之前
父節點
當前提交
8f89b2157a

+ 1 - 0
lib/pages/medical/widgets/health_check/health_check_left/index.dart

@@ -14,6 +14,7 @@ class HealthCheckLeft extends GetView<HealthCheckListController> {
     required this.onRowTap,
     required this.onCheckTap,
   });
+
   ValueCallback<ResidentModel> onRowTap;
   ValueCallback<ResidentModel> onCheckTap;
 

+ 11 - 6
lib/pages/medical/widgets/health_check/health_check_list/controller.dart

@@ -15,7 +15,9 @@ class HealthCheckListController extends GetxController {
   final registrationManager = Get.find<IRegistrationManager>();
   final state = ListState();
 
-  HealthCheckListController() {}
+  String? checkKey = "HEIBasic";
+
+  HealthCheckListController({this.checkKey});
 
   /// 登记
   ResidentModel resident = ResidentModel(
@@ -135,11 +137,14 @@ class HealthCheckListController extends GetxController {
           mainAxisAlignment: MainAxisAlignment.center,
           children: [
             TextButton(
-                onPressed: () async {
-                  await changeHeartCheck(rowData);
-                  onRowTap.call(rowData);
-                },
-                child: const Text("检查")),
+              onPressed: () async {
+                await changeHeartCheck(rowData);
+                onRowTap.call(rowData);
+              },
+              child: Text(
+                checkKey == "HEITCMC" ? "检测" : "检查",
+              ),
+            ),
           ],
         ),
       ),

+ 1 - 1
lib/routes/routes.dart

@@ -422,7 +422,7 @@ class Routes {
       binding: BindingsBuilder(
         () {
           Get.put(TraditionalChineseMedicineConstitutionController());
-          Get.put(HealthCheckListController());
+          Get.put(HealthCheckListController(checkKey: 'HEITCMC'));
         },
       ),
     ),