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

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

@@ -127,6 +127,10 @@
127 127
                   <nz-option *ngFor="let option of specimenDescList" [nzLabel]="option.nameNum" [nzValue]="option.id"></nz-option>
128 128
                 </nz-select>
129 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 134
             </div>
131 135
           </div>
132 136
         </div>
@@ -155,9 +159,9 @@
155 159
             <td>{{ (pageIndex - 1) * pageSize + i + 1 }}</td>
156 160
             <td>{{ data.sickRoom ? data.sickRoom.dept : "-" }}</td>
157 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 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 165
             <td>{{ data.speState ? data.speState.name : "-" }}</td>
162 166
             <td>{{ data.arriveTime || "-" }}</td>
163 167
             <td>{{ data.receiverName || "-" }}</td>
@@ -253,3 +257,11 @@
253 257
   [infoId]="infoId"
254 258
   (closeModelHs)="closeModelBlood($event)"
255 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 7
   height: 100%;
8 8
   background: rgba(0, 0, 0, 0.4);
9 9
   z-index: 999;
10
+	.underline{
11
+		text-decoration: underline;
12
+		cursor: pointer;
13
+	}
10 14
   .drugsBag{
11 15
     display: flex;
12 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 22
   searchCriteria:any = {
23 23
     stype: 0,
24 24
     specimenDesc: 0,
25
+		practical: false
25 26
   }
26 27
   @Input() show: Boolean;
27 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 94
   hideModal() {
80 95
     this.closeModelHs.emit(JSON.stringify({ show: false }));//emits(向上弹射)事件
@@ -99,7 +114,12 @@ export class BusinessDataDetailModalComponent implements OnInit {
99 114
     console.log(e);
100 115
     this.getSpecimen(1);
101 116
   }
102
-
117
+	
118
+	// 选择实际收取
119
+	practicalChange(e){
120
+		this.getSpecimen(1);
121
+	}
122
+	
103 123
   // 分页获取数据
104 124
   getList(){
105 125
     switch(this.type){
@@ -193,7 +213,8 @@ export class BusinessDataDetailModalComponent implements OnInit {
193 213
         gdid: this.orderId,
194 214
         stype: this.searchCriteria.stype ? { id: this.searchCriteria.stype } : undefined,
195 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 219
     this.hsLoading = true;
199 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 158
         <thead (nzSortChange)="sort($event)" nzSingleSort>
159 159
           <tr class="thead">
160 160
             <th nzWidth="4%">序号</th>
161
-            <th nzWidth="8%">申请科室</th>
161
+            <th>科室信息</th>
162 162
             <th nzWidth="7%">患者姓名</th>
163
-            <th nzWidth="5%">标本编码</th>
164
-            <th nzWidth="8%">检验项目</th>
163
+            <th>标本信息</th>
164
+            <th>采集信息</th>
165 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 168
             <th nzWidth="8%">中转时间</th>
170
-            <th nzWidth="8%">送达时间</th>
171
-            <th nzWidth="8%">送达人</th>
172
-            <th nzWidth="8%">终点科室</th>
169
+            <th>送达信息</th>
173 170
             <th nzWidth="7%"></th>
174 171
           </tr>
175 172
         </thead>
176 173
         <tbody>
177 174
           <tr *ngFor="let data of listOfData; let i = index">
178 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 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 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 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 200
             <td><button (click)="viewSpecimenHistory(data)">查看</button></td>
192 201
           </tr>
193 202
         </tbody>