Browse Source

5本工单的详情页,增加“业务数据”按钮

seimin 1 year ago
parent
commit
965c7a0dfb

+ 1 - 1
proxy.conf.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "/service": {
3
-    "target": "http://192.168.3.108",
3
+    "target": "http://192.168.4.223",
4 4
     "logLevel": "debug",
5 5
     "changeOrigin": true,
6 6
     "pathRewrite": {

+ 0 - 45
src/app/share/blood-detail-modal/blood-detail-modal.component.html

@@ -1,45 +0,0 @@
1
-<div class="modal display_flex justify-content_flex-center align-items_center" *ngIf="show">
2
-  <div class="modalBody" style="width: 1200px;">
3
-    <div class="title">业务数据查看<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
4
-    <div class="content">
5
-      <nz-table class="hospitalTable" [nzData]="historySpecimenList" nzSize="middle" [nzShowPagination]="false"
6
-        [nzLoading]="hsLoading" [nzScroll]="{ y: '500px' }">
7
-        <thead>
8
-          <tr class="thead">
9
-            <th nzWidth="5%">序号</th>
10
-            <th nzWidth="13%">患者姓名</th>
11
-            <th nzWidth="11%">患者ID</th>
12
-            <th nzWidth="11%">血液类型</th>
13
-            <th nzWidth="14%">血袋号</th>
14
-            <th nzWidth="11%">取血人</th>
15
-            <th nzWidth="12%">取血时间</th>
16
-            <th nzWidth="11%">接收人</th>
17
-            <th nzWidth="12%">接收时间</th>
18
-          </tr>
19
-        </thead>
20
-        <tbody>
21
-          <tr *ngFor="let bloodDTO of historySpecimenList;let i = index;">
22
-            <td>{{i+1}}</td>
23
-            <td><span>{{ bloodDTO.patientName }}<span *ngIf="bloodDTO.bedNum">({{ bloodDTO.bedNum }})</span></span></td>
24
-            <td>{{ bloodDTO.patientNo||'' }}</td>
25
-            <td>{{ bloodDTO.type ? bloodDTO.type.name : "" }}</td>
26
-            <td>{{ bloodDTO.bloodCode||'' }}</td>
27
-            <td>{{ bloodDTO.arriverDTO?bloodDTO.arriverDTO.name:'' }}</td>
28
-            <td>{{ bloodDTO.arriveTime | date:"yyyy-MM-dd HH:mm:ss" }}</td>
29
-            <td></td>
30
-            <td>{{ bloodDTO.receiveTime | date:"yyyy-MM-dd HH:mm:ss" }}</td>
31
-          </tr>
32
-        </tbody>
33
-      </nz-table>
34
-      <!-- <div class="pagination">
35
-        <nz-pagination [(nzPageIndex)]="historySpecimenPageIndex" [(nzTotal)]="historySpecimenListLength"
36
-          [(nzPageSize)]="historySpecimenPageSize" (nzPageIndexChange)="getHistorySpecimen()"
37
-          (nzPageSizeChange)="getHistorySpecimen()">
38
-        </nz-pagination>
39
-      </div> -->
40
-    </div>
41
-    <div class="display_flex justify-content_flex-center">
42
-      <button class="btn know" nz-button nzType="primary" (click)="hideModal()">知道了</button>
43
-    </div>
44
-  </div>
45
-</div>

+ 0 - 49
src/app/share/blood-detail-modal/blood-detail-modal.component.ts

@@ -1,49 +0,0 @@
1
-import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
2
-import { MainService } from '../../services/main.service';
3
-
4
-@Component({
5
-  selector: 'app-blood-detail-modal',
6
-  templateUrl: './blood-detail-modal.component.html',
7
-  styleUrls: ['./blood-detail-modal.component.less']
8
-})
9
-export class BloodDetailModalComponent implements OnInit {
10
-  // 切换科室,切换弹窗
11
-  hsLoading = false;
12
-  historySpecimenList: any = [];
13
-  historySpecimenPageIndex: number = 1;//表格当前页码
14
-  historySpecimenPageSize: number = 5;//表格每页展示条数
15
-  historySpecimenListLength: number = 10;//表格总数据量
16
-  @Input() show: Boolean;
17
-  @Input() orderId: String;
18
-
19
-  @Output() closeModelHs = new EventEmitter<any>();//1.组件暴露一个 EventEmitter 属性,当事件发生时,子组件利用该属性 emits(向上弹射)事件
20
-
21
-  constructor(private mainService: MainService) { }
22
-
23
-  ngOnInit() {
24
-    this.getHistorySpecimen();
25
-  }
26
-  // 关闭弹窗
27
-  hideModal() {
28
-    this.closeModelHs.emit(JSON.stringify({ show: false }));//emits(向上弹射)事件
29
-  }
30
-  // 获取列表数据
31
-  getHistorySpecimen(idx?) {
32
-    if (idx) {
33
-      this.historySpecimenPageIndex = 1;
34
-    }
35
-    let postData = {
36
-      "type": "blood",
37
-      "orderId": this.orderId
38
-    }
39
-    this.hsLoading = true;
40
-    this.mainService.checkData(postData).subscribe((data:any) => {
41
-      this.hsLoading = false;
42
-      this.historySpecimenList = data.data ? data.data.all : [];
43
-      this.historySpecimenListLength = data.data ? data.data.all.length : 0;
44
-    })
45
-  }
46
-}
47
-
48
-
49
-

+ 106 - 0
src/app/share/businessData-detail-modal/businessData-detail-modal.component.html

@@ -0,0 +1,106 @@
1
+<div class="modal display_flex justify-content_flex-center align-items_center" *ngIf="show">
2
+  <div class="modalBody" style="width: 1200px;">
3
+    <div class="title">业务数据查看<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
4
+    <div class="content">
5
+      <nz-table *ngIf="type === 'blood'" class="hospitalTable" [nzData]="bloodList" nzSize="middle" [nzShowPagination]="false"
6
+        [nzLoading]="hsLoading" [nzScroll]="{ y: '500px' }">
7
+        <thead>
8
+          <tr class="thead">
9
+            <th nzWidth="5%">序号</th>
10
+            <th nzWidth="13%">患者姓名</th>
11
+            <th nzWidth="11%">患者ID</th>
12
+            <th nzWidth="11%">血液类型</th>
13
+            <th nzWidth="14%">血袋号</th>
14
+            <th nzWidth="11%">取血人</th>
15
+            <th nzWidth="12%">取血时间</th>
16
+            <th nzWidth="11%">接收人</th>
17
+            <th nzWidth="12%">接收时间</th>
18
+          </tr>
19
+        </thead>
20
+        <tbody>
21
+          <tr *ngFor="let data of bloodList;let i = index;">
22
+            <td>{{i+1}}</td>
23
+            <td><span>{{ data.patientName }}<span *ngIf="data.bedNum">({{ data.bedNum }})</span></span></td>
24
+            <td>{{ data.patientNo||'' }}</td>
25
+            <td>{{ data.type ? data.type.name : "" }}</td>
26
+            <td>{{ data.bloodCode||'' }}</td>
27
+            <td>{{ data.arriverDTO?data.arriverDTO.name:'' }}</td>
28
+            <td>{{ data.arriveTime | date:"yyyy-MM-dd HH:mm:ss" }}</td>
29
+            <td></td>
30
+            <td>{{ data.receiveTime | date:"yyyy-MM-dd HH:mm:ss" }}</td>
31
+          </tr>
32
+        </tbody>
33
+      </nz-table>
34
+      <!-- <div class="tab display_flex" *ngIf="type === 'specimen'">
35
+        <div class="item flex_1" [ngClass]="{ checked: tabType == item.id }" *ngFor="let item of specimentTypeList" (click)="checkTab(item.id)">
36
+          {{ item.name }}
37
+        </div>
38
+      </div> -->
39
+      <div class="list-template w100">
40
+        <div class="list-template__content">
41
+          <div class="list-template__top" nz-row *ngIf="type === 'specimen'">
42
+            <div nz-col nzXl='24' class="list-template__searchBox">
43
+              <div class="list-template__searchItem">
44
+                <span class="label">标本类型</span>:
45
+                <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzAllowClear
46
+                  nzPlaceHolder="请选择标本类型" [(ngModel)]="searchCriteria.stype" (ngModelChange)="selectStype($event)">
47
+                  <nz-option *ngFor="let option of specimentTypeList" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
48
+                </nz-select>
49
+              </div>
50
+            </div>
51
+          </div>
52
+        </div>
53
+      </div>
54
+
55
+      <nz-table *ngIf="type === 'specimen'" class="hospitalTable" [nzData]="specimenList" nzSize="middle" [nzShowPagination]="false"
56
+        [nzLoading]="hsLoading" [nzScroll]="{ y: '500px' }">
57
+        <thead>
58
+          <tr class="thead">
59
+            <th nzWidth="4%">序号</th>
60
+            <th nzWidth="8%">申请科室</th>
61
+            <th nzWidth="8%">患者姓名</th>
62
+            <th nzWidth="8%">标本编码</th>
63
+            <th nzWidth="8%">检验项目</th>
64
+            <th nzWidth="8%">标本类型</th>
65
+            <th nzWidth="8%">状态</th>
66
+            <th nzWidth="8%">收取时间</th>
67
+            <th nzWidth="8%">收取人</th>
68
+            <th nzWidth="8%">中转时间</th>
69
+            <th nzWidth="8%">送达时间</th>
70
+            <th nzWidth="8%">送达人</th>
71
+            <th nzWidth="8%">终点科室</th>
72
+          </tr>
73
+        </thead>
74
+        <tbody>
75
+          <tr *ngFor="let data of specimenList;let i = index;">
76
+            <td>{{ (pageIndex - 1) * pageSize + i + 1 }}</td>
77
+            <td>{{ data.sickRoom ? data.sickRoom.dept : "-" }}</td>
78
+            <td>{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span><br>{{data.residenceNo}}</td>
79
+            <td>{{ data.scode || "-" }}</td>
80
+            <td>{{ data.specimenDesc || "-" }}</td>
81
+            <td>{{ data.stype ? data.stype.name : "-" }}</td>
82
+            <td>{{ data.speState ? data.speState.name : "-" }}</td>
83
+            <td>{{ data.arriveTime || "-" }}</td>
84
+            <td>{{ data.receiverName || "-" }}</td>
85
+            <td>{{ data.transTime || '-' }}</td>
86
+            <td>{{ data.sendTime || '-' }}</td>
87
+            <td>{{ data.delivererName || "-" }}</td>
88
+            <td>
89
+              {{ data.checkDept ? data.checkDept.dept : "-" }}
90
+              <img *ngIf="data.urgent == 1" src="../../assets/images/icon_ji.png" alt="" class="ji" />
91
+            </td>
92
+          </tr>
93
+        </tbody>
94
+      </nz-table>
95
+      <div class="pagination" *ngIf="type !== 'blood'">
96
+        <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="total"
97
+          [(nzPageSize)]="pageSize" (nzPageIndexChange)="getList()"
98
+          (nzPageSizeChange)="getList()">
99
+        </nz-pagination>
100
+      </div>
101
+    </div>
102
+    <div class="display_flex justify-content_flex-center">
103
+      <button class="btn know" nz-button nzType="primary" (click)="hideModal()">知道了</button>
104
+    </div>
105
+  </div>
106
+</div>

+ 38 - 1
src/app/share/blood-detail-modal/blood-detail-modal.component.less

@@ -11,6 +11,7 @@
11 11
     width: 100%;
12 12
     td {
13 13
       text-align: center !important;
14
+      position: relative;
14 15
     }
15 16
     .thead {
16 17
       background-image: linear-gradient(to right, @bg-start, @bg-end);
@@ -22,6 +23,41 @@
22 23
     }
23 24
   }
24 25
 
26
+  .ji {
27
+    position: absolute;
28
+    right: 0px;
29
+    top: -3px;
30
+    width: 30px;
31
+  }
32
+
33
+  .list-template__top{
34
+    div{
35
+      text-align: left!important;
36
+    }
37
+  }
38
+
39
+  .tab {
40
+    width: 100%;
41
+    height: 60px;
42
+    border-bottom: 1px solid #e5e9ed;
43
+    background-color: #fff;
44
+
45
+    .item {
46
+      text-align: center;
47
+      line-height: 60px;
48
+      height: 100%;
49
+      border-right: 1px solid #e5e9ed;
50
+
51
+      &:nth-last-child(1) {
52
+        border: none;
53
+      }
54
+
55
+      &.checked {
56
+        background: #f0f6ed;
57
+      }
58
+    }
59
+  }
60
+
25 61
   .modalBody {
26 62
     width: 700px;
27 63
     min-height: 220px;
@@ -107,7 +143,8 @@
107 143
         &:nth-child(3) {
108 144
           font-size: 14px;
109 145
           color: #666;
110
-          padding-bottom: 10px;
146
+          padding-top: 16px;
147
+          padding-bottom: 16px;
111 148
         }
112 149
       }
113 150
     }

+ 122 - 0
src/app/share/businessData-detail-modal/businessData-detail-modal.component.ts

@@ -0,0 +1,122 @@
1
+import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
2
+import { MainService } from '../../services/main.service';
3
+import { ToolService } from 'src/app/services/tool.service';
4
+
5
+@Component({
6
+  selector: 'app-businessData-detail-modal',
7
+  templateUrl: './businessData-detail-modal.component.html',
8
+  styleUrls: ['./businessData-detail-modal.component.less']
9
+})
10
+export class BusinessDataDetailModalComponent implements OnInit {
11
+  // 切换科室,切换弹窗
12
+  hosId;
13
+  hsLoading = false;
14
+  bloodList: any = [];// 血制品列表
15
+  specimenList: any = [];// 标本列表
16
+  pageIndex: number = 1;//表格当前页码
17
+  pageSize: number = 5;//表格每页展示条数
18
+  total: number = 0;//表格总数据量
19
+  searchCriteria:any = {
20
+    stype: null,
21
+  }
22
+  @Input() show: Boolean;
23
+  @Input() orderId: String;
24
+  @Input() type: String = '';
25
+
26
+  @Output() closeModelHs = new EventEmitter<any>();//1.组件暴露一个 EventEmitter 属性,当事件发生时,子组件利用该属性 emits(向上弹射)事件
27
+
28
+  constructor(private mainService: MainService, private tool: ToolService) { }
29
+
30
+  ngOnInit() {
31
+    this.hosId = this.tool.getCurrentHospital().id;
32
+    this.tabType = 1;
33
+    switch(this.type){
34
+      case 'blood':
35
+        this.getBlood(1);
36
+        break;
37
+      case 'specimen':
38
+          this.getSpecimen(1);
39
+          this.getSpecimenType();
40
+          break;
41
+    }
42
+  }
43
+  // 关闭弹窗
44
+  hideModal() {
45
+    this.closeModelHs.emit(JSON.stringify({ show: false }));//emits(向上弹射)事件
46
+  }
47
+
48
+  // 切换tab栏
49
+  tabType: number = 1; //tab栏
50
+  checkTab(type) {
51
+    this.tabType = type;
52
+  }
53
+
54
+  // 切换标本类型下拉框
55
+  selectStype(e){
56
+    console.log(e);
57
+    this.getSpecimen(1)
58
+  }
59
+
60
+  // 分页获取数据
61
+  getList(){
62
+    switch(this.type){
63
+      case 'blood':
64
+        this.getBlood();
65
+        break;
66
+      case 'specimen':
67
+          this.getSpecimen();
68
+          break;
69
+    }
70
+  }
71
+
72
+  // 获取列表数据
73
+  getBlood(idx?) {
74
+    if (idx) {
75
+      this.pageIndex = 1;
76
+    }
77
+    let postData = {
78
+      "type": "blood",
79
+      "orderId": this.orderId
80
+    }
81
+    this.hsLoading = true;
82
+    this.mainService.checkData(postData).subscribe((data:any) => {
83
+      this.hsLoading = false;
84
+      this.bloodList = data.data ? data.data.all : [];
85
+      this.pageSize = this.total = data.data ? data.data.all.length : 0;
86
+    })
87
+  }
88
+
89
+  // 获取标本类型
90
+  specimentTypeList: any[] = [];
91
+  getSpecimenType() {
92
+    this.mainService.getDictionary("list", "specimen_type").subscribe((data:any) => {
93
+      this.specimentTypeList = data || [];
94
+    })
95
+  }
96
+
97
+  // 获取标本列表
98
+  getSpecimen(idx?) {
99
+    if (idx) {
100
+      this.pageIndex = 1;
101
+    }
102
+    let postData = {
103
+      idx: this.pageIndex - 1,
104
+      sum: this.pageSize,
105
+      specimen: {
106
+        orderBy: 'arrive_time desc',
107
+        hosId: this.hosId,
108
+        gdid: this.orderId,
109
+        stype: this.searchCriteria.stype ? { id: this.searchCriteria.stype } : undefined,
110
+      }
111
+    }
112
+    this.hsLoading = true;
113
+    this.mainService.getFetchDataList('simple/data','specimen',postData).subscribe(data => {
114
+      this.hsLoading = false;
115
+      this.specimenList = data.list || [];
116
+      this.total = data.totalNum || 0;
117
+    })
118
+  }
119
+}
120
+
121
+
122
+

+ 2 - 2
src/app/share/detail-blood/detail-blood.component.html

@@ -157,12 +157,12 @@
157 157
 </div>
158 158
 
159 159
 <!-- 业务数据查看 -->
160
-<app-blood-detail-modal
160
+<app-businessData-detail-modal
161 161
   *ngIf="bloodModalShow"
162 162
   [show]="bloodModalShow"
163 163
   [orderId]="orderId"
164 164
   (closeModelHs)="closeModelBlood($event)"
165
-></app-blood-detail-modal>
165
+></app-businessData-detail-modal>
166 166
 
167 167
 <!-- 操作成功/失败提示框 -->
168 168
 <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"

+ 14 - 53
src/app/share/detail-sample/detail-sample.component.html

@@ -55,59 +55,6 @@
55 55
                 [nzLoading]="urgentLoading" nzGhost (click)="urgent()">确认加急</button>
56 56
             </ng-container>
57 57
           </div>
58
-          <div class="amplification">
59
-            <button
60
-              nz-button
61
-              nzType="primary"
62
-              class="btn default"
63
-              (click)="amplification()"
64
-            >
65
-              {{ amplificationShow ? "放大" : "还原" }}
66
-            </button>
67
-          </div>
68
-        </div>
69
-
70
-        <div class="table">
71
-          <nz-table class="detailSampleTable" [nzData]="orderInfo.specimenSet" nzSize="small" [nzShowPagination]="null">
72
-            <thead>
73
-              <tr class="thead">
74
-                <th nzWidth="4%">序号</th>
75
-                <th nzWidth="8%">申请科室</th>
76
-                <th nzWidth="7%">患者姓名</th>
77
-                <th nzWidth="5%">标本编码</th>
78
-                <th nzWidth="8%">检验项目</th>
79
-                <th nzWidth="8%">标本类型</th>
80
-                <th nzWidth="5%">状态</th>
81
-                <th nzWidth="8%">收取时间</th>
82
-                <th nzWidth="8%">收取人</th>
83
-                <th nzWidth="8%">中转时间</th>
84
-                <th nzWidth="8%">送达时间</th>
85
-                <th nzWidth="8%">送达人</th>
86
-                <th nzWidth="8%">终点科室</th>
87
-              </tr>
88
-            </thead>
89
-            <tbody *ngIf="orderInfo.specimenSet">
90
-              <tr *ngFor="let data of orderInfo.specimenSet;let i =index;">
91
-                <td>{{ i + 1 }}</td>
92
-                <td>{{ data.sickRoom ? data.sickRoom.dept : "-" }}</td>
93
-                <td>{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span><br>{{data.residenceNo}}</td>
94
-                <td>{{ data.scode || "-" }}</td>
95
-                <td>{{ data.specimenDesc || "-" }}</td>
96
-                <td>{{ data.stype ? data.stype.name : "-" }}</td>
97
-                <td>{{ data.speState ? data.speState.name : "-" }}</td>
98
-                <td>{{ data.arriveTime || "-" }}</td>
99
-                <td>{{ data.receiverName || "-" }}</td>
100
-                <td>{{ data.transTime || '-' }}</td>
101
-                <td>{{ data.sendTime || '-' }}</td>
102
-                <td>{{ data.delivererName || "-" }}</td>
103
-                <td>
104
-                  {{ data.checkDept ? (!showCoop&&deptDisplay==2?data.checkDept.deptalias:data.checkDept.dept) : "-" }}
105
-                  <img *ngIf="data.urgent == 1"
106
-                  src="../../assets/images/icon_ji.png" alt="" class="ji"></td>
107
-                <!-- <td style="position: relative;">{{data.sendTime?data.sendTime:'-'}}</td> -->
108
-              </tr>
109
-            </tbody>
110
-          </nz-table>
111 58
         </div>
112 59
       </div>
113 60
     </div>
@@ -118,6 +65,9 @@
118 65
       (click)="openRecallModal()">撤回</button>
119 66
     <button *ngIf="showCoop&&(orderInfo.gdState.value==2||orderInfo.gdState.value==3||orderInfo.gdState.value==4)" nz-button
120 67
       nzType="danger" (click)="openDelModal()">删除</button> -->
68
+    <button class="btn default" nz-button nzType="default" (click)="viewDetail(orderInfo, 'specimen')">
69
+      业务数据
70
+    </button>
121 71
     <button class=" btn cancel" nz-button nzType="default" (click)="close()">取消</button>
122 72
   </div>
123 73
 </div>
@@ -158,5 +108,16 @@
158 108
   [info]="promptInfo" (closeModel)="close()">
159 109
   <!-- 2.父组件调用子组件时绑定到这个事件属性,并在事件发生时作出回应。(closeModel)="close()" -->
160 110
 </app-prompt-modal>
111
+
112
+<!-- 业务数据查看 -->
113
+<app-businessData-detail-modal
114
+  *ngIf="businessDataModalShow"
115
+  [show]="businessDataModalShow"
116
+  [type]="businessDataModalType"
117
+  [orderId]="orderId"
118
+  (closeModelHs)="closeModelBlood($event)"
119
+></app-businessData-detail-modal>
120
+
121
+
161 122
 <!-- 遮罩 -->
162 123
 <app-mask *ngIf="maskFlag"></app-mask>

+ 14 - 0
src/app/share/detail-sample/detail-sample.component.ts

@@ -239,4 +239,18 @@ export class DetailSampleComponent implements OnInit {
239 239
     });
240 240
     return this.formatTime(num / 1000);
241 241
   }
242
+
243
+  // 查看业务数据
244
+  businessDataModalShow = false; //业务数据弹窗开关
245
+  businessDataModalType = ''; //业务数据类型
246
+  orderId = ""; //查看业务数据携带
247
+  viewDetail(data, type) {
248
+    this.orderId = data.id;
249
+    this.businessDataModalType = type;
250
+    this.businessDataModalShow = true;
251
+  }
252
+  // 关闭业务数据弹窗
253
+  closeModelBlood(e) {
254
+    this.businessDataModalShow = JSON.parse(e).show;
255
+  }
242 256
 }

+ 9 - 129
src/app/share/order-detail/order-detail.component.html

@@ -277,68 +277,6 @@
277 277
             </div>
278 278
           </div>
279 279
         </div>
280
-        <div class="bottom">
281
-          <div class="amplification">
282
-            <button
283
-              nz-button
284
-              nzType="primary"
285
-              class="btn default"
286
-              (click)="amplification()"
287
-            >
288
-              {{ amplificationShow ? "放大" : "还原" }}
289
-            </button>
290
-          </div>
291
-          <div class="table">
292
-            <nz-table
293
-              [nzData]="orderInfo.specimenSet"
294
-              nzSize="small"
295
-              [nzShowPagination]="null"
296
-            >
297
-              <thead>
298
-                <tr class="thead">
299
-                  <th nzWidth="4%">序号</th>
300
-                  <th nzWidth="8%">申请科室</th>
301
-                  <th nzWidth="7%">患者姓名</th>
302
-                  <th nzWidth="5%">标本编码</th>
303
-                  <th nzWidth="8%">检验项目</th>
304
-                  <th nzWidth="8%">标本类型</th>
305
-                  <th nzWidth="5%">状态</th>
306
-                  <th nzWidth="8%">收取时间</th>
307
-                  <th nzWidth="8%">收取人</th>
308
-                  <th nzWidth="8%">中转时间</th>
309
-                  <th nzWidth="8%">送达时间</th>
310
-                  <th nzWidth="8%">送达人</th>
311
-                  <th nzWidth="8%">终点科室</th>
312
-                </tr>
313
-              </thead>
314
-              <tbody *ngIf="orderInfo.specimenSet">
315
-                <tr *ngFor="let data of orderInfo.specimenSet; let i = index">
316
-                  <td>{{ i + 1 }}</td>
317
-                  <td>{{ data.sickRoom ? data.sickRoom.dept : "-" }}</td>
318
-                  <td>{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span><br>{{data.residenceNo}}</td>
319
-                  <td>{{ data.scode || "-" }}</td>
320
-                  <td>{{ data.specimenDesc || "-" }}</td>
321
-                  <td>{{ data.stype ? data.stype.name : "-" }}</td>
322
-                  <td>{{ data.speState ? data.speState.name : "-" }}</td>
323
-                  <td>{{ data.arriveTime || "-" }}</td>
324
-                  <td>{{ data.receiverName || "-" }}</td>
325
-                  <td>{{ data.transTime || '-' }}</td>
326
-                  <td>{{ data.sendTime || '-' }}</td>
327
-                  <td>{{ data.delivererName || "-" }}</td>
328
-                  <td>
329
-                    {{ data.checkDept ? data.checkDept.dept : "-" }}
330
-                    <img
331
-                      *ngIf="data.urgent == 1"
332
-                      src="../../assets/images/icon_ji.png"
333
-                      alt=""
334
-                      class="ji"
335
-                    />
336
-                  </td>
337
-                </tr>
338
-              </tbody>
339
-            </nz-table>
340
-          </div>
341
-        </div>
342 280
       </div>
343 281
     </overlay-scrollbars>
344 282
     <!-- 标本轮巡工单信息 -->
@@ -448,68 +386,6 @@
448 386
             </div>
449 387
           </div>
450 388
         </div>
451
-        <div class="bottom">
452
-          <div class="amplification">
453
-            <button
454
-              nz-button
455
-              nzType="primary"
456
-              class="btn default"
457
-              (click)="amplification()"
458
-            >
459
-              {{ amplificationShow ? "放大" : "还原" }}
460
-            </button>
461
-          </div>
462
-          <div class="table">
463
-            <nz-table
464
-              [nzData]="orderInfo.specimenSet"
465
-              nzSize="small"
466
-              [nzShowPagination]="null"
467
-            >
468
-              <thead>
469
-                <tr class="thead">
470
-                  <th nzWidth="4%">序号</th>
471
-                  <th nzWidth="8%">申请科室</th>
472
-                  <th nzWidth="7%">患者姓名</th>
473
-                  <th nzWidth="5%">标本编码</th>
474
-                  <th nzWidth="8%">检验项目</th>
475
-                  <th nzWidth="8%">标本类型</th>
476
-                  <th nzWidth="5%">状态</th>
477
-                  <th nzWidth="8%">收取时间</th>
478
-                  <th nzWidth="8%">收取人</th>
479
-                  <th nzWidth="8%">中转时间</th>
480
-                  <th nzWidth="8%">送达时间</th>
481
-                  <th nzWidth="8%">送达人</th>
482
-                  <th nzWidth="8%">终点科室</th>
483
-                </tr>
484
-              </thead>
485
-              <tbody *ngIf="orderInfo.specimenSet">
486
-                <tr *ngFor="let data of orderInfo.specimenSet; let i = index">
487
-                  <td>{{ i + 1 }}</td>
488
-                  <td>{{ data.sickRoom ? data.sickRoom.dept : "-" }}</td>
489
-                  <td>{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span><br>{{data.residenceNo}}</td>
490
-                  <td>{{ data.scode || "-" }}</td>
491
-                  <td>{{ data.specimenDesc || "-" }}</td>
492
-                  <td>{{ data.stype ? data.stype.name : "-" }}</td>
493
-                  <td>{{ data.speState ? data.speState.name : "-" }}</td>
494
-                  <td>{{ data.arriveTime || "-" }}</td>
495
-                  <td>{{ data.receiverName || "-" }}</td>
496
-                  <td>{{ data.transTime || '-' }}</td>
497
-                  <td>{{ data.sendTime || '-' }}</td>
498
-                  <td>{{ data.delivererName || "-" }}</td>
499
-                  <td>
500
-                    {{ data.checkDept ? data.checkDept.dept : "-" }}
501
-                    <img
502
-                      *ngIf="data.urgent == 1"
503
-                      src="../../assets/images/icon_ji.png"
504
-                      alt=""
505
-                      class="ji"
506
-                    />
507
-                  </td>
508
-                </tr>
509
-              </tbody>
510
-            </nz-table>
511
-          </div>
512
-        </div>
513 389
       </div>
514 390
     </overlay-scrollbars>
515 391
     <!-- 药品/静配配送类型工单信息 -->
@@ -1333,7 +1209,10 @@
1333 1209
     </overlay-scrollbars>
1334 1210
   </div>
1335 1211
   <div class="btns">
1336
-    <button *ngIf="orderInfo.taskType.associationType.value == 'ordinary' && orderInfo.taskType.ordinaryField.value == 'blood'" class="btn default" nz-button nzType="default" (click)="viewDetail(orderInfo)">
1212
+    <button *ngIf="orderInfo.taskType.associationType.value == 'ordinary' && orderInfo.taskType.ordinaryField.value == 'blood'" class="btn default" nz-button nzType="default" (click)="viewDetail(orderInfo, 'blood')">
1213
+      业务数据
1214
+    </button>
1215
+    <button *ngIf="orderInfo.taskType.associationType.value == 'specimen' || orderInfo.taskType.associationType.value == 'specimenPlan'" class="btn default" nz-button nzType="default" (click)="viewDetail(orderInfo, 'specimen')">
1337 1216
       业务数据
1338 1217
     </button>
1339 1218
     <button class="btn cancel" nz-button nzType="default" (click)="close()">
@@ -1354,12 +1233,13 @@
1354 1233
 </app-prompt-modal>
1355 1234
 
1356 1235
 <!-- 业务数据查看 -->
1357
-<app-blood-detail-modal
1358
-  *ngIf="bloodModalShow"
1359
-  [show]="bloodModalShow"
1236
+<app-businessData-detail-modal
1237
+  *ngIf="businessDataModalShow"
1238
+  [show]="businessDataModalShow"
1239
+  [type]="businessDataModalType"
1360 1240
   [orderId]="orderId"
1361 1241
   (closeModelHs)="closeModelBlood($event)"
1362
-></app-blood-detail-modal>
1242
+></app-businessData-detail-modal>
1363 1243
 
1364 1244
 <!-- 遮罩 -->
1365 1245
 <app-mask *ngIf="maskFlag"></app-mask>

+ 6 - 4
src/app/share/order-detail/order-detail.component.ts

@@ -157,15 +157,17 @@ export class OrderDetailComponent implements OnInit {
157 157
   }
158 158
 
159 159
   // 查看业务数据
160
-  bloodModalShow = false; //业务数据弹窗开关
160
+  businessDataModalShow = false; //业务数据弹窗开关
161
+  businessDataModalType = ''; //业务数据类型
161 162
   orderId = ""; //查看业务数据携带
162
-  viewDetail(data) {
163
+  viewDetail(data, type) {
163 164
     this.orderId = data.id;
164
-    this.bloodModalShow = true;
165
+    this.businessDataModalType = type;
166
+    this.businessDataModalShow = true;
165 167
   }
166 168
   // 关闭业务数据弹窗
167 169
   closeModelBlood(e) {
168
-    this.bloodModalShow = JSON.parse(e).show;
170
+    this.businessDataModalShow = JSON.parse(e).show;
169 171
   }
170 172
 
171 173
   // 获取工单历史记录

+ 4 - 4
src/app/share/share.module.ts

@@ -36,7 +36,7 @@ import { DetailBxComponent } from './detail-bx/detail-bx.component';
36 36
 import { ImageViewerComponent } from './image-viewer/image-viewer.component';
37 37
 import { SpePromptModalComponent } from './spe-prompt-modal/spe-prompt-modal.component';
38 38
 import { OrderPromptModalComponent } from './order-prompt-modal/order-prompt-modal.component';
39
-import { BloodDetailModalComponent } from './blood-detail-modal/blood-detail-modal.component';
39
+import { BusinessDataDetailModalComponent } from './businessData-detail-modal/businessData-detail-modal.component';
40 40
 import { DetailBloodComponent } from './detail-blood/detail-blood.component';
41 41
 import { BloodHistoryPromptModalComponent } from './blood-history-prompt-modal/blood-history-prompt-modal.component';
42 42
 
@@ -54,7 +54,7 @@ import { BloodHistoryPromptModalComponent } from './blood-history-prompt-modal/b
54 54
     ReplicationSchemeComponent,
55 55
     HsPromptModalComponent,
56 56
     HistoryPromptModalComponent,
57
-    BloodDetailModalComponent,
57
+    BusinessDataDetailModalComponent,
58 58
     BxPromptModalComponent,
59 59
     AppraiseDetailComponent,
60 60
     OrderDetailComponent,
@@ -74,7 +74,7 @@ import { BloodHistoryPromptModalComponent } from './blood-history-prompt-modal/b
74 74
     ImageViewerComponent,
75 75
     SpePromptModalComponent,
76 76
     OrderPromptModalComponent,
77
-    BloodDetailModalComponent,
77
+    BusinessDataDetailModalComponent,
78 78
     DetailBloodComponent,
79 79
     BloodHistoryPromptModalComponent,
80 80
   ],
@@ -101,7 +101,7 @@ import { BloodHistoryPromptModalComponent } from './blood-history-prompt-modal/b
101 101
     ReplicationSchemeComponent,
102 102
     HsPromptModalComponent,
103 103
     HistoryPromptModalComponent,
104
-    BloodDetailModalComponent,
104
+    BusinessDataDetailModalComponent,
105 105
     BxPromptModalComponent,
106 106
     AppraiseDetailComponent,
107 107
     OrderDetailComponent,

+ 1 - 1
src/app/views/specimen-search/specimen-search.component.html

@@ -164,7 +164,7 @@
164 164
             <th nzWidth="8%">检验项目</th>
165 165
             <th nzWidth="8%">标本类型</th>
166 166
             <th nzWidth="5%">状态</th>
167
-            <th nzWidth="8%" nzShowSort nzSortKey="arriveTime" [(nzSort)]="sortCurrent.arriveTime">收取时间</th>
167
+            <th nzWidth="8%" nzShowSort nzSortKey="arrive_time" [(nzSort)]="sortCurrent.arrive_time">收取时间</th>
168 168
             <th nzWidth="8%">收取人</th>
169 169
             <th nzWidth="8%">中转时间</th>
170 170
             <th nzWidth="8%">送达时间</th>

+ 2 - 2
src/app/views/specimen-search/specimen-search.component.ts

@@ -154,7 +154,7 @@ export class SpecimenSearchComponent implements OnInit {
154 154
     this.sortCurrentKey = "";
155 155
     this.sortCurrentValue = "";
156 156
     this.sortCurrent = {
157
-      arriveTime: null,
157
+      arrive_time: null,
158 158
     };
159 159
     this.getList(1, this.sortCurrentKey, this.sortCurrentValue);
160 160
   }
@@ -334,7 +334,7 @@ export class SpecimenSearchComponent implements OnInit {
334 334
 
335 335
   // 列表排序
336 336
   sortCurrent = {
337
-    arriveTime: null,
337
+    arrive_time: null,
338 338
   };
339 339
   sortCurrentKey: string = "";
340 340
   sortCurrentValue: string | null = "";

+ 1 - 1
src/common.less

@@ -214,7 +214,7 @@
214 214
 
215 215
 // list模板样式 start
216 216
 .list-template {
217
-  padding: 0 16px 16px;
217
+  padding: 8px;
218 218
   .list-template__content {
219 219
     .list-template__top {
220 220
       display: flex;