Sfoglia il codice sorgente

检验机构tap页修改:将质量检验机构改成质量指标检验机构,机构地址去掉,增加品质指标检验机构,显示顺序为:质量 品质 食安;

周素华 1 anno fa
parent
commit
11f997421b

+ 12 - 7
lib/page/sample_task/reap_sample_detail/reap_sample_org_detail_page.dart

@@ -29,6 +29,8 @@ class _ReapSampleOrgDetailPageState extends BaseLifecycleState<ReapSampleOrgDeta
29
   String? zldz;
29
   String? zldz;
30
   String? aqjg;
30
   String? aqjg;
31
   String? aqdz;
31
   String? aqdz;
32
+  String? pzjg;
33
+  String? pzdz;
32
 
34
 
33
   /// 校验数据
35
   /// 校验数据
34
   bool verifyData() {
36
   bool verifyData() {
@@ -51,6 +53,9 @@ class _ReapSampleOrgDetailPageState extends BaseLifecycleState<ReapSampleOrgDeta
51
         } else if (item.sjbj == 3) {
53
         } else if (item.sjbj == 3) {
52
           aqjg = item.dwmc;
54
           aqjg = item.dwmc;
53
           aqdz = item.address;
55
           aqdz = item.address;
56
+        } else if (item.sjbj == 2) {
57
+          pzjg = item.dwmc;
58
+          pzdz = item.address;
54
         }
59
         }
55
       }
60
       }
56
     }
61
     }
@@ -66,13 +71,13 @@ class _ReapSampleOrgDetailPageState extends BaseLifecycleState<ReapSampleOrgDeta
66
     return Column(
71
     return Column(
67
       children: [
72
       children: [
68
         CardItemWidget(
73
         CardItemWidget(
69
-          '质量检验机构',
74
+          '质量指标检验机构',
70
           rightText: zljg,
75
           rightText: zljg,
71
           bottomLine: true,
76
           bottomLine: true,
72
         ),
77
         ),
73
         CardItemWidget(
78
         CardItemWidget(
74
-          '机构地址',
75
-          rightText: zldz,
79
+          '品质指标检验机构',
80
+          rightText: pzjg,
76
           bottomLine: true,
81
           bottomLine: true,
77
         ),
82
         ),
78
         CardItemWidget(
83
         CardItemWidget(
@@ -80,10 +85,10 @@ class _ReapSampleOrgDetailPageState extends BaseLifecycleState<ReapSampleOrgDeta
80
           rightText: aqjg,
85
           rightText: aqjg,
81
           bottomLine: true,
86
           bottomLine: true,
82
         ),
87
         ),
83
-        CardItemWidget(
84
-          '机构地址',
85
-          rightText: aqdz,
86
-        ),
88
+        // CardItemWidget(
89
+        //   '机构地址',
90
+        //   rightText: aqdz,
91
+        // ),
87
       ],
92
       ],
88
     );
93
     );
89
   }
94
   }