Bladeren bron

fixed: 0018689: 【超声工作站软件】选中“待扫查”的病例后,点击采集按键,不支持打开采集窗口,只能通过输入体检号后点击采集

loki.wu 10 maanden geleden
bovenliggende
commit
bf4231dc1c

+ 6 - 3
lib/pages/consultation_record_view/widgets/consultation_record_filter.dart

@@ -83,9 +83,12 @@ class ConsultationRecordFilter extends GetView<ConsultationRecordViewController>
                       isCollapsed: false,
                     ),
                     onEditingComplete: () async {
-                      print(textEditingController.text);
-                      await controller
-                          .openCapturePage(textEditingController.text);
+                      String devicePatientID =
+                          controller.currentRecordData?.devicePatientID ?? '';
+                      if (devicePatientID.isEmpty) {
+                        devicePatientID = textEditingController.text;
+                      }
+                      await controller.openCapturePage(devicePatientID);
                     },
                     readOnly: false,
                   ),

+ 1 - 0
lib/pages/consultation_record_view/widgets/operation_buttons_row.dart

@@ -1,3 +1,4 @@
+import 'package:fis_common/index.dart';
 import 'package:fis_ui/index.dart';
 import 'package:fis_ui/values/spacings.dart';
 import 'package:fis_ui/values/paddings.dart';