seimin 3 weken geleden
bovenliggende
commit
e50cf76ce4

+ 12 - 12
src/app/components/configurationCenter/configuration-inspect/configuration-inspect-batch/configuration-inspect-batch.component.ts

@@ -199,21 +199,21 @@ export class ConfigurationInspectBatchComponent implements OnInit {
199 199
        this.loading = false;
200 200
        if (result.status == 200) {
201 201
          this.configs = result.list[0] || {};
202
-         this.activeDictionaryKey.postData.ibActiveStartTime1 = this.configs.ibActiveStartTime1 || undefined;
203
-         this.activeDictionaryKey.postData.ibActiveEndTime1 = this.configs.ibActiveEndTime1 || undefined;
204
-         this.activeDictionaryKey.postData.ibActiveStartTime2 = this.configs.ibActiveStartTime2 || undefined;
205
-         this.activeDictionaryKey.postData.ibActiveEndTime2 = this.configs.ibActiveEndTime2 || undefined;
206
-         this.activeDictionaryKey.postData.ibDefaultStartTime = this.configs.ibDefaultStartTime || undefined;
207
-         this.activeDictionaryKey.postData.ibDefaultEndTime = this.configs.ibDefaultEndTime || undefined;
202
+         this.activeDictionaryKey.postData.ibActiveStartTime1 = this.configs.ibActiveStartTime1 ? new Date(this.configs.ibActiveStartTime1) : undefined;
203
+         this.activeDictionaryKey.postData.ibActiveEndTime1 = this.configs.ibActiveEndTime1 ? new Date(this.configs.ibActiveEndTime1) : undefined;
204
+         this.activeDictionaryKey.postData.ibActiveStartTime2 = this.configs.ibActiveStartTime2 ? new Date(this.configs.ibActiveStartTime2) : undefined;
205
+         this.activeDictionaryKey.postData.ibActiveEndTime2 = this.configs.ibActiveEndTime2 ? new Date(this.configs.ibActiveEndTime2) : undefined;
206
+         this.activeDictionaryKey.postData.ibDefaultStartTime = this.configs.ibDefaultStartTime ? new Date(this.configs.ibDefaultStartTime) : undefined;
207
+         this.activeDictionaryKey.postData.ibDefaultEndTime = this.configs.ibDefaultEndTime ? new Date(this.configs.ibDefaultEndTime) : undefined;
208 208
          this.activeDictionaryKey.postData.ibDefaultDayStart[0].checked = this.configs.ibDefaultDayStart == 1;
209 209
          this.activeDictionaryKey.postData.ibDefaultDayEnd[0].checked = this.configs.ibDefaultDayEnd == 1;
210 210
 
211
-         this.activeDictionaryKey.postData.ib2ActiveStartTime1 = this.configs.ib2ActiveStartTime1 || undefined;
212
-         this.activeDictionaryKey.postData.ib2ActiveEndTime1 = this.configs.ib2ActiveEndTime1 || undefined;
213
-         this.activeDictionaryKey.postData.ib2ActiveStartTime2 = this.configs.ib2ActiveStartTime2 || undefined;
214
-         this.activeDictionaryKey.postData.ib2ActiveEndTime2 = this.configs.ib2ActiveEndTime2 || undefined;
215
-         this.activeDictionaryKey.postData.ib2DefaultStartTime = this.configs.ib2DefaultStartTime || undefined;
216
-         this.activeDictionaryKey.postData.ib2DefaultEndTime = this.configs.ib2DefaultEndTime || undefined;
211
+         this.activeDictionaryKey.postData.ib2ActiveStartTime1 = this.configs.ib2ActiveStartTime1 ? new Date(this.configs.ib2ActiveStartTime1) : undefined;
212
+         this.activeDictionaryKey.postData.ib2ActiveEndTime1 = this.configs.ib2ActiveEndTime1 ? new Date(this.configs.ib2ActiveEndTime1) : undefined;
213
+         this.activeDictionaryKey.postData.ib2ActiveStartTime2 = this.configs.ib2ActiveStartTime2 ? new Date(this.configs.ib2ActiveStartTime2) : undefined;
214
+         this.activeDictionaryKey.postData.ib2ActiveEndTime2 = this.configs.ib2ActiveEndTime2 ? new Date(this.configs.ib2ActiveEndTime2) : undefined;
215
+         this.activeDictionaryKey.postData.ib2DefaultStartTime = this.configs.ib2DefaultStartTime ? new Date(this.configs.ib2DefaultStartTime) : undefined;
216
+         this.activeDictionaryKey.postData.ib2DefaultEndTime = this.configs.ib2DefaultEndTime ? new Date(this.configs.ib2DefaultEndTime) : undefined;
217 217
          this.activeDictionaryKey.postData.ib2DefaultDayStart[0].checked = this.configs.ib2DefaultDayStart == 1;
218 218
          this.activeDictionaryKey.postData.ib2DefaultDayEnd[0].checked = this.configs.ib2DefaultDayEnd == 1;
219 219
        }

+ 1 - 1
src/app/views/patient-inspect-log-detail/patient-inspect-log-detail.component.html

@@ -45,7 +45,7 @@
45 45
           <div class="info" nz-row>
46 46
             <div nz-col nzSpan="6">关联检查项目:{{ orderInfo.state && (orderInfo.state.value == 1 || orderInfo.state.value == 2) ? orderInfo.planInspectCount : orderInfo. inspectCount }}</div>
47 47
             <div nz-col nzSpan="6">状态:{{ orderInfo.state?.name }}</div>
48
-            <div nz-col nzSpan="6">携带设备:{{ orderInfo.goodsType?.name }}</div>
48
+            <div nz-col nzSpan="6">携带设备:{{ orderInfo.goodsNames }}</div>
49 49
             <div nz-col nzSpan="6">出行方式:{{ orderInfo.tripTypeDTO?.inspectMode }}</div>
50 50
           </div>
51 51
 

+ 5 - 1
src/app/views/patient-inspect-log-detail/patient-inspect-log-detail.component.ts

@@ -66,7 +66,11 @@ export class PatientInspectLogDetailComponent implements OnInit {
66 66
           this.message.remove(this.maskFlag);
67 67
           this.maskFlag = false;
68 68
         }
69
-        this.orderInfo = data.data || {};
69
+        let orderInfo = data.data || {};
70
+        if(orderInfo.goodsList){
71
+          orderInfo.goodsNames = orderInfo.goodsList.map(v => v.name).toString();
72
+        }
73
+        this.orderInfo = orderInfo;
70 74
       });
71 75
   }
72 76
 

+ 1 - 1
src/app/views/patient-inspect-log/patient-inspect-log.component.html

@@ -64,7 +64,7 @@
64 64
             <td>{{data.careLevel?.name}}<br>{{data.illnessState?.name}}</td>
65 65
             <td>{{data.outDeptTime | date:'yyyy-MM-dd HH:mm'}}<br>{{data.outDeptUserDTO?.name}}</td>
66 66
             <td>{{data.backDeptTime | date:'yyyy-MM-dd HH:mm'}}<br>{{data.backDeptUserDTO?.name}}</td>
67
-            <td>{{data.goodsType?.name}}<br>{{data.tripTypeDTO?.inspectMode}}</td>
67
+            <td>{{data.goodsNames}}<br>{{data.tripTypeDTO?.inspectMode}}</td>
68 68
             <td>{{data.yyTime | date:'yyyy-MM-dd HH:mm'}}</td>
69 69
             <td>{{data.state?.name}}</td>
70 70
             <td>

+ 9 - 1
src/app/views/patient-inspect-log/patient-inspect-log.component.ts

@@ -98,7 +98,15 @@ export class PatientInspectLogComponent implements OnInit {
98 98
       .subscribe((data) => {
99 99
         this.loading1 = false;
100 100
         if (data.status == 200) {
101
-          this.listOfData = data.list;
101
+          let listOfData = data.list || [];
102
+          listOfData.forEach((v) => {
103
+            if(v.goodsList){
104
+              v.goodsNames = v.goodsList.map(v => v.name).toString();
105
+            }else{
106
+              v.goodsNames = "";
107
+            }
108
+          })
109
+          this.listOfData = listOfData;
102 110
           this.listLength = data.totalNum;
103 111
         }else{
104 112
           this.message.error(data.msg || "请求数据失败");