Quellcode durchsuchen

0016871: APP 居民 人群分类 签约状态之前屏蔽的需要再展现

Melon vor 1 Jahr
Ursprung
Commit
cc25a7caa2

+ 2 - 2
lib/architecture/values/features.dart

@@ -38,8 +38,8 @@ class FeatureKeys {
   static const IdCardOfflineRecognition = 'LXSFZSB';
   static const IdCardOfflineRecognition = 'LXSFZSB';
 
 
   /// 人群分类
   /// 人群分类
-  static const CrowdClassification = 'RQFL';
+  static const CrowdClassification = 'RQFLCZ';
 
 
   /// 签约状态
   /// 签约状态
-  static const ContractStatus = 'QYZT';
+  static const ContractStatus = 'QYZTCZ';
 }
 }

+ 11 - 11
lib/pages/patient/detail/view.dart

@@ -34,6 +34,17 @@ class PatientDetailPage extends GetView<PatientDetailController> {
                   children: [
                   children: [
                     const BaseInfoCard(),
                     const BaseInfoCard(),
                     const SizedBox(height: 12),
                     const SizedBox(height: 12),
+                    if (Store.user
+                        .hasFeature(FeatureKeys.CrowdClassification)) ...[
+                      const SizedBox(height: 12),
+                      const Expanded(
+                        child: CrowdLabelsCard(),
+                      ),
+                    ],
+                    if (Store.user.hasFeature(FeatureKeys.ContractStatus)) ...[
+                      const SizedBox(height: 12),
+                      const Expanded(child: FollowupTipsCard()),
+                    ],
                     if (Store.user.hasFeature(FeatureKeys.RecentTestRecords))
                     if (Store.user.hasFeature(FeatureKeys.RecentTestRecords))
                       FutureBuilder(
                       FutureBuilder(
                         future: controller.onReadLastRecordInfo(),
                         future: controller.onReadLastRecordInfo(),
@@ -46,17 +57,6 @@ class PatientDetailPage extends GetView<PatientDetailController> {
                           );
                           );
                         },
                         },
                       ),
                       ),
-                    if (Store.user
-                        .hasFeature(FeatureKeys.CrowdClassification)) ...[
-                      const SizedBox(height: 12),
-                      const Expanded(
-                        child: CrowdLabelsCard(),
-                      ),
-                    ],
-                    if (Store.user.hasFeature(FeatureKeys.ContractStatus)) ...[
-                      const SizedBox(height: 12),
-                      const Expanded(child: FollowupTipsCard()),
-                    ]
                   ],
                   ],
                 ),
                 ),
               ),
               ),

+ 4 - 3
lib/pages/patient/detail/widgets/tag_cards.dart

@@ -106,9 +106,10 @@ class CrowdLabelsCard extends GetView<PatientDetailController> {
         crowdLabelsState.selectedNormalCodes = selectedNormalCodes;
         crowdLabelsState.selectedNormalCodes = selectedNormalCodes;
         crowdLabelsState.selectedDiseaseCodes = selectedDiseaseCodes;
         crowdLabelsState.selectedDiseaseCodes = selectedDiseaseCodes;
         crowdLabelsState.selectedSpecialCareCodes = selectedSpecialCareCodes;
         crowdLabelsState.selectedSpecialCareCodes = selectedSpecialCareCodes;
-        // 人群分类暂时屏蔽
-        // controller.setCrowdLabelsAsync(
-        //     crowdLabelsState.selectedCodes, crowdLabelsState.selectedNames);
+
+        // TODO: 暂未支持离线设置
+        controller.setCrowdLabelsAsync(
+            crowdLabelsState.selectedCodes, crowdLabelsState.selectedNames);
       },
       },
       child: Scrollbar(
       child: Scrollbar(
         controller: scrollController,
         controller: scrollController,