Browse Source

fixed: 0018654: 【超声工作站软件】在采集窗口页面,截图或视频录制结束后,窗口无任何提示,应提示“采集成功”

loki.wu 10 months ago
parent
commit
b627ce7b4d

+ 5 - 0
lib/pages/consultation_record_view/widgets/capture_page.dart

@@ -1,4 +1,5 @@
 import 'package:flutter/material.dart';
+import 'package:vitalapp/architecture/utils/prompt_box.dart';
 import 'package:vitalapp/components/button.dart';
 import 'package:vitalapp/helper/sonopost_preview_helper.dart';
 import 'package:vitalapp/rpc.dart';
@@ -64,6 +65,7 @@ class _CapturePageState extends State<CapturePage> {
                       child: Text("截图"),
                       onTap: () {
                         rpc.platform.keypadPressF1();
+                        PromptBox.toast('采集成功');
                       },
                     ),
                   ),
@@ -77,6 +79,9 @@ class _CapturePageState extends State<CapturePage> {
                       child: Text(isRecording ? "结束录制" : "开始录制"),
                       onTap: () {
                         rpc.platform.keypadPressF2();
+                        if (isRecording) {
+                          PromptBox.toast('采集成功');
+                        }
                         setState(() {
                           isRecording = !isRecording;
                         });

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

@@ -107,8 +107,13 @@ class ConsultationRecordFilter extends GetView<ConsultationRecordViewController>
                     label: "采集",
                     onTap: () async {
                       print(textEditingController.text);
-                      await controller
-                          .openCapturePage(textEditingController.text);
+                      String devicePatientID =
+                          controller.currentRecordData?.devicePatientID ?? '';
+                      print(devicePatientID);
+                      if (devicePatientID.isEmpty) {
+                        devicePatientID = textEditingController.text;
+                      }
+                      await controller.openCapturePage(devicePatientID);
                     },
                   ),
                 ),