浏览代码

0018243: 【体检系统】【中医体质工作站】已提交中医体质,再次点击检测进入答题页面,需要重新答题,未自动带出已填写的答案

finlay 10 月之前
父节点
当前提交
8c094950a2

+ 1 - 2
lib/pages/patient/detail/widgets/last_record.dart

@@ -85,8 +85,7 @@ class LastRecordTable extends StatelessWidget {
         }
         if (checkKey == "HEITCMC") {
           children.add(_buildConstitutionDataCell(child));
-        }
-        if (label == '心电测量') {
+        } else if (label == '心电测量') {
           children.add(_buildImageDataCell(child));
         } else if (label == '十二导心电图(30秒)' || label == "十二导心电图(30秒)") {
           children.add(_buildImageDataCell(child));

+ 5 - 0
lib/pages/traditional_chinese_medicine_constitution/view.dart

@@ -24,6 +24,10 @@ class TraditionalChineseMedicineConstitutionView
   }
 
   Widget buildContent(String key) {
+    String examData = "";
+    if (Get.arguments != null) {
+      examData = Get.arguments["examData"] ?? '';
+    }
     return TCMConstitutionModule(
       cardKey: key,
       callBack: (key, templateCode, data) async {
@@ -37,6 +41,7 @@ class TraditionalChineseMedicineConstitutionView
 
         return true;
       },
+      examData: examData,
       patientCode: Store.user.currentSelectPatientInfo?.code ??
           Store.user.currentSelectRegisterPersonInfo?.physicalExamNumber ??
           '',