Browse Source

新增字段展示

seimin 2 years ago
parent
commit
a5d31a9fc2

+ 7 - 2
src/app/services/main.service.ts

@@ -48,13 +48,18 @@ export class MainService {
48 48
   }
49 49
   // 字典表
50 50
   cachedDictionary = {}; //缓存到内存的字典
51
-  getDictionary(type, key): any {
51
+  getDictionary(type, key, flag = false): any {
52 52
     const data = {
53 53
       type: type,
54 54
       key: key,
55 55
     };
56 56
     console.log(this.cachedDictionary, "------------db");
57
-    if (this.cachedDictionary[key]) {
57
+    if (flag) {
58
+      //特殊情况下处理,flag是true
59
+      return this.http.post(host.host + "/common/common/getDictionary", data, {
60
+        headers: this.headers,
61
+      });
62
+    } else if (this.cachedDictionary[key]) {
58 63
       return new Observable((observer) => {
59 64
         observer.next(this.cachedDictionary[key]);
60 65
       });

+ 8 - 6
src/app/share/appraise-detail/appraise-detail.component.html

@@ -3,9 +3,9 @@
3 3
   <div class="title">差评查看<i class="icon_transport transport-guanbi" (click)="close()"></i></div>
4 4
   <div class="box">
5 5
     <div class="tab display_flex">
6
-      <div [ngClass]="{'item':true, 'flex_1':true, checked:tabType==1}" (click)="checkTab(1)">工单信息</div>
7
-      <div [ngClass]="{'item':true, 'flex_1':true, checked:tabType==2}" (click)="checkTab(2)">评价内容</div>
8
-      <div [ngClass]="{'item':true, 'flex_1':true, checked:tabType==3}" (click)="checkTab(3)">调解</div>
6
+      <div [ngClass]="{'item':true, 'flex_1':true, 'checked':tabType==1}" (click)="checkTab(1)">工单信息</div>
7
+      <div [ngClass]="{'item':true, 'flex_1':true, 'checked':tabType==2}" (click)="checkTab(2)">评价内容</div>
8
+      <div [ngClass]="{'item':true, 'flex_1':true, 'checked':tabType==3}" (click)="checkTab(3)">调解</div>
9 9
     </div>
10 10
     <!-- 其他类型工单信息 -->
11 11
     <div *ngIf="(tabType==1)&&(orderInfo.workOrderObj.taskType.associationType.value=='other')" class="content orders">
@@ -116,12 +116,13 @@
116 116
                 <th nzWidth="95px">标本类型</th>
117 117
                 <th nzWidth="110px">标本编码</th>
118 118
                 <th nzWidth="88px">患者姓名</th>
119
+                <th nzWidth="88px">住院号</th>
119 120
                 <th nzWidth="50px">床号</th>
120 121
                 <th nzWidth="88px">目标科室</th>
121 122
                 <!-- <th nzWidth="75px">是否接收</th> -->
122 123
                 <!-- <th nzWidth="75px">是否送达</th> -->
123 124
                 <th nzWidth="123px">接收扫描时间</th>
124
-                <th nzWidth="123px">送达扫描时间</th>
125
+                <!-- <th nzWidth="123px">送达扫描时间</th> -->
125 126
               </tr>
126 127
             </thead>
127 128
             <tbody *ngIf="orderInfo.workOrderObj.specimenSet">
@@ -131,12 +132,13 @@
131 132
                 <td>{{data.stype?data.stype.name:''}}</td>
132 133
                 <td>{{data.scode}}</td>
133 134
                 <td>{{data.patientName}}</td>
135
+                <td>{{data.residenceNo}}</td>
134 136
                 <td>{{data.bedNum}}</td>
135 137
                 <td>{{data.checkDept.dept}}</td>
136 138
                 <!-- <td>{{data.received?"是":"否"}}</td> -->
137 139
                 <!-- <td>{{data.arrived?"是":"否"}}</td> -->
138
-                <td>{{data.arriveTime|date:'yyyy-MM-dd HH:mm'}}</td>
139
-                <td>{{data.sendTime|date:'yyyy-MM-dd HH:mm'}}</td>
140
+                <td>{{data.arriveTime|date:'MM-dd HH:mm'}}</td>
141
+                <!-- <td>{{data.sendTime|date:'yyyy-MM-dd HH:mm'}}</td> -->
140 142
               </tr>
141 143
             </tbody>
142 144
           </nz-table>

+ 6 - 0
src/app/share/appraise-detail/appraise-detail.component.less

@@ -13,6 +13,12 @@
13 13
   justify-content: center;
14 14
   align-items: center;
15 15
 }
16
+.ji {
17
+  position: absolute;
18
+  right: 0px;
19
+  top: -3px;
20
+  width: 30px;
21
+}
16 22
 
17 23
 .detail {
18 24
   width: 1000px;

+ 3 - 3
src/app/share/appraise-detail/appraise-detail.component.ts

@@ -2,8 +2,8 @@ import { Component, OnInit } from "@angular/core";
2 2
 import { ActivatedRoute } from "@angular/router";
3 3
 import { FormBuilder, Validators, FormGroup } from "@angular/forms";
4 4
 import { MainService } from "../../services/main.service";
5
-import { NzMessageService } from "ng-zorro-antd";
6 5
 import { forkJoin } from "rxjs";
6
+import { NzMessageService } from "ng-zorro-antd";
7 7
 
8 8
 @Component({
9 9
   selector: "app-appraise-detail",
@@ -19,7 +19,7 @@ export class AppraiseDetailComponent implements OnInit {
19 19
   ) {}
20 20
 
21 21
   id: number; //工单id
22
-  orderInfo; //工单详情信息
22
+  orderInfo:any = {}; //工单详情信息
23 23
   showCoop: boolean = true; //是否展示详情页操作按钮
24 24
   loginUser: any = localStorage.getItem("user")
25 25
     ? JSON.parse(localStorage.getItem("user")).user
@@ -86,7 +86,7 @@ export class AppraiseDetailComponent implements OnInit {
86 86
   // 获取所有院区
87 87
   allHandleType: any = [];
88 88
   getAllHandleType() {
89
-    return this.mainService.getDictionary("list", "bad_evaluation_handle_type");
89
+    return this.mainService.getDictionary("list", "bad_evaluation_handle_type",true);
90 90
   }
91 91
 
92 92
   // 初始化新增form表单

+ 6 - 4
src/app/share/detail-sample/detail-sample.component.html

@@ -61,12 +61,13 @@
61 61
               <th nzWidth="95px">标本类型</th>
62 62
               <th nzWidth="110px">标本编码</th>
63 63
               <th nzWidth="88px">患者姓名</th>
64
+              <th nzWidth="88px">住院号</th>
64 65
               <th nzWidth="50px">床号</th>
65 66
               <th nzWidth="88px">目标科室</th>
66 67
               <!-- <th nzWidth="75px">是否接收</th> -->
67 68
               <!-- <th nzWidth="75px">是否送达</th> -->
68 69
               <th nzWidth="123px">接收扫描时间</th>
69
-              <th nzWidth="123px">送达扫描时间</th>
70
+              <!-- <th nzWidth="123px">送达扫描时间</th> -->
70 71
             </tr>
71 72
           </thead>
72 73
           <tbody *ngIf="orderInfo.specimenSet">
@@ -76,13 +77,14 @@
76 77
               <td>{{data.stype?data.stype.name:''}}</td>
77 78
               <td>{{data.scode}}</td>
78 79
               <td>{{data.patientName}}</td>
80
+              <td>{{data.residenceNo}}</td>
79 81
               <td>{{data.bedNum}}</td>
80 82
               <td>{{!showCoop&&deptDisplay==2?data.checkDept.deptalias:data.checkDept.dept}}</td>
81 83
               <!-- <td>{{data.received?"是":"否"}}</td> -->
82 84
               <!-- <td>{{data.arrived?"是":"否"}}</td> -->
83
-              <td>{{data.arriveTime?data.arriveTime:'-'}}</td>
84
-              <td style="position: relative;">{{data.sendTime?data.sendTime:'-'}}<img *ngIf="data.urgent == 1"
85
-                  src="../../assets/images/icon_ji.png" alt="" class="ji"></td>
85
+              <td>{{data.arriveTime|date:'MM-dd HH:mm'}}<img *ngIf="data.urgent == 1||true"
86
+                src="../../assets/images/icon_ji.png" alt="" class="ji"></td>
87
+              <!-- <td style="position: relative;">{{data.sendTime?data.sendTime:'-'}}</td> -->
86 88
             </tr>
87 89
           </tbody>
88 90
         </nz-table>

+ 12 - 8
src/app/share/order-detail/order-detail.component.html

@@ -133,12 +133,13 @@
133 133
                   <th nzWidth="95px">标本类型</th>
134 134
                   <th nzWidth="110px">标本编码</th>
135 135
                   <th nzWidth="88px">患者姓名</th>
136
+                  <th nzWidth="88px">住院号</th>
136 137
                   <th nzWidth="50px">床号</th>
137 138
                   <th nzWidth="88px">目标科室</th>
138 139
                   <!-- <th nzWidth="75px">是否接收</th> -->
139 140
                   <!-- <th nzWidth="75px">是否送达</th> -->
140 141
                   <th nzWidth="123px">接收扫描时间</th>
141
-                  <th nzWidth="123px">送达扫描时间</th>
142
+                  <!-- <th nzWidth="123px">送达扫描时间</th> -->
142 143
                 </tr>
143 144
               </thead>
144 145
               <tbody *ngIf="orderInfo.specimenSet">
@@ -148,13 +149,14 @@
148 149
                   <td>{{data.stype?data.stype.name:''}}</td>
149 150
                   <td>{{data.scode}}</td>
150 151
                   <td>{{data.patientName}}</td>
152
+                  <td>{{data.residenceNo}}</td>
151 153
                   <td>{{data.bedNum}}</td>
152 154
                   <td>{{data.checkDept.dept}}</td>
153 155
                   <!-- <td>{{data.received?"是":"否"}}</td> -->
154 156
                   <!-- <td>{{data.arrived?"是":"否"}}</td> -->
155
-                  <td>{{data.arriveTime|date:'yyyy-MM-dd HH:mm'}}</td>
156
-                  <td style="position: relative;">{{data.sendTime|date:'yyyy-MM-dd HH:mm'}}<img *ngIf="data.urgent == 1"
157
-                      src="../../assets/images/icon_ji.png" alt="" class="ji"></td>
157
+                  <td>{{data.arriveTime|date:'MM-dd HH:mm'}}<img *ngIf="data.urgent == 1"
158
+                    src="../../assets/images/icon_ji.png" alt="" class="ji"></td>
159
+                  <!-- <td style="position: relative;">{{data.sendTime|date:'yyyy-MM-dd HH:mm'}}</td> -->
158 160
                 </tr>
159 161
               </tbody>
160 162
             </nz-table>
@@ -225,12 +227,13 @@
225 227
                   <th nzWidth="95px">标本类型</th>
226 228
                   <th nzWidth="110px">标本编码</th>
227 229
                   <th nzWidth="88px">患者姓名</th>
230
+                  <th nzWidth="88px">住院号</th>
228 231
                   <th nzWidth="50px">床号</th>
229 232
                   <th nzWidth="88px">目标科室</th>
230 233
                   <!-- <th nzWidth="75px">是否接收</th> -->
231 234
                   <!-- <th nzWidth="75px">是否送达</th> -->
232 235
                   <th nzWidth="123px">接收扫描时间</th>
233
-                  <th nzWidth="123px">送达扫描时间</th>
236
+                  <!-- <th nzWidth="123px">送达扫描时间</th> -->
234 237
                 </tr>
235 238
               </thead>
236 239
               <tbody *ngIf="orderInfo.specimenSet">
@@ -240,13 +243,14 @@
240 243
                   <td>{{data.stype?data.stype.name:''}}</td>
241 244
                   <td>{{data.scode}}</td>
242 245
                   <td>{{data.patientName}}</td>
246
+                  <td>{{data.residenceNo}}</td>
243 247
                   <td>{{data.bedNum}}</td>
244 248
                   <td>{{data.checkDept.dept}}</td>
245 249
                   <!-- <td>{{data.received?"是":"否"}}</td> -->
246 250
                   <!-- <td>{{data.arrived?"是":"否"}}</td> -->
247
-                  <td>{{data.arriveTime|date:'yyyy-MM-dd HH:mm'}}</td>
248
-                  <td style="position: relative;">{{data.sendTime|date:'yyyy-MM-dd HH:mm'}}<img *ngIf="data.urgent == 1"
249
-                      src="../../assets/images/icon_ji.png" alt="" class="ji"></td>
251
+                  <td>{{data.arriveTime|date:'MM-dd HH:mm'}}<img *ngIf="data.urgent == 1"
252
+                    src="../../assets/images/icon_ji.png" alt="" class="ji"></td>
253
+                  <!-- <td style="position: relative;">{{data.sendTime|date:'yyyy-MM-dd HH:mm'}}</td> -->
250 254
                 </tr>
251 255
               </tbody>
252 256
             </nz-table>

+ 1 - 1
src/main.ts

@@ -8,7 +8,7 @@ if (environment.production) {
8 8
   enableProdMode();
9 9
   if (window) {
10 10
     window.console.log = function () { };
11
-    console.info('2.4.1');
11
+    console.info('v2.4.2');
12 12
   }
13 13
 }
14 14
 platformBrowserDynamic().bootstrapModule(AppModule)