maotao пре 3 месеци
родитељ
комит
c3570f08c3

+ 14 - 2
src/app/share/businessData-detail-modal/businessData-detail-modal.component.html

@@ -127,6 +127,10 @@
127
                   <nz-option *ngFor="let option of specimenDescList" [nzLabel]="option.nameNum" [nzValue]="option.id"></nz-option>
127
                   <nz-option *ngFor="let option of specimenDescList" [nzLabel]="option.nameNum" [nzValue]="option.id"></nz-option>
128
                 </nz-select>
128
                 </nz-select>
129
               </div>
129
               </div>
130
+							<div class="list-template__searchItem">
131
+							  <span class="label">实际收取</span>:
132
+								<label nz-checkbox [(ngModel)]="searchCriteria.practical" (ngModelChange)="practicalChange($event)"></label>
133
+							</div>
130
             </div>
134
             </div>
131
           </div>
135
           </div>
132
         </div>
136
         </div>
@@ -155,9 +159,9 @@
155
             <td>{{ (pageIndex - 1) * pageSize + i + 1 }}</td>
159
             <td>{{ (pageIndex - 1) * pageSize + i + 1 }}</td>
156
             <td>{{ data.sickRoom ? data.sickRoom.dept : "-" }}</td>
160
             <td>{{ data.sickRoom ? data.sickRoom.dept : "-" }}</td>
157
             <td>{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span><br>{{data.residenceNo}}</td>
161
             <td>{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span><br>{{data.residenceNo}}</td>
158
-            <td>{{ data.scode || "-" }}</td>
162
+            <td class="underline" (click)="viewSpecimenHistory(data)">{{ data.scode || "-" }}</td>
159
             <td>{{ data.specimenDesc || "-" }}</td>
163
             <td>{{ data.specimenDesc || "-" }}</td>
160
-            <td>{{ data.stype ? data.stype.name : "-" }}</td>
164
+            <td>{{ data.stype ? data.stype.name : "-" }}<span *ngIf="data.tubeType">,</span>{{data.tubeType && data.tubeType.name}}</td>
161
             <td>{{ data.speState ? data.speState.name : "-" }}</td>
165
             <td>{{ data.speState ? data.speState.name : "-" }}</td>
162
             <td>{{ data.arriveTime || "-" }}</td>
166
             <td>{{ data.arriveTime || "-" }}</td>
163
             <td>{{ data.receiverName || "-" }}</td>
167
             <td>{{ data.receiverName || "-" }}</td>
@@ -253,3 +257,11 @@
253
   [infoId]="infoId"
257
   [infoId]="infoId"
254
   (closeModelHs)="closeModelBlood($event)"
258
   (closeModelHs)="closeModelBlood($event)"
255
 ></app-businessData-detail-info-modal>
259
 ></app-businessData-detail-info-modal>
260
+
261
+<!-- 标本历史记录查看 -->
262
+<app-history-prompt-modal
263
+  *ngIf="historyPromptModalShow"
264
+  [show]="historyPromptModalShow"
265
+  [scode]="scode"
266
+  (closeModelHs)="closeModelHistory($event)"
267
+></app-history-prompt-modal>

+ 4 - 0
src/app/share/businessData-detail-modal/businessData-detail-modal.component.less

@@ -7,6 +7,10 @@
7
   height: 100%;
7
   height: 100%;
8
   background: rgba(0, 0, 0, 0.4);
8
   background: rgba(0, 0, 0, 0.4);
9
   z-index: 999;
9
   z-index: 999;
10
+	.underline{
11
+		text-decoration: underline;
12
+		cursor: pointer;
13
+	}
10
   .drugsBag{
14
   .drugsBag{
11
     display: flex;
15
     display: flex;
12
     align-items: center;
16
     align-items: center;

+ 23 - 2
src/app/share/businessData-detail-modal/businessData-detail-modal.component.ts

@@ -22,6 +22,7 @@ export class BusinessDataDetailModalComponent implements OnInit {
22
   searchCriteria:any = {
22
   searchCriteria:any = {
23
     stype: 0,
23
     stype: 0,
24
     specimenDesc: 0,
24
     specimenDesc: 0,
25
+		practical: false
25
   }
26
   }
26
   @Input() show: Boolean;
27
   @Input() show: Boolean;
27
   @Input() orderId: String;
28
   @Input() orderId: String;
@@ -75,6 +76,20 @@ export class BusinessDataDetailModalComponent implements OnInit {
75
 
76
 
76
     }
77
     }
77
   }
78
   }
79
+	
80
+	// 查看标本历史记录
81
+	historyPromptModalShow = false; //标本历史记录弹窗开关
82
+	scode = ""; //查看历史记录携带
83
+	viewSpecimenHistory(data) {
84
+	  this.scode = data.scode;
85
+	  this.historyPromptModalShow = true;
86
+	}
87
+	
88
+	// 关闭标本历史记录弹窗
89
+	closeModelHistory(e) {
90
+	  this.historyPromptModalShow = JSON.parse(e).show;
91
+	}
92
+	
78
   // 关闭弹窗
93
   // 关闭弹窗
79
   hideModal() {
94
   hideModal() {
80
     this.closeModelHs.emit(JSON.stringify({ show: false }));//emits(向上弹射)事件
95
     this.closeModelHs.emit(JSON.stringify({ show: false }));//emits(向上弹射)事件
@@ -99,7 +114,12 @@ export class BusinessDataDetailModalComponent implements OnInit {
99
     console.log(e);
114
     console.log(e);
100
     this.getSpecimen(1);
115
     this.getSpecimen(1);
101
   }
116
   }
102
-
117
+	
118
+	// 选择实际收取
119
+	practicalChange(e){
120
+		this.getSpecimen(1);
121
+	}
122
+	
103
   // 分页获取数据
123
   // 分页获取数据
104
   getList(){
124
   getList(){
105
     switch(this.type){
125
     switch(this.type){
@@ -193,7 +213,8 @@ export class BusinessDataDetailModalComponent implements OnInit {
193
         gdid: this.orderId,
213
         gdid: this.orderId,
194
         stype: this.searchCriteria.stype ? { id: this.searchCriteria.stype } : undefined,
214
         stype: this.searchCriteria.stype ? { id: this.searchCriteria.stype } : undefined,
195
         specimenDesc: this.searchCriteria.specimenDesc ? this.specimenDescList.find(v => v.id == this.searchCriteria.specimenDesc).name: undefined,
215
         specimenDesc: this.searchCriteria.specimenDesc ? this.specimenDescList.find(v => v.id == this.searchCriteria.specimenDesc).name: undefined,
196
-      }
216
+				practical: this.searchCriteria.practical ? 1 : undefined
217
+			}
197
     }
218
     }
198
     this.hsLoading = true;
219
     this.hsLoading = true;
199
     this.mainService.getFetchDataList('simple/data','specimen',postData).subscribe(data => {
220
     this.mainService.getFetchDataList('simple/data','specimen',postData).subscribe(data => {

+ 27 - 18
src/app/views/specimen-search/specimen-search.component.html

@@ -158,36 +158,45 @@
158
         <thead (nzSortChange)="sort($event)" nzSingleSort>
158
         <thead (nzSortChange)="sort($event)" nzSingleSort>
159
           <tr class="thead">
159
           <tr class="thead">
160
             <th nzWidth="4%">序号</th>
160
             <th nzWidth="4%">序号</th>
161
-            <th nzWidth="8%">申请科室</th>
161
+            <th>科室信息</th>
162
             <th nzWidth="7%">患者姓名</th>
162
             <th nzWidth="7%">患者姓名</th>
163
-            <th nzWidth="5%">标本编码</th>
164
-            <th nzWidth="8%">检验项目</th>
163
+            <th>标本信息</th>
164
+            <th>采集信息</th>
165
             <th nzWidth="8%">标本类型</th>
165
             <th nzWidth="8%">标本类型</th>
166
-            <th nzWidth="5%">状态</th>
167
-            <th nzWidth="8%" nzShowSort nzSortKey="arrive_time" [(nzSort)]="sortCurrent.arrive_time">收取时间</th>
168
-            <th nzWidth="8%">收取人</th>
166
+            <th nzWidth="7%">状态</th>
167
+            <th nzShowSort nzSortKey="arrive_time" [(nzSort)]="sortCurrent.arrive_time">收取信息</th>
169
             <th nzWidth="8%">中转时间</th>
168
             <th nzWidth="8%">中转时间</th>
170
-            <th nzWidth="8%">送达时间</th>
171
-            <th nzWidth="8%">送达人</th>
172
-            <th nzWidth="8%">终点科室</th>
169
+            <th>送达信息</th>
173
             <th nzWidth="7%"></th>
170
             <th nzWidth="7%"></th>
174
           </tr>
171
           </tr>
175
         </thead>
172
         </thead>
176
         <tbody>
173
         <tbody>
177
           <tr *ngFor="let data of listOfData; let i = index">
174
           <tr *ngFor="let data of listOfData; let i = index">
178
             <td>{{i+(pageIndex-1) * pageSize + 1}}</td>
175
             <td>{{i+(pageIndex-1) * pageSize + 1}}</td>
179
-            <td>{{ data.sickRoom ? data.sickRoom.dept : "-" }}</td>
176
+            <td>
177
+							<div>{{ data.sickRoom ? data.sickRoom.dept : "-" }}</div>
178
+							<div>{{ data.checkDept ? data.checkDept.dept : "-" }}</div>
179
+						</td>
180
             <td>{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span><br>{{data.residenceNo}}</td>
180
             <td>{{ data.patientName}}<span *ngIf="data.bedNum">({{data.bedNum}})</span><br>{{data.residenceNo}}</td>
181
-            <td>{{ data.scode || "-" }}</td>
182
-            <td>{{ data.specimenDesc || "-" }}</td>
183
-            <td>{{ data.stype ? data.stype.name : "-" }}</td>
181
+            <td>
182
+							<div>{{ data.scode || "-" }}</div>
183
+							<div>{{ data.specimenDesc || "-" }}</div>
184
+						</td>
185
+						<td>
186
+							<div>{{ data.collectNurseName || "-" }}</div>
187
+							<div>{{ data.printDate || "-" }}</div>
188
+						</td>
189
+            <td>{{ data.stype ? data.stype.name : "-" }}<span *ngIf="data.tubeType">,</span>{{data.tubeType && data.tubeType.name}}</td>
184
             <td>{{ data.speState ? data.speState.name : "-" }}</td>
190
             <td>{{ data.speState ? data.speState.name : "-" }}</td>
185
-            <td>{{ data.arriveTime || "-" }}</td>
186
-            <td>{{ data.receiverName || "-" }}</td>
191
+            <td>
192
+							<div>{{ data.receiverName || "-" }}</div>
193
+							<div>{{ data.arriveTime || "-" }}</div>
194
+						</td>
187
             <td>{{ data.transTime || '-' }}</td>
195
             <td>{{ data.transTime || '-' }}</td>
188
-            <td>{{ data.sendTime || '-' }}</td>
189
-            <td>{{ data.delivererName || "-" }}</td>
190
-            <td>{{ data.checkDept ? data.checkDept.dept : "-" }}</td>
196
+            <td>
197
+							<div>{{ data.delivererName || "-" }}</div>
198
+							<div>{{ data.sendTime || '-' }}</div>
199
+						</td>
191
             <td><button (click)="viewSpecimenHistory(data)">查看</button></td>
200
             <td><button (click)="viewSpecimenHistory(data)">查看</button></td>
192
           </tr>
201
           </tr>
193
         </tbody>
202
         </tbody>