浏览代码

新增字段展示

seimin 2 年之前
父节点
当前提交
a5d31a9fc2

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

@@ -48,13 +48,18 @@ export class MainService {
48
   }
48
   }
49
   // 字典表
49
   // 字典表
50
   cachedDictionary = {}; //缓存到内存的字典
50
   cachedDictionary = {}; //缓存到内存的字典
51
-  getDictionary(type, key): any {
51
+  getDictionary(type, key, flag = false): any {
52
     const data = {
52
     const data = {
53
       type: type,
53
       type: type,
54
       key: key,
54
       key: key,
55
     };
55
     };
56
     console.log(this.cachedDictionary, "------------db");
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
       return new Observable((observer) => {
63
       return new Observable((observer) => {
59
         observer.next(this.cachedDictionary[key]);
64
         observer.next(this.cachedDictionary[key]);
60
       });
65
       });

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

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

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

@@ -13,6 +13,12 @@
13
   justify-content: center;
13
   justify-content: center;
14
   align-items: center;
14
   align-items: center;
15
 }
15
 }
16
+.ji {
17
+  position: absolute;
18
+  right: 0px;
19
+  top: -3px;
20
+  width: 30px;
21
+}
16
 
22
 
17
 .detail {
23
 .detail {
18
   width: 1000px;
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
 import { ActivatedRoute } from "@angular/router";
2
 import { ActivatedRoute } from "@angular/router";
3
 import { FormBuilder, Validators, FormGroup } from "@angular/forms";
3
 import { FormBuilder, Validators, FormGroup } from "@angular/forms";
4
 import { MainService } from "../../services/main.service";
4
 import { MainService } from "../../services/main.service";
5
-import { NzMessageService } from "ng-zorro-antd";
6
 import { forkJoin } from "rxjs";
5
 import { forkJoin } from "rxjs";
6
+import { NzMessageService } from "ng-zorro-antd";
7
 
7
 
8
 @Component({
8
 @Component({
9
   selector: "app-appraise-detail",
9
   selector: "app-appraise-detail",
@@ -19,7 +19,7 @@ export class AppraiseDetailComponent implements OnInit {
19
   ) {}
19
   ) {}
20
 
20
 
21
   id: number; //工单id
21
   id: number; //工单id
22
-  orderInfo; //工单详情信息
22
+  orderInfo:any = {}; //工单详情信息
23
   showCoop: boolean = true; //是否展示详情页操作按钮
23
   showCoop: boolean = true; //是否展示详情页操作按钮
24
   loginUser: any = localStorage.getItem("user")
24
   loginUser: any = localStorage.getItem("user")
25
     ? JSON.parse(localStorage.getItem("user")).user
25
     ? JSON.parse(localStorage.getItem("user")).user
@@ -86,7 +86,7 @@ export class AppraiseDetailComponent implements OnInit {
86
   // 获取所有院区
86
   // 获取所有院区
87
   allHandleType: any = [];
87
   allHandleType: any = [];
88
   getAllHandleType() {
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
   // 初始化新增form表单
92
   // 初始化新增form表单

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

@@ -61,12 +61,13 @@
61
               <th nzWidth="95px">标本类型</th>
61
               <th nzWidth="95px">标本类型</th>
62
               <th nzWidth="110px">标本编码</th>
62
               <th nzWidth="110px">标本编码</th>
63
               <th nzWidth="88px">患者姓名</th>
63
               <th nzWidth="88px">患者姓名</th>
64
+              <th nzWidth="88px">住院号</th>
64
               <th nzWidth="50px">床号</th>
65
               <th nzWidth="50px">床号</th>
65
               <th nzWidth="88px">目标科室</th>
66
               <th nzWidth="88px">目标科室</th>
66
               <!-- <th nzWidth="75px">是否接收</th> -->
67
               <!-- <th nzWidth="75px">是否接收</th> -->
67
               <!-- <th nzWidth="75px">是否送达</th> -->
68
               <!-- <th nzWidth="75px">是否送达</th> -->
68
               <th nzWidth="123px">接收扫描时间</th>
69
               <th nzWidth="123px">接收扫描时间</th>
69
-              <th nzWidth="123px">送达扫描时间</th>
70
+              <!-- <th nzWidth="123px">送达扫描时间</th> -->
70
             </tr>
71
             </tr>
71
           </thead>
72
           </thead>
72
           <tbody *ngIf="orderInfo.specimenSet">
73
           <tbody *ngIf="orderInfo.specimenSet">
@@ -76,13 +77,14 @@
76
               <td>{{data.stype?data.stype.name:''}}</td>
77
               <td>{{data.stype?data.stype.name:''}}</td>
77
               <td>{{data.scode}}</td>
78
               <td>{{data.scode}}</td>
78
               <td>{{data.patientName}}</td>
79
               <td>{{data.patientName}}</td>
80
+              <td>{{data.residenceNo}}</td>
79
               <td>{{data.bedNum}}</td>
81
               <td>{{data.bedNum}}</td>
80
               <td>{{!showCoop&&deptDisplay==2?data.checkDept.deptalias:data.checkDept.dept}}</td>
82
               <td>{{!showCoop&&deptDisplay==2?data.checkDept.deptalias:data.checkDept.dept}}</td>
81
               <!-- <td>{{data.received?"是":"否"}}</td> -->
83
               <!-- <td>{{data.received?"是":"否"}}</td> -->
82
               <!-- <td>{{data.arrived?"是":"否"}}</td> -->
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
             </tr>
88
             </tr>
87
           </tbody>
89
           </tbody>
88
         </nz-table>
90
         </nz-table>

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

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

+ 1 - 1
src/main.ts

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