瀏覽代碼

手术优化

maotao 3 月之前
父節點
當前提交
b983dc5262

+ 1 - 0
src/app/share/pathology-add/pathology-add.component.html

@@ -437,6 +437,7 @@
437 437
 							 <div>标本号:{{data.specimenCode}}</div>
438 438
 						 </div>
439 439
 						 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;">
440
+							 <!-- <span style="font-weight: bold;">速</span> -->
440 441
 							 <img style="max-width: 100%;max-height: 100%;" [src]="tool.logoUrl" alt="">
441 442
 						 </div>
442 443
 					 </div>

+ 142 - 4
src/app/views/batch-distribution/batch-distribution.component.html

@@ -106,12 +106,150 @@
106 106
   </div>
107 107
 </div>
108 108
 
109
-<!-- 病理详情 -->
110
-<app-pathology-detail *ngIf="pathologyDetailModal" [surgeryId]="detailItem.surgeryId" [patientId]="detailItem.patientId" [detailId]="detailItem.id" (pathologyCancel)="pathologyDetailCancel($event)"></app-pathology-detail>
109
+<!-- 标本查看详情-->
110
+<div class="pathology-box display_flex align-items_center justify-content_flex-center" *ngIf="detailMoadl">
111
+	<div class="pathology-content">
112
+		<div class="title">查看详情
113
+		<i class="icon_transport transport-guanbi" (click)="closeDetailMoadl()"></i></div>
114
+		<div class="content">
115
+			<div class="content-item boder-right">
116
+				<nz-form-item class="form-title-box">
117
+					<div class="form-title">申请单类型:{{detailsData.pathologyFormType==1?'术中快速病理检查申请单' : detailsData.pathologyFormType==2 ? '病理细胞学申请单' : '病理检查申请单'}}</div>
118
+					<div class="form-title"><span class="font-weight-500">状态:</span>{{detailsData.status?detailsData.status.name:'-'}}</div>
119
+				</nz-form-item>
120
+				<nz-form-item class="form-title-box">
121
+					<div class="form-title"><span class="font-weight-500">申请单号:</span>{{detailsData.applyCode}}</div>
122
+					<div class="form-title over-class"><span class="font-weight-500">申请科室:</span>{{detailsData.patientDTO.department.dept}}</div>
123
+				</nz-form-item>
124
+				<nz-form-item class="form-title-box">
125
+					<div class="form-title">手术间:{{detailsData.surgeryDeptDTO.dept}}</div>
126
+					<div class="form-title">取材医生:{{detailsData.surgeryDoctorDTO?detailsData.surgeryDoctorDTO.name : '-'}}</div>
127
+				</nz-form-item>
128
+				<nz-form-item class="form-title-box">
129
+					<div class="form-title"><span class="font-weight-500">患者信息:</span>{{detailsData.patientDTO.patientName}} ({{detailsData.patientDTO.bedNum}}床)</div>
130
+					<div class="form-title"><span class="font-weight-500">年龄:</span>{{detailsData.patientDTO.age||'-'}}</div>
131
+					<div class="form-title"><span class="font-weight-500">性别:</span>{{detailsData.patientDTO.gender?detailsData.patientDTO.gender.name:'-'}}</div>
132
+					<div class="form-title"><span class="font-weight-500">住院号:</span>{{detailsData.patientDTO.patientCode}}</div>
133
+				</nz-form-item>
134
+				
135
+				<div class="form-title-box">
136
+					<div class="form-title"><span class="font-weight-500">检验项目:</span>{{project||'无'}}</div>
137
+				</div>
138
+				
139
+				<div class="form-list">
140
+					<div class="form-title font-weight-500">诊断:</div>
141
+					<div class="indent">
142
+						{{detailsData.diagnose||'无'}}
143
+					</div>
144
+				</div>
145
+				
146
+				<div class="form-list">
147
+					<div class="form-title font-weight-500">病历摘要:</div>
148
+					<div class="indent">{{detailsData.medicalRecords||'无'}}</div>
149
+				</div>
150
+				<div class="form-list">
151
+					<div class="form-title font-weight-500">手术方案:</div>
152
+					<div class="indent">{{detailsData.surgicalPlan||'无'}}</div>
153
+				</div>
154
+				<div class="form-list">
155
+					<div class="form-title font-weight-500">术中所见:</div>
156
+					<div class="indent">{{detailsData.intraoperativeFindings||'无'}}</div>
157
+				</div>
111 158
 
159
+				<div class="form-title-box">
160
+					<div class="form-title"><span class="font-weight-500">标本类型:</span>{{detailsData.specimenType.name||'无'}}</div>
161
+					<div class="form-title"><span class="font-weight-500">标本数量:</span>{{detailsData.specimenNum||'无'}}</div>
162
+				</div>
163
+				
164
+				<div class="form-title-box">
165
+					<div class="form-title"><span class="font-weight-500">部位:</span>{{detailsData.takePart||'无'}}</div>
166
+					<!-- <div class="form-title"><span class="font-weight-500">离体时间:</span>{{detailsData.inVitroTime?(detailsData.inVitroTime|date:'yyyy-MM-dd HH:mm:ss'):'无'}}</div> -->
167
+					<!-- <div class="form-title"><span class="font-weight-500">固定时间:</span>{{detailsData.fixationTime?(detailsData.fixationTime|date:'yyyy-MM-dd HH:mm:ss'):'无'}}</div> -->
168
+				</div>
169
+				
170
+				<div class="form-list">
171
+					<div class="form-title font-weight-500">标本:</div>
172
+					<div class="form-title specimen-list">
173
+						<div *ngFor="let item of specimenList" class="specimen-item-class" (click)="specimenView(item)">
174
+							<span *ngIf="item.partSource && item.partSource.value!=1">{{item.partSource?item.partSource.name:''}}</span>{{item.specimenName}}({{item.specimenCode}})
175
+						</div>
176
+					</div>
177
+				</div>
178
+
179
+			</div>
180
+			
181
+			<div class="content-item-right">
182
+				<div class="step-title">病理闭环</div>
183
+				<nz-steps [nzCurrent]="stepLength" nzDirection="vertical" nzSize="small">
184
+					<ng-container *ngFor="let item of pathologyLogs; let index = index">
185
+							<nz-step
186
+								[nzDescription]="tpl"
187
+							>
188
+							</nz-step>
189
+							<ng-template #tpl>
190
+								<div *ngIf="index==pathologyLogs.length-1" class="step-size">
191
+									<div style="color: #49B856;" *ngIf="item.doctorDTO"> {{item.operationType?item.operationType.name:''}} {{item.doctorDTO?item.doctorDTO.name:''}} {{item.nurseDTO?item.nurseDTO.name:''}} </div>
192
+									<div style="color: #49B856;" *ngIf="!item.doctorDTO">{{item.operationType?item.operationType.name:''}}  {{item.handoverUserDto?item.handoverUserDto.name:''}}</div>
193
+									<div style="color:#333;">{{item.createTime|date:'yyyy-MM-dd HH:mm:ss'}} {{item.operationUserDto?item.operationUserDto.name:''}}</div>
194
+								</div>
195
+								<div *ngIf="index!=pathologyLogs.length-1" class="step-size">
196
+									<div *ngIf="item.doctorDTO">{{item.operationType?item.operationType.name:''}}  {{item.doctorDTO?item.doctorDTO.name:''}} {{item.nurseDTO?item.nurseDTO.name:''}}</div>
197
+									<div *ngIf="!item.doctorDTO">{{item.operationType?item.operationType.name:''}}  {{item.handoverUserDto?item.handoverUserDto.name:''}}</div>
198
+									<div>{{item.createTime|date:'yyyy-MM-dd HH:mm:ss'}} {{item.operationUserDto?item.operationUserDto.name:''}}</div>
199
+								</div>
200
+							</ng-template>
201
+						</ng-container>
202
+				</nz-steps>
203
+			</div>
204
+		</div>
205
+		<div class="display_flex justify-content_flex-center bottom-btn">
206
+			<button class="btn btn-right" nz-button nzType="primary" (click)="closeDetailMoadl()">知道了</button>
207
+		</div>
208
+	</div>
209
+</div>
210
+
211
+<!-- 查看标本 -->
212
+<div class="look">
213
+	<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="specimenViewDialog">
214
+		<div class="modalBody modalBody-ga">
215
+			<div class="title">查看标本<i class="icon_transport transport-guanbi" (click)="closeSpecimenModal()"></i>
216
+			</div>
217
+			<overlay-scrollbars #osComponentRef1 class="content">
218
+				<div class="list-template__bottom">
219
+					<nz-table class="list-template__nzTable" [nzData]="specimenData" nzSize="middle" [nzShowPagination]="false"
220
+						[nzLoading]="loading1">
221
+						<thead>
222
+							<tr class="thead">
223
+								<th>标本名称</th>
224
+								<th>编码</th>
225
+								<th>备注</th>
226
+								<th>离体时间</th>
227
+								<th>离体操作人</th>
228
+								<th>固定时间</th>
229
+								<th>固定操作人</th>
230
+							</tr>
231
+						</thead>
232
+						<tbody>
233
+							<tr *ngFor="let data of specimenData">
234
+								<td>{{ data.specimenName }}</td>
235
+								<td>{{ data.specimenCode }}</td>
236
+								<td>{{ data.remark ? data.remark : '无' }}</td>
237
+								<td>{{ data.inVitroTime ? (data.inVitroTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
238
+								<td>{{ data.inVitroOperator ? data.inVitroOperator.name : '-' }}</td>
239
+								<td>{{ data.fixationTime ? (data.fixationTime|date:'yyyy-MM-dd HH:mm:ss') : '-' }}</td>
240
+								<td>{{ data.fixationOperator ? data.fixationOperator.name : '-' }}</td>
241
+							</tr>
242
+						</tbody>
243
+					</nz-table>
244
+				</div>
245
+			</overlay-scrollbars>
246
+			<div class="display_flex justify-content_flex-center">
247
+				<button class="btn" nz-button nzType="primary" (click)="closeSpecimenModal()">知道了</button>
248
+			</div>
249
+		</div>
250
+	</div>
251
+</div>
112 252
 <!-- 操作成功/失败提示框 -->
113 253
 <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
114 254
   [info]="promptInfo"></app-prompt-modal>
115 255
 
116
-<!-- 遮罩 -->
117
-<app-mask *ngIf="maskFlag"></app-mask>

+ 433 - 14
src/app/views/batch-distribution/batch-distribution.component.less

@@ -22,6 +22,27 @@
22 22
       font-size: 18px;
23 23
     }
24 24
   }
25
+	
26
+	/* 修改垂直滚动条 */
27
+	::-webkit-scrollbar {
28
+		width: 4px; /* 修改宽度 */
29
+		border-radius: 2px;
30
+	}
31
+	 
32
+	/* 修改滚动条轨道背景色 */
33
+	::-webkit-scrollbar-track {
34
+		background-color: #f1f1f1;
35
+	}
36
+	 
37
+	/* 修改滚动条滑块颜色 */
38
+	::-webkit-scrollbar-thumb {
39
+		background-color: #888;
40
+	}
41
+	 
42
+	/* 修改滚动条滑块悬停时的颜色 */
43
+	::-webkit-scrollbar-thumb:hover {
44
+		background-color: #555;
45
+	}
25 46
 }
26 47
 
27 48
 .save {
@@ -229,21 +250,419 @@
229 250
       }
230 251
     }
231 252
   }
232
-	
233
-	.mask-style{
234
-		width: 100%;
235
-		height: 100%;
236
-		position: fixed;
237
-		top: 0;
238
-		left: 0;
239
-		z-index: 999;
240
-		display: flex;
241
-		background: rgba(0,0,0,0.2);
242
-		align-items: center;
243
-		justify-content: center;
253
+}
254
+
255
+.pathology-box {
256
+  position: fixed;
257
+	left: 0;
258
+	top: 0;
259
+	width: 100%;
260
+	height: 100%;
261
+	background: rgba(0, 0, 0, 0.4);
262
+	z-index: 99;
263
+	.width-80{
264
+		width: 80% !important;
244 265
 	}
245
-	.spin-style{
246
-		z-index:9999;
266
+	.pathology-content{
267
+		width: 80%;
268
+		background: #fff;
269
+		border-radius: 5px;
270
+		padding: 10px 20px;
271
+		color: #000;
272
+		.title {
273
+		  width: 100%;
274
+		  text-align: center;
275
+		  font-size: 18px;
276
+		  position: relative;
277
+		
278
+		  i {
279
+		    position: absolute;
280
+		    right: 0;
281
+		    top: 0;
282
+		    font-size: 20px;
283
+		    color: #666;
284
+		    cursor: pointer;
285
+		    padding: 0 5px;
286
+		  }
287
+		}
288
+		.content{
289
+			width: 100%;
290
+			background: #f9fafb;
291
+			border: 1px solid #e5e9ed;
292
+			border-radius: 5px;
293
+			margin-top: 12px;
294
+			display: flex;
295
+			// .addForm{
296
+				// display: flex;
297
+				.font-weight-500{
298
+					color: #000;
299
+					font-weight: 500;
300
+				}
301
+				.ant-select{
302
+					width: 100%;
303
+				}
304
+				.content-item{
305
+					height: auto;
306
+					max-height: 460px;
307
+					overflow-y: auto;
308
+					width: 78%;
309
+					padding: 15px;
310
+					.form-title-box{
311
+						display: flex;
312
+						margin-bottom: 10px;
313
+						.form-title{
314
+							color: #333;
315
+							margin-right: 40px;
316
+						}
317
+						.mar-ri-20{
318
+							margin-right: 20px !important;
319
+						}
320
+						.width-150{
321
+							width: 150px;
322
+						}
323
+						.width-200{
324
+							width: 200px;
325
+						}
326
+					}
327
+					.center{
328
+						text-align: center;
329
+						padding: 10px 0;
330
+					}
331
+					.disp-fl{
332
+						display: flex;
333
+						align-items: center;
334
+						.width-120{
335
+							width: 85px;
336
+						}
337
+						.ant-input{
338
+							width: 300px;
339
+						}
340
+					}
341
+					.error-fix{
342
+						margin-top: 10px;
343
+						color: red;
344
+						text-align: center;
345
+					}
346
+					.form-list{
347
+						margin-bottom: 10px;
348
+						.specimen-list{
349
+							display: flex;
350
+							flex-wrap: wrap;
351
+							.specimen-item-class{
352
+								text-decoration: underline;
353
+								cursor: pointer;
354
+								margin-right: 40px;
355
+								color:#333;
356
+							}
357
+						}
358
+						.indent{
359
+							text-indent: 2ch;
360
+							color: #333;
361
+						}
362
+					}
363
+					.ant-form-item {
364
+					  margin-bottom: 14px;
365
+						display: flex;
366
+						flex-wrap: wrap;
367
+					  .ant-form-item-label {
368
+					    text-align: left;
369
+							font-weight: 500;
370
+					  }
371
+						.ant-form-item-control-wrapper{
372
+							.ant-form-item-control{
373
+								width: 400px;
374
+							}
375
+						}
376
+					}
377
+					.add-icon-class{
378
+						border: 1px solid #e5e9ed;
379
+						border-radius: 3px;
380
+						width: 26px;
381
+						height: 26px;
382
+						line-height: 26px;
383
+						text-align: center;
384
+						position: relative;
385
+						top: 7px;
386
+						cursor: pointer;
387
+						.form-icon{
388
+							
389
+						}
390
+					}
391
+				}
392
+				.content-item-right{
393
+					width: 25%;
394
+					height: auto;
395
+					max-height: 460px;
396
+					overflow-y: auto;
397
+					padding: 10px;
398
+					.step-title{
399
+						font-size: 16px;
400
+						font-weight: 500;
401
+						margin-bottom: 10px;
402
+					}
403
+				}
404
+				.boder-right{
405
+					border-right: 1px solid #e5e9ed;
406
+				}
407
+				.specimen-item{
408
+					display: flex;
409
+					margin-bottom: 10px;
410
+					.specimen-icon{
411
+						color: #64BD7B;
412
+						cursor: pointer;
413
+						font-size: 20px;
414
+						position: relative;
415
+						top: -4px;
416
+						left: 2px;
417
+					}
418
+				}
419
+			// }
420
+		}
421
+		.bottom-btn{
422
+			margin-top: 10px;
423
+			.btn-right{
424
+				margin-right: 10px;
425
+			}
426
+		}
247 427
 	}
428
+	
248 429
 }
249 430
 
431
+.mask-style{
432
+	width: 100%;
433
+	height: 100%;
434
+	position: fixed;
435
+	top: 0;
436
+	left: 0;
437
+	z-index: 999;
438
+	display: flex;
439
+	background: rgba(0,0,0,0.2);
440
+	align-items: center;
441
+	justify-content: center;
442
+}
443
+.spin-style{
444
+	z-index:9999;
445
+}
446
+
447
+.look{
448
+	.save {
449
+	  position: fixed;
450
+	  left: 0;
451
+	  top: 0;
452
+	  width: 100%;
453
+	  height: 100%;
454
+	  background: rgba(0, 0, 0, 0.4);
455
+	  z-index: 999;
456
+		.modalBody-ga{
457
+			width: 80% !important;
458
+			.list-template__searchBox{
459
+				margin-top: 10px;
460
+			}
461
+			.ant-select{
462
+				width: 20%;
463
+			}
464
+		}
465
+	  .modalBody {
466
+	    width: 350px;
467
+	    background: #fff;
468
+	    border-radius: 5px;
469
+	    padding: 10px 20px;
470
+	    color: #333;
471
+	
472
+	    .title {
473
+	      width: 100%;
474
+	      text-align: center;
475
+	      font-size: 18px;
476
+	      position: relative;
477
+	
478
+	      i {
479
+	        position: absolute;
480
+	        right: 0;
481
+	        top: 0;
482
+	        font-size: 20px;
483
+	        color: #666;
484
+	        cursor: pointer;
485
+	        padding: 0 5px;
486
+	      }
487
+	    }
488
+	
489
+	    .content {
490
+	      width: 100%;
491
+	      height: 117px;
492
+	      background: #f9fafb;
493
+	      border: 1px solid #e5e9ed;
494
+	      border-radius: 5px;
495
+	      overflow: hidden;
496
+	      margin-top: 12px;
497
+	
498
+	      div {
499
+	        text-align: center;
500
+	        margin: 0;
501
+	
502
+	        &.icon {
503
+	          margin-top: 17px;
504
+	
505
+	          i {
506
+	            color: #34b349;
507
+	            font-size: 30px !important;
508
+	
509
+	            &.transport-wenhao {
510
+	              color: #f5a523;
511
+	            }
512
+	
513
+	            &.transport-shibai {
514
+	              color: #ff3a52;
515
+	            }
516
+	          }
517
+	        }
518
+	
519
+	        &.defeat {
520
+	          color: #333;
521
+	          font-size: 18px;
522
+	        }
523
+	
524
+	        &:nth-child(3) {
525
+	          font-size: 14px;
526
+	          color: #666;
527
+	        }
528
+	      }
529
+	    }
530
+	
531
+	    button {
532
+	      margin-top: 10px;
533
+	
534
+	      &.btn {
535
+	        margin-left: 8px;
536
+	      }
537
+	    }
538
+	  }
539
+	
540
+	  // 新增
541
+	  &.add {
542
+	    .modalBody {
543
+	      width: 420px;
544
+	      height: auto;
545
+	
546
+	      .content {
547
+	        width: 100%;
548
+	        height: auto;
549
+	        padding: 19px 14px 0 14px;
550
+	        max-height: 500px;
551
+	        overflow-y: auto;
552
+					
553
+					.ant-select{
554
+						width: 100%;
555
+					}
556
+					.ant-calendar-picker{
557
+						width: 100% !important;
558
+					}
559
+					.list-template__bottom {
560
+					  background: #f9fafb;
561
+					  border: 1px solid #e5e9ed;
562
+					  border-radius: 8px;
563
+					  padding-bottom: 56px;
564
+					  position: relative;
565
+					  .list-template__nzTable {
566
+					    padding: 16px 16px 0;
567
+					
568
+					    .thead {
569
+					      background-image: linear-gradient(to right, @bg-start, @bg-end);
570
+					
571
+					      th {
572
+					        background: transparent;
573
+					        color: #fff;
574
+					        text-align: center;
575
+					      }
576
+					    }
577
+					
578
+					    .ant-table-body {
579
+					      border-bottom: 1px solid #e5e9ed;
580
+					    }
581
+					
582
+					    .ant-table-tbody {
583
+					      tr {
584
+					        text-align: center;
585
+					        color: #333;
586
+					
587
+					        td {
588
+					          border: none;
589
+					
590
+					          &.tab_hover:hover{
591
+					            text-decoration: underline;
592
+					            cursor: pointer;
593
+					          }
594
+					
595
+					          .coop {
596
+					            button{
597
+					              color: #333;
598
+					            }
599
+					            span,button {
600
+					              display: inline-block;
601
+					              padding: 0 8px;
602
+					              cursor: pointer;
603
+					              position: relative;
604
+					
605
+					              &::after {
606
+					                content: "|";
607
+					                position: absolute;
608
+					                top: 0;
609
+					                right: 0;
610
+					              }
611
+					
612
+					              &:hover,
613
+					              &:active {
614
+					                color: @primary-color;
615
+					              }
616
+					
617
+					              &:nth-last-child(1) {
618
+					                &::after {
619
+					                  content: "";
620
+					                }
621
+					              }
622
+					            }
623
+					          }
624
+					        }
625
+					      }
626
+					    }
627
+					  }
628
+					  .list-template__pagination {
629
+					    height: 56px;
630
+					    display: flex;
631
+					    align-items: center;
632
+					    position: absolute;
633
+					    right: 8px;
634
+					  }
635
+					}
636
+					
637
+	        .addForm {
638
+	          .ant-form-item {
639
+	            margin-bottom: 14px;
640
+	
641
+	            .ant-form-item-label {
642
+	              line-height: 14px;
643
+	              text-align: left;
644
+	            }
645
+	          }
646
+	        }
647
+	
648
+	        .editForm {
649
+	          .ant-form-item {
650
+	            margin-bottom: 14px;
651
+	
652
+	            .ant-form-item-label {
653
+	              line-height: 0;
654
+	              text-align: left;
655
+	            }
656
+	          }
657
+	        }
658
+	      }
659
+	
660
+	      button {
661
+	        &:nth-child(1) {
662
+	          margin-right: 20px;
663
+	        }
664
+	      }
665
+	    }
666
+	  }
667
+	}
668
+}

+ 48 - 3
src/app/views/batch-distribution/batch-distribution.component.ts

@@ -173,14 +173,59 @@ export class BatchDistributionComponent implements OnInit{
173 173
     });
174 174
   }
175 175
 	
176
+	detailMoadl:boolean = false;
177
+	pathologyLogs:any=[];
178
+	specimenList:any=[]
179
+	stepLength:any = 0;
180
+	closeDetailMoadl(){
181
+		this.detailMoadl = false
182
+	}
183
+	
176 184
 	// 申请单号点击
177 185
 	detailItem:any = null;
178 186
 	pathologyDetailModal:any = false;
187
+	grossLoading:any = false;
179 188
 	itemClick(item){
180 189
 		this.detailItem = item
181
-		setTimeout(_=>{
182
-			this.pathologyDetailModal = true
183
-		},200)
190
+		this.grossLoading = true
191
+		this.getSampleData(item)
192
+	}
193
+	
194
+	// 获取标本详情
195
+	project:any = [];
196
+	detailsData:any = null;
197
+	getSampleData(item){
198
+		this.mainService.getFetchData("data", "pathologyForm", item.id)
199
+		.subscribe((data) => {
200
+			this.grossLoading = false
201
+			this.detailsData = data.data
202
+		  this.specimenList = data.data.pathologySpecimenDTOList||[]
203
+			this.pathologyLogs = data.data.formLogDTOS
204
+			this.stepLength = this.pathologyLogs.length
205
+			if(this.detailsData.pathologyInspectDTOS){
206
+				this.project = this.detailsData.pathologyInspectDTOS.map(i=>{
207
+					return i.inspectProject.name
208
+				})
209
+				this.project = this.project.join('、')
210
+			}
211
+		  this.detailMoadl = true
212
+		});
213
+	}
214
+	
215
+	// 关闭查看标本
216
+	closeSpecimenModal(){
217
+		this.specimenViewDialog = false
218
+	}
219
+	
220
+	// 查看标本
221
+	specimenViewDialog:any = false;
222
+	specimenData:any = [];
223
+	specimenItem:any;
224
+	specimenView(item){
225
+		this.specimenData = []
226
+		this.specimenViewDialog = true
227
+		this.specimenItem = item;
228
+		this.specimenData.push(item)
184 229
 	}
185 230
 	
186 231
 	hideModal(){

+ 1 - 1
src/app/views/hushijiandan/hushijiandan.component.less

@@ -235,7 +235,7 @@
235 235
 		}
236 236
 		.list-template__bottom{
237 237
 			.list-template__nzTable{
238
-				height: 420px !important;
238
+				height: 510px !important;
239 239
 				overflow-y: auto !important;
240 240
 			}
241 241
 		}

+ 4 - 0
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -402,6 +402,7 @@ export class HushijiandanComponent implements OnInit {
402 402
 			pathologyForm: {
403 403
 				surgeryId: item.id || "",
404 404
 				patientId: item.patientDTO.id || "",
405
+				surgeryDeptId:this.loginUser.dept.id,
405 406
 				// hosId: this.currentHospital.id || "" ,
406 407
 				operationType: 'pathologyForm',
407 408
 				order:'createTime desc',
@@ -439,6 +440,7 @@ export class HushijiandanComponent implements OnInit {
439 440
 			pathologyForm: {
440 441
 				surgeryId: this.surgeryWKOMsg.id || "",
441 442
 				patientId: this.surgeryWKOMsg.patientDTO.id || "",
443
+				surgeryDeptId:this.loginUser.dept.id,
442 444
 				// hosId: this.currentHospital.id || "" ,
443 445
 				operationType: 'pathologyForm',
444 446
 				order:'createTime desc'
@@ -475,8 +477,10 @@ export class HushijiandanComponent implements OnInit {
475 477
 			idx: 0,
476 478
 			sum: 9999,
477 479
 			pathologyForm: {
480
+				surgeryId: this.surgeryDataId || "",
478 481
 				patientId: this.patientDataId || "",
479 482
 				hosId: this.currentHospital.id || "" ,
483
+				surgeryDeptId:this.loginUser.dept.id,
480 484
 				operationType: 'pathologyForm',
481 485
 				order:'createTime desc'
482 486
 			},

+ 1 - 1
src/app/views/pathology-communication-book/pathology-communication-book.component.html

@@ -440,7 +440,7 @@
440 440
 						<div>门诊号: {{data.patientDTO.patientCode}}</div>
441 441
 						<div>住院号: {{data.patientDTO.residenceNo}}</div>
442 442
 						<div>床号: {{data.patientDTO.bedNum}}</div>
443
-						<div>科室: {{data.patientDTO.department ? data.patientDTO.department.dept:''}}</div>
443
+						<div>科室: {{deptName}}</div>
444 444
 					</div>
445 445
 					<div style="display: flex; justify-content: space-between; margin-top:12px;">
446 446
 						<div style="width: 100%;overflow: hidden;">活检部位: {{data.takePart}}</div>

+ 2 - 0
src/app/views/pathology-communication-book/pathology-communication-book.component.ts

@@ -170,6 +170,7 @@ export class PathologyCommunicationBookComponent implements OnInit, OnDestroy {
170 170
 	backType:any = 'list';
171 171
 	mainRole:any = false;
172 172
 	coopBtns:any = {};
173
+	deptName:any = null;
173 174
 	loginUserDeptId: number = JSON.parse(localStorage.getItem("user")).user.dept
174 175
 	  .id; //登录人所属科室
175 176
   ngOnDestroy() {
@@ -194,6 +195,7 @@ export class PathologyCommunicationBookComponent implements OnInit, OnDestroy {
194 195
 		this.hosId = this.tool.getCurrentHospital().id;
195 196
 		this.userId = this.tool.getCurrentUserId()
196 197
 		this.deptId = this.tool.getCurrentUserDept().id
198
+		this.deptName = this.tool.getCurrentUserDept().dept
197 199
 		this.getTaskTypesId()
198 200
 		this.getConnectList()
199 201
 		if(this.route.snapshot.queryParams && this.route.snapshot.queryParams.type){

+ 1 - 1
src/app/views/pathology-sample/pathology-sample.component.html

@@ -8,7 +8,7 @@
8 8
 			<div class="pharmacy-title">门诊病理采样端</div>
9 9
       <div class="pharmacy-name__total">
10 10
 				<nz-input-group nzSize="large">
11
-					<input type="text" id="Binput" (ngModelChange)="specimenCodeChange($event)" [(ngModel)]="barCode" nz-input placeholder="请输入患者信息" />
11
+					<input type="text" id="Binput" (keydown.enter)="onEnterPress()" (ngModelChange)="specimenCodeChange($event)" [(ngModel)]="barCode" nz-input placeholder="请输入患者信息" />
12 12
 				</nz-input-group>
13 13
 				<!-- <ng-template #suffixButton>
14 14
 					<button nz-button nzType="primary" nzSize="large" nzSearch (click)="searchSpecimen()">搜索</button>

+ 15 - 2
src/app/views/pathology-sample/pathology-sample.component.ts

@@ -90,6 +90,7 @@ export class PathologySampleComponent implements OnInit {
90 90
 		  this.searchSpecimenData(v[0])
91 91
 		});
92 92
 		this.changeInpSubjectSpecimen.pipe(debounceTime(500)).subscribe((v) => {
93
+			this.pressType = false
93 94
 		  this.searchSpecimen(v[0],'search','new')
94 95
 		});
95 96
 		this.hosId = this.tool.getCurrentHospital().id;
@@ -342,7 +343,7 @@ export class PathologySampleComponent implements OnInit {
342 343
 			if(!this.barCode){
343 344
 				return
344 345
 			}
345
-			if(this.barCode.length < 10) {
346
+			if(this.barCode.length < 10 && !this.pressType) {
346 347
 				return
347 348
 			}
348 349
 		}
@@ -1492,7 +1493,19 @@ export class PathologySampleComponent implements OnInit {
1492 1493
 		},200)
1493 1494
 	}
1494 1495
 
1495
-
1496
+	// 按了回车键
1497
+	pressType:any = false;
1498
+	onEnterPress(){
1499
+		if(this.barCode.length < 10) {
1500
+			this.pressType = true
1501
+			console.log(1,this.barCode)
1502
+			this.searchSpecimen(this.barCode,'search','new')
1503
+		}else{
1504
+			this.pressType = false
1505
+			console.log(2,this.barCode)
1506
+		}
1507
+	}
1508
+	
1496 1509
 	// 监听标本条码
1497 1510
 	specimenCodeChange(e){
1498 1511
 		this.changeInpSubjectSpecimen.next([e]);

+ 1 - 1
src/app/views/specimen-room-view/specimen-room-view.component.ts

@@ -989,7 +989,7 @@ export class SpecimenRoomViewComponent implements OnInit, OnDestroy {
989 989
 	
990 990
 	// 配送记录
991 991
 	distributionRecord(){
992
-		this.router.navigateByUrl("batchDistribution");
992
+		this.router.navigateByUrl("main/batchDistribution");
993 993
 	}
994 994
 	
995 995
   mainRole: boolean = false; //回到系统管理权限