Browse Source

超声工作站代码提交

finlay 11 months ago
parent
commit
f1e8317f04

+ 1 - 1
lib/pages/consultation_record_view/controller.dart

@@ -911,7 +911,7 @@ class ConsultationRecordViewController extends GetxController
   }
 
   ///打开采集页面
-  Future<void> openCapturePage() async {
+  Future<void> openCapturePage(String medicalNumber) async {
     Get.dialog(
       VAlertDialog(
         title: "采集",

+ 1 - 3
lib/pages/consultation_record_view/widgets/capture_page.dart

@@ -14,6 +14,7 @@ class _CapturePageState extends State<CapturePage> {
   @override
   Widget build(BuildContext context) {
     return Container(
+      height: 300,
       alignment: Alignment.center,
       child: Row(
         mainAxisAlignment: MainAxisAlignment.center,
@@ -24,7 +25,6 @@ class _CapturePageState extends State<CapturePage> {
             child: VButton(
               child: Text("截图"),
               onTap: () {
-                // 截图逻辑
                 rpc.platform.keypadPressF1();
               },
             ),
@@ -39,11 +39,9 @@ class _CapturePageState extends State<CapturePage> {
               child: Text(isRecording ? "结束录制" : "开始录制"),
               onTap: () {
                 rpc.platform.keypadPressF2();
-                // 切换状态
                 setState(() {
                   isRecording = !isRecording;
                 });
-                // 这里可以添加开始或结束录制的逻辑
               },
             ),
           ),

+ 4 - 2
lib/pages/consultation_record_view/widgets/consultation_record_filter.dart

@@ -81,7 +81,8 @@ class ConsultationRecordFilter extends GetView<ConsultationRecordViewController>
                   ),
                   onEditingComplete: () async {
                     print(textEditingController.text);
-                    await controller.openCapturePage();
+                    await controller
+                        .openCapturePage(textEditingController.text);
                   },
                   readOnly: false,
                 ),
@@ -98,7 +99,8 @@ class ConsultationRecordFilter extends GetView<ConsultationRecordViewController>
                   label: "采集",
                   onTap: () async {
                     print(textEditingController.text);
-                    await controller.openCapturePage();
+                    await controller
+                        .openCapturePage(textEditingController.text);
                   },
                 ),
               ),