Bladeren bron

拉取代码

maotao 4 maanden geleden
bovenliggende
commit
0483ec9df2

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

@@ -966,8 +966,8 @@ export class MainService {
966 966
 	}
967 967
 
968 968
 	// 标本间获取标本接收信息
969
-	getSpecimenInfo(batchNo,deptId) {
970
-	  return this.http.post(host.host + `/pathology/getInfo/${batchNo}/${deptId}`, {}, {
969
+	getSpecimenInfo(batchNo,deptId,data) {
970
+	  return this.http.post(host.host + `/pathology/getInfo/${batchNo}/${deptId}`, data, {
971 971
 	    headers: this.headers,
972 972
 	  });
973 973
 	}

+ 16 - 31
src/app/views/pathology-check/pathology-check.component.html

@@ -11,8 +11,8 @@
11 11
 						<div>
12 12
 							应送申请单: <span class="weight">{{otherData.pathologyFormNum}}</span> &nbsp;
13 13
 							标本: <span class="weight">{{otherData.specimenNum}}</span>&nbsp;
14
-							已扫描: <span class="weight">{{otherData.rapidityNum}}</span>&nbsp;
15
-							申请单标本: <span class="weight">{{otherData.rapidityNum}}</span>&nbsp;
14
+							已扫描: <span class="weight">{{otherData.scanPathologyFormNum}}</span>&nbsp;
15
+							申请单标本: <span class="weight">{{otherData.scanSpecimenNum}}</span>&nbsp;
16 16
 						</div>
17 17
 					</div>
18 18
 					
@@ -23,7 +23,7 @@
23 23
 				</div>
24 24
 				<div class="tabs">
25 25
 					<div class="tabs-item">
26
-						<div class="tabs-item-item" [ngClass]="{'activeClass': activeIndex == 0}" (click)="tabClick(0)">交接本</div>
26
+						<div class="tabs-item-item" [ngClass]="{'activeClass': activeIndex == 0}" (click)="tabClick(0)">已扫描</div>
27 27
 						<div class="tabs-item-item" [ngClass]="{'activeClass': activeIndex == 1}" (click)="tabClick(1)">未扫描</div>
28 28
 					</div>
29 29
 				</div>
@@ -34,11 +34,11 @@
34 34
 								[nzLoading]="tableLoading">
35 35
 								<thead>
36 36
 									<tr class="thead">
37
-										<th>申请单号 | 申请科室</th>
38
-										<th>患者姓名 | 住院号</th>
39
-										<th>标本数</th>
40
-										<th>部位</th>
41
-										<th>产生科室</th>
37
+										<th nzWidth="220px">申请单号 | 申请科室</th>
38
+										<th nzWidth="220px">患者姓名 | 住院号</th>
39
+										<th nzWidth="120px">标本数</th>
40
+										<th nzWidth="260px">部位</th>
41
+										<th nzWidth="120px">产生科室</th>
42 42
 										<th>离体时间</th>
43 43
 										<th>固定时间</th>
44 44
 									</tr>
@@ -55,9 +55,9 @@
55 55
 										</td>
56 56
 										<td>{{ data.specimenNum}}</td>
57 57
 										<td>{{ data.takePart}}</td>
58
-										<td>{{ data.takePart}}</td>
59
-										<td>{{ data.receiveTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
60
-										<td>{{ data.receiveTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
58
+										<td>{{ data.surgeryDeptDTO?data.surgeryDeptDTO.dept:'-'}}</td>
59
+										<td>{{ data.inVitroTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
60
+										<td>{{ data.fixationTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
61 61
 									</tr>
62 62
 								</tbody>
63 63
 							</nz-table>
@@ -107,8 +107,7 @@
107 107
 										<th>序号</th>
108 108
 										<th>条码号</th>
109 109
 										<th>标本名称</th>
110
-										<th *ngIf="dataType=='receive'">已接收 | 未接收</th>
111
-										<th *ngIf="dataType=='pack'">已扫描 | 未扫描</th>
110
+										<th>已扫描 | 未扫描</th>
112 111
 									</tr>
113 112
 								</thead>
114 113
 								<tbody>
@@ -118,11 +117,7 @@
118 117
 										<td>
119 118
 											<span *ngIf="data.partSource && data.partSource.value!=1">{{data.partSource?data.partSource.name:''}}</span>{{data.organ?data.organ.name:''}}{{data.specimenName}}
120 119
 										</td>
121
-										<td *ngIf="dataType=='receive'">
122
-											<div *ngIf="data.isScan==1">已接收</div>
123
-											<div *ngIf="data.isScan==0" class="red">未接收</div>
124
-										</td>
125
-										<td *ngIf="dataType=='pack'">
120
+										<td>
126 121
 											<div *ngIf="data.isScan==1">已扫描</div>
127 122
 											<div *ngIf="data.isScan==0" class="red">未扫描</div>
128 123
 										</td>
@@ -135,8 +130,7 @@
135 130
 			</div>
136 131
 		</div>
137 132
 		<div class="display_flex justify-content_flex-center bottom-btn">
138
-			<button class="btn btn-right" *ngIf="dataType=='receive'" nz-button nzType="primary" (click)="submitMultiForm()" [nzLoading]="btnMultiLoading">确认接收</button>
139
-			<button class="btn btn-right" *ngIf="dataType=='pack'" nz-button nzType="primary" (click)="submitMultiScanForm()" [nzLoading]="btnMultiLoading">扫描完成</button>
133
+			<button class="btn btn-right" nz-button nzType="primary" (click)="submitMultiScanForm()" [nzLoading]="btnMultiLoading">扫描完成</button>
140 134
 			<button class="btn cancel" nz-button nzType="default" (click)="hideMultiModal()">取消</button>
141 135
 		</div>
142 136
 	</div>
@@ -155,20 +149,11 @@
155 149
 <!-- 核对 -->
156 150
 <div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="connectModal">
157 151
 	<div class="modalBody">
158
-		<div class="title">核对<i class="icon_transport transport-guanbi" (click)="hideConnectModal()"></i>
152
+		<div class="title">信息核对<i class="icon_transport transport-guanbi" (click)="hideConnectModal()"></i>
159 153
 		</div>
160 154
 		<div class="content">
161 155
 		 <div class="title-class">
162
-	<!-- 		 <div>配送人应送达:单据{{mustReceived.pathologyFormNum}}张、
163
-			 标本{{mustReceived.specimenNum}}、速冻标本{{mustReceived.rapidityNum}}</div>
164
-			 <div>本次共接收单据
165
-			 <span [ngClass]="{'red': currReceived.pathologyFormNum < mustReceived.pathologyFormNum}">
166
-				 {{currReceived.pathologyFormNum}}
167
-			 </span>张、
168
-			 标本<span [ngClass]="{'red': currReceived.specimenNum<mustReceived.specimenNum}">{{currReceived.specimenNum}}</span>、速冻标本
169
-			 <span [ngClass]="{'red': currReceived.rapidityNum<mustReceived.rapidityNum}">{{currReceived.rapidityNum}}</span>
170
-			 </div> -->
171
-			 您本次共扫描<span class="red">10</span>申请单 标本<span class="red">25</span>份
156
+			 您本次共扫描<span class="red">{{mustReceived.pathologyFormNum}}</span>申请单 标本<span class="red">{{mustReceived.specimenNum}}</span>份
172 157
 		 </div>
173 158
 		 <form nz-form [formGroup]="validateConnectForm" class="addForm" (ngSubmit)="submitConnectForm()">
174 159
 			<nz-form-item>

+ 64 - 73
src/app/views/pathology-check/pathology-check.component.ts

@@ -171,6 +171,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
171 171
 	userInfo:any = null;
172 172
 	placeholder:any = null;
173 173
 	placeholderType:any = null;
174
+	operationType:any = 'pathologyHandoverBook';
174 175
   ngOnDestroy() {
175 176
     clearTimeout(this.timer);
176 177
     clearTimeout(this.logTimer);
@@ -188,26 +189,25 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
188 189
 		this.businessType = this.route.snapshot.queryParams.businessType
189 190
 		this.placeholderType = this.route.snapshot.queryParams.placeholder
190 191
 		this.packId = this.route.snapshot.queryParams.packId //打包配送查看标本
192
+		this.operationType = localStorage.getItem("checkType"); //入口类型
191 193
 		if(this.placeholderType==1){
192 194
 			this.placeholder = '可扫描物理标本条码'
193 195
 		}else{
194 196
 			this.placeholder = '可扫描物理标本条码及包码'
195 197
 		}
196 198
 		let scanData = localStorage.getItem("scanCodeData")
197
-		//dataType类型:receive:病理科接收标本,pack:病理科打包标本
198
-		//pathologyPack: 病理包扫码
199 199
 		this.dataType = localStorage.getItem("dataType")
200
-		if(this.packId && this.businessType=='packagLook'){
201
-			this.getJsData(5)
202
-			return
203
-		}
200
+		// if(this.packId && this.businessType=='packagLook'){
201
+		// 	this.getJsData(5)
202
+		// 	return
203
+		// }
204 204
 		if(scanData){
205 205
 			let data = JSON.parse(localStorage.getItem("scanCodeData"))
206 206
 			this.scanCodeData = data.data[0]
207 207
 			// 包的状态为配送中展示配送接收弹框
208
-			if(this.dataType=='pathologyPack'){
209
-				this.getJsData(4)
210
-			}
208
+			// if(this.dataType=='pathologyPack'){
209
+			// 	this.getJsData(4)
210
+			// }
211 211
 			if(this.scanCodeData.pathologySpecimenDTOList &&
212 212
 			this.scanCodeData.pathologySpecimenDTOList.length>1){
213 213
 				this.muArr = []
@@ -219,6 +219,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
219 219
 				this.getJsData(3)
220 220
 			}else if(this.scanCodeData.pathologySpecimenDTOList &&
221 221
 			this.scanCodeData.pathologySpecimenDTOList.length==1){
222
+				this.notification.create('success','提示',data.msg);
222 223
 				this.getJsData(1)
223 224
 			}
224 225
 		}else{
@@ -238,11 +239,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
238 239
 	tabClick(type){
239 240
 		this.activeIndex = type
240 241
 		localStorage.setItem("pathologyActiveIndex",type)
241
-		if(type==0){
242
-			this.getJsData(1)
243
-		}else if(type==1){
244
-			this.getJsData(1)
245
-		}
242
+		this.getJsData(1)
246 243
 	}
247 244
 	
248 245
 	// 分页
@@ -268,17 +265,20 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
268 265
 		  sum: this.pageSize,
269 266
 		  pathologyForm: {
270 267
 		    batchNo:this.batchNo,
271
-				packId:null
268
+				surgeryDeptId:this.deptId,
269
+				handoverType:this.operationType,
270
+				unScan:null
272 271
 		  },
273 272
 		};
274
-		if(type==4){
275
-			data.pathologyForm.packId = this.scanCodeData.id
276
-			delete data.pathologyForm.batchNo
277
-		}else if(type==5){
278
-			data.pathologyForm.packId = this.packId
279
-			delete data.pathologyForm.batchNo
273
+		if(this.operationType == 'pathologyHandoverBook'){
274
+			data.pathologyForm.surgeryDeptId = this.deptId
275
+		}else{
276
+			delete data.pathologyForm.surgeryDeptId
277
+		}
278
+		if(this.activeIndex==1){
279
+			data.pathologyForm.unScan = 1
280 280
 		}else{
281
-			delete data.pathologyForm.packId
281
+			delete data.pathologyForm.unScan
282 282
 		}
283 283
 		this.tableLoading = true;
284 284
 		this.mainService
@@ -334,7 +334,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
334 334
 		let data = {
335 335
 			receiveUser:this.connectUserId,
336 336
 			deliveryUser:this.dispatchingUserId,
337
-			operationType:'bagReceive',
337
+			operationType:this.operationType,
338 338
 			id:this.scanCodeData.id
339 339
 		};
340 340
 		this.btnConnectLoading = true
@@ -412,28 +412,36 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
412 412
 	btnLoading:any = false;
413 413
 	submitFixationForm(){
414 414
 		this.btnLoading = true
415
-		this.mainService.getSpecimenInfo(this.batchNo,this.deptId).subscribe((res:any) => {
415
+		this.mainService.getSpecimenInfo(this.batchNo,this.deptId,{
416
+			operationType:'handoverDelivery'
417
+		}).subscribe((res:any) => {
416 418
 			this.btnLoading = false
417
-			this.mustReceived = res.data.mustReceived;
418
-			this.currReceived = res.data.currReceived;
419
+			this.mustReceived = res;
420
+			// this.currReceived = res.data.currReceived;
419 421
 			this.btnConnectLoading = false
420
-			if(this.codeData[0].deliveryUserDTO){
421
-				this.validateConnectForm = this.fb.group({
422
-					receptionNumber: [this.userInfo.account, [Validators.required]],
423
-					dispatchingNumber: [this.codeData[0].deliveryUserDTO.account, [Validators.required]]
424
-				});
425
-				this.dispatchingName = this.codeData[0].deliveryUserDTO.name;
426
-				this.dispatchingUserId = this.codeData[0].deliveryUserDTO.id
427
-			}else{
428
-				this.validateConnectForm = this.fb.group({
429
-					receptionNumber: [null, [Validators.required]],
430
-					dispatchingNumber: [null, [Validators.required]]
431
-				});
432
-				this.dispatchingName = null;
433
-				this.dispatchingUserId = null
434
-			}
435
-			this.receptionName = this.userInfo.name;
436
-			this.connectUserId = this.userInfo.id;
422
+			// if(this.codeData[0].deliveryUserDTO){
423
+			// 	this.validateConnectForm = this.fb.group({
424
+			// 		receptionNumber: [this.userInfo.account, [Validators.required]],
425
+			// 		dispatchingNumber: [this.codeData[0].deliveryUserDTO.account, [Validators.required]]
426
+			// 	});
427
+			// 	this.dispatchingName = this.codeData[0].deliveryUserDTO.name;
428
+			// 	this.dispatchingUserId = this.codeData[0].deliveryUserDTO.id
429
+			// }else{
430
+			// 	this.validateConnectForm = this.fb.group({
431
+			// 		receptionNumber: [null, [Validators.required]],
432
+			// 		dispatchingNumber: [null, [Validators.required]]
433
+			// 	});
434
+			// 	this.dispatchingName = null;
435
+			// 	this.dispatchingUserId = null
436
+			// }
437
+			// this.receptionName = this.userInfo.name;
438
+			// this.connectUserId = this.userInfo.id;
439
+			this.validateConnectForm = this.fb.group({
440
+				receptionNumber: [null, [Validators.required]],
441
+				dispatchingNumber: [null, [Validators.required]]
442
+			});
443
+			this.dispatchingName = null;
444
+			this.dispatchingUserId = null
437 445
 			this.connectModal = true
438 446
 		});
439 447
 	}
@@ -452,8 +460,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
452 460
 		if (this.validateConnectForm.invalid) return;
453 461
 		let data = {
454 462
 			batchNo:this.batchNo,
455
-			receiveDept:this.deptId,
456
-			receiverUser:this.connectUserId,
463
+			checkUser:this.connectUserId,
457 464
 			deliveryUser:this.dispatchingUserId
458 465
 		};
459 466
 		this.btnConnectLoading = true
@@ -472,16 +479,15 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
472 479
 	// 返回
473 480
 	hideSpecimenModal(){
474 481
 		localStorage.setItem("scanCodeData",'')
475
-		let type = localStorage.getItem("checkType")
476
-		if(type=='communicationBook'){//交接本
482
+		if(this.operationType=='pathologyHandoverBook'){//交接本
477 483
 			this.router.navigateByUrl(`/pathologyCommunicationBook?type=detail`)
478
-		}else if(type=='surgery'){//手术间
484
+		}else if(this.operationType=='surgery'){//手术间
479 485
 			this.router.navigateByUrl(`/nurse`)
480
-		}else if(type=='specimen'){//标本间
486
+		}else if(this.operationType=='specimenDept'){//标本间
481 487
 			this.router.navigateByUrl(`/specimenRoomView`)
482
-		}else if(type=='pathology'){//病理端
488
+		}else if(this.operationType=='pathology'){//病理端
483 489
 			this.router.navigateByUrl(`/pathology`)
484
-		}else if(type=='sample'){//门诊病理
490
+		}else if(this.operationType=='sample'){//门诊病理
485 491
 			this.router.navigateByUrl(`/pathologySample`)
486 492
 		}
487 493
 	}
@@ -530,7 +536,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
530 536
 		this.changeInpSubject.next([e]);
531 537
 	}
532 538
 
533
-	// 标本接收搜索条码
539
+	// 标本搜索条码
534 540
 	errorMsg:any = null;
535 541
 	searchSpecimenData(e){
536 542
 		if(!e){
@@ -543,14 +549,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
543 549
 			barcode:e,
544 550
 			deptId:this.deptId,
545 551
 			batchNo:this.batchNo,
546
-			tabType:null
547
-		}
548
-		if(this.dataType=='receive'){
549
-			data.tabType = 'receive'
550
-		}else if(this.dataType=='pack'){
551
-			data.tabType = 'pack'
552
-		}else{
553
-			delete data.tabType
552
+			platform:'pathologyHandoverBook',
554 553
 		}
555 554
 		this.tableLoading = true
556 555
 		this.mainService.pathologyScanCode(data)
@@ -570,8 +569,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
570 569
 					this.codeMultiData = res.data[0].pathologySpecimenDTOList
571 570
 					localStorage.setItem("scanCodeData",JSON.stringify(res))
572 571
 				}else{
573
-					let tip = `扫描“申请单号”的标本“标本号” + “标本名称”成功`
574
-					this.notification.create('success','提示',tip);
572
+					this.notification.create('success','提示',res.msg);
575 573
 					this.getJsData(1)
576 574
 				}
577 575
 				this.errorMsg = null
@@ -605,14 +603,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
605 603
 			barcode:e,
606 604
 			deptId:this.deptId,
607 605
 			pathologyFormId:this.scanCodeData.id,
608
-			tabType:null
609
-		}
610
-		if(this.dataType=='receive'){
611
-			data.tabType = 'receive'
612
-		}else if(this.dataType=='pack'){
613
-			data.tabType = 'pack'
614
-		}else{
615
-			delete data.tabType
606
+			platform:'pathologyHandoverBook',
616 607
 		}
617 608
 		setTimeout(_=>{
618 609
 			this.tableLoading = true
@@ -652,7 +643,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
652 643
 		}
653 644
 		let data: any = {
654 645
 			id:this.scanCodeData.id,
655
-			operationType:'pathologyReceive',
646
+			operationType:this.operationType,
656 647
 			batchNo:this.batchNo
657 648
 		};
658 649
 		this.btnMultiLoading = true;
@@ -667,7 +658,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
667 658
 		});
668 659
 	}
669 660
 
670
-	// 多只标本打包
661
+	// 多只标本扫描
671 662
 	submitMultiScanForm(){
672 663
 		let data1 = JSON.parse(localStorage.getItem("scanCodeData"))
673 664
 		this.scanCodeData = data1.data[0]
@@ -679,7 +670,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
679 670
 		}
680 671
 		let data: any = {
681 672
 			id:this.scanCodeData.id,
682
-			operationType:'pathologyPack',
673
+			operationType:this.operationType,
683 674
 			batchNo:this.batchNo
684 675
 		};
685 676
 		this.btnMultiLoading = true;

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

@@ -14,7 +14,7 @@
14 14
 					<button nz-button nzType="primary" nzSize="large" nzSearch (click)="searchSpecimen()">搜索</button>
15 15
 				</ng-template> -->
16 16
       </div>
17
-			<div>
17
+			<div class="error-box">
18 18
 				<div class="error-class">{{searchMsg}}</div>
19 19
 			</div>
20 20
     </div>
@@ -36,15 +36,15 @@
36 36
 	<div class="communication-tip">
37 37
 		<div class="mar-ri-30" *ngIf="toDayData">
38 38
 			今日产生:
39
-			申请单 <span class="weight">{{toDayData.pathologyFormNum}}</span> &nbsp;
40
-			标本 <span class="weight">{{toDayData.specimenNum}}</span>&nbsp;
41
-			速冻 <span class="weight">{{toDayData.rapidityNum}}</span>&nbsp;
39
+			申请单 <span class="weight">{{toDayData.pathologyFormNum || 0}}</span> &nbsp;
40
+			标本 <span class="weight">{{toDayData.specimenNum || 0}}</span>&nbsp;
41
+			速冻 <span class="weight">{{toDayData.rapidityNum || 0}}</span>&nbsp;
42 42
 		</div>
43 43
 	  <div class="mar-ri-30" *ngIf="toDayData">
44 44
 	  	今日送出:
45
-	  	申请单 <span class="weight">{{toDayData.pathologyFormNum}}</span> &nbsp;
46
-	  	标本 <span class="weight">{{toDayData.specimenNum}}</span>&nbsp;
47
-	  	速冻 <span class="weight">{{toDayData.rapidityNum}}</span>&nbsp;
45
+	  	申请单 <span class="weight">{{toDayData.sendOutPathologyFormNum || 0}}</span> &nbsp;
46
+	  	标本 <span class="weight">{{toDayData.sendOutSpecimenNum || 0}}</span>&nbsp;
47
+	  	速冻 <span class="weight">{{toDayData.sendOutRapidityNum || 0}}</span>&nbsp;
48 48
 	  </div>
49 49
 	</div>
50 50
 	<div class="tabs">
@@ -68,7 +68,8 @@
68 68
 			      </div>
69 69
 						<div class="list-template__searchItem">
70 70
 						  <span class="label">患者:</span>
71
-							<nz-select class="formItem" (nzOnSearch)="changeUserInp($event)"
71
+							<input type="text" class="search-input" [(ngModel)]="deliveryUser" nz-input placeholder="请输入患者" />
72
+<!-- 							<nz-select class="formItem" (nzOnSearch)="changeUserInp($event)"
72 73
 							  [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear nzPlaceHolder="请选择患者"
73 74
 							  [(ngModel)]="deliveryUser">
74 75
 							  <ng-container *ngFor="let option of userData">
@@ -77,19 +78,15 @@
77 78
 							  <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
78 79
 							    <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
79 80
 							  </nz-option>
80
-							</nz-select>
81
+							</nz-select> -->
81 82
 						</div>
82 83
 						<div class="list-template__searchItem">
83 84
 						  <span class="label">状态:</span>
84
-							<nz-select class="formItem" (nzOnSearch)="changeUserInp($event)"
85
-							  [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear nzPlaceHolder="请选择状态"
85
+							<nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear nzPlaceHolder="请选择状态"
86 86
 							  [(ngModel)]="status">
87
-							  <ng-container *ngFor="let option statusData">
88
-							    <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
87
+							  <ng-container *ngFor="let option of statusData">
88
+							    <nz-option [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
89 89
 							  </ng-container>
90
-							  <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
91
-							    <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
92
-							  </nz-option>
93 90
 							</nz-select>
94 91
 						</div>
95 92
 						<div class="list-template__searchItem">
@@ -121,22 +118,22 @@
121 118
 								<th>固定时间</th>
122 119
 			          <th>配送人</th>
123 120
 								<th>配送时间</th>
124
-			          <th>操作</th>
121
+			          <th nzWidth="80px">操作</th>
125 122
 			        </tr>
126 123
 			      </thead>
127 124
 			      <tbody>
128 125
 			        <tr *ngFor="let data of listOneData">
129 126
 			          <td><span *ngIf="data.intraoperativeRapidity==1" style="color: red;">速</span>{{ data.applyCode || '-' }}</td>
130
-								<td>{{ data.patientDTO?data.patientDTO.patientName : '-' }}</td>
131
-								<td>{{ data.patientDTO.patientCode}}</td>
132
-			          <td>{{ data.patientDTO.patientCode}}</td>
127
+								<td>{{ data.status?data.status.name : '-' }}</td>
128
+								<td>{{ data.patientDTO.patientName}}</td>
129
+			          <td>{{ data.patientDTO.residenceNo}}</td>
133 130
 			          <td>{{ data.takePart}}</td>
134 131
 			          <td>{{ data.specimenNum}}</td>
135 132
 			          <td>{{ data.patientDTO?data.patientDTO.department.dept : '-'}}</td>
136
-								<td>{{ data.receiveTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
137
-								<td>{{ data.receiveTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
133
+								<td>{{ data.inVitroTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
134
+								<td>{{ data.fixationTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
138 135
 								<td>{{ data.deliveryUserDTO?data.deliveryUserDTO.name : '-' }}</td>
139
-								<td>{{ data.receiveTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
136
+								<td>{{ data.leaveDeptTime|date:'yyyy-MM-dd HH:mm:ss'  }}</td>
140 137
 			          <td>
141 138
 			            <div class="coop">
142 139
 										<span (click)="oneLook($event,data)">查看</span>
@@ -289,7 +286,6 @@
289 286
   [show]="hsPromptModalShow"
290 287
   (closeModelHs)="closeModelHs($event)"
291 288
   (clearModelHs)="clearModelHs($event)"
292
-  deptType="pathology"
293 289
 > 
294 290
   <!-- 返回系统按钮 -->
295 291
   <!-- 右侧悬浮框 -->
@@ -477,143 +473,4 @@
477 473
 			</div>
478 474
 		</div>
479 475
 	</div>
480
-</div>
481
-
482
-<!-- 补打 -->
483
-<app-dialog-delete [delModal]="printModal" (hideDelModalEvent)="hidePrintModal()" [btnLoading]="parintLoading"
484
-  (confirmDelEvent)="confirmPrintDel()" [content]="'您确认要重新打印条码吗?'"></app-dialog-delete>
485
-	
486
-<!-- 配送 -->
487
-<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="distributionModal">
488
-	<div class="modalBody">
489
-		<div class="title">配送信息填写<i class="icon_transport transport-guanbi" (click)="hideDistributionModal()"></i>
490
-		</div>
491
-		<div class="content">
492
-		 <div class="title-class">包内含申请单{{rowData.pathologyFormNum}}张、标本{{rowData.specimenNum}}支,请填写配送人员工号。</div>
493
-		 <form nz-form [formGroup]="validateForm" class="addForm" (ngSubmit)="submitDistributionForm()">
494
-			<nz-form-item>
495
-				<nz-form-label nzRequired nzFor="jobNumber">配送人工号</nz-form-label>
496
-				<nz-form-control nzErrorTip="请输入配送人工号!">
497
-					<input nz-input (ngModelChange)="numberChange($event)" formControlName="jobNumber" placeholder="请输入配送人工号" nzSize="default" />
498
-				</nz-form-control>
499
-			</nz-form-item>
500
-			<nz-form-item class="form-name">
501
-				<nz-form-label style="margin-left: 12px;">配送人姓名</nz-form-label>
502
-				<!-- <nz-form-control nzErrorTip="请输入配送人工号!"> -->
503
-					<div class="job-class">{{distributionName}}</div>
504
-				<!-- </nz-form-control> -->
505
-			</nz-form-item>
506
-			<nz-form-item>
507
-				<nz-form-label nzRequired nzFor="gurop">接收院区</nz-form-label>
508
-				<nz-form-control nzErrorTip="请选择接收院区!">
509
-					<nz-input-group>
510
-						<nz-select class="formItem" (ngModelChange)="changeHospDate($event)" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzPlaceHolder="请选择接收院区" formControlName="gurop">
511
-							<ng-container *ngFor="let option of hospital">
512
-								<nz-option [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
513
-							</ng-container>
514
-						</nz-select>
515
-					</nz-input-group>
516
-				</nz-form-control>
517
-			</nz-form-item>
518
-			<nz-form-item>
519
-				<nz-form-label nzRequired nzFor="department">接收科室</nz-form-label>
520
-				<nz-form-control nzErrorTip="请选择接收科室!">
521
-					<nz-input-group>
522
-						<nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzPlaceHolder="请选择接收科室" formControlName="department">
523
-							<ng-container *ngFor="let option of department">
524
-								<nz-option *ngIf="!isDeptLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
525
-							</ng-container>
526
-							<nz-option *ngIf="isDeptLoading" nzDisabled nzCustomContent>
527
-								<i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
528
-							</nz-option>
529
-						</nz-select>
530
-					</nz-input-group>
531
-				</nz-form-control>
532
-			</nz-form-item>
533
-		 </form>
534
-		</div>
535
-		<div class="display_flex justify-content_flex-center">
536
-			<button class="btn" nz-button nzType="primary" (click)="submitDistributionForm()" [nzLoading]="btnLoading">确定配送</button>
537
-			<button class="btn cancel" nz-button nzType="default" (click)="hideDistributionModal()">取消</button>
538
-		</div>
539
-	</div>
540
-</div>
541
-
542
-<!-- 配送接收 -->
543
-<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="receptionModal">
544
-	<div class="modalBody">
545
-		<div class="title">配送接收<i class="icon_transport transport-guanbi" (click)="hideReceptionModal()"></i>
546
-		</div>
547
-		<div class="content">
548
-		 <div class="title-class">
549
-			 包内含申请单12张、标本100,请确认接收。
550
-			</div>
551
-		 <form nz-form [formGroup]="validateConnectForm" class="addForm" (ngSubmit)="submitReceptionForm()">
552
-			<nz-form-item>
553
-				<nz-form-label nzRequired nzFor="receptionNumber">接收人工号</nz-form-label>
554
-				<nz-form-control nzErrorTip="请输入接收人工号!">
555
-					<input nz-input (ngModelChange)="receptionChange($event)" formControlName="receptionNumber" placeholder="请输入接收人工号" nzSize="default" />
556
-				</nz-form-control>
557
-			</nz-form-item>
558
-			<nz-form-item class="form-name">
559
-				<nz-form-label style="margin-left: 12px;">接收人姓名</nz-form-label>
560
-				<!-- <nz-form-control nzErrorTip="请输入接收人工号!"> -->
561
-					<div class="job-class">{{receptionName}}</div>
562
-				<!-- </nz-form-control> -->
563
-			</nz-form-item>
564
-			<nz-form-item>
565
-				<nz-form-label nzRequired nzFor="dispatchingNumber">配送人工号</nz-form-label>
566
-				<nz-form-control nzErrorTip="请输入配送人工号!">
567
-					<input nz-input (ngModelChange)="dispatchingChange($event)" formControlName="dispatchingNumber" placeholder="请输入配送人工号" nzSize="default" />
568
-				</nz-form-control>
569
-			</nz-form-item>
570
-			<nz-form-item class="form-name">
571
-				<nz-form-label style="margin-left: 12px;">配送人姓名</nz-form-label>
572
-				<!-- <nz-form-control nzErrorTip="请输入配送人工号!"> -->
573
-					<div class="job-class">{{dispatchingName}}</div>
574
-				<!-- </nz-form-control> -->
575
-			</nz-form-item>
576
-		 </form>
577
-		</div>
578
-		<div class="display_flex justify-content_flex-center">
579
-			<button class="btn" nz-button nzType="primary" (click)="submitReceptionForm()" [nzLoading]="btnConnectLoading">确定接收</button>
580
-			<button class="btn cancel" nz-button nzType="default" (click)="hideReceptionModal()">取消</button>
581
-		</div>
582
-	</div>
583
-</div>
584
-
585
-<!-- 打包并打印 -->
586
-<div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="packModal">
587
-	<div class="modalBody">
588
-		<div class="title">打包并打印<i class="icon_transport transport-guanbi" (click)="hidePackModal()"></i>
589
-		</div>
590
-		<div class="content-modal">
591
-			 本次共扫描单据50张、标本40,是否打包并打印?
592
-		</div>
593
-		<div class="display_flex justify-content_flex-center">
594
-			<button class="btn" nz-button nzType="primary" (click)="submitPackForm()" [nzLoading]="btnPackLoading">打包并打印</button>
595
-			<button class="btn cancel" nz-button nzType="default" (click)="hidePackModal()">取消</button>
596
-		</div>
597
-	</div>
598
-</div>
599
-
600
-<!-- 打印 -->
601
-<div id="report" style="display: none;" *ngIf="printData">
602
-	<div class="monad">
603
-		<div style="font-size: 10px;padding: 2px;">
604
-			<!-- <div> -->
605
-				<div style="display: flex;align-items: center;justify-content: center;">
606
-					<img style="width: 100%;height: 60px;" [src]="printData.qrCode" alt="">
607
-				</div>
608
-				<div style="padding: 1px;">
609
-					<div style="display: flex;flex-wrap: nowrap;margin-bottom:3px;">包码:{{printData.packCode}}</div>
610
-					<div style="display: flex;">打包时间:{{printData.packTime|date:'yyyy-MM-dd HH:mm:ss'}}</div>
611
-					<!-- <div style="display: flex;">打包人:{{printData.packUserDTO?printData.packUserDTO.name:'-'}}</div> -->
612
-					<!-- <div style="display: flex;margin-bottom:6px;">申请单数:{{printData.pathologyFormNum}}</div> -->
613
-					<!-- <div style="display: flex;margin-bottom:6px;">标本数:{{printData.specimenNum}}</div> -->
614
-				</div>
615
-			<!-- </div> -->
616
-			<!-- <div style="display: flex;">打包时间:{{printData.packTime|date:'yyyy-MM-dd HH:mm:ss'}}</div> -->
617
-		</div>
618
-	</div>
619 476
 </div>

+ 10 - 4
src/app/views/pathology-communication-book/pathology-communication-book.component.less

@@ -114,11 +114,14 @@
114 114
   			display: flex;
115 115
   			width: 270px;
116 116
       }
117
-  		.error-class{
118
-  			color: red;
119
-  		}
117
+			.error-box{
118
+				width:280px;
119
+				.error-class{
120
+					color: red;
121
+				}
122
+			}
120 123
     }
121
-  
124
+		
122 125
     .pharmacy-operate {
123 126
       width: 211px;
124 127
       display: flex;
@@ -582,6 +585,9 @@
582 585
           justify-content: center;
583 586
         }
584 587
       }
588
+			.search-input{
589
+				width: 133px;
590
+			}
585 591
       // 标题 end
586 592
       // 搜索框 start
587 593
       .pharmacy-main__search {

File diff suppressed because it is too large
+ 64 - 774
src/app/views/pathology-communication-book/pathology-communication-book.component.ts


+ 1 - 1
src/app/views/pathology/pathology.component.ts

@@ -807,7 +807,7 @@ export class PathologyComponent implements OnInit, OnDestroy {
807 807
 	currReceived:any = null;
808 808
 	submitFixationForm(){
809 809
 		this.btnLoading = true
810
-		this.mainService.getSpecimenInfo(this.batchNo,this.deptId).subscribe((res:any) => {
810
+		this.mainService.getSpecimenInfo(this.batchNo,this.deptId,{}).subscribe((res:any) => {
811 811
 			this.btnLoading = false
812 812
 			this.mustReceived = res.data.mustReceived;
813 813
 			this.currReceived = res.data.currReceived;

+ 1 - 1
src/app/views/pathologyScan/pathologyScan.component.ts

@@ -512,7 +512,7 @@ export class PathologyScanComponent implements OnInit, OnDestroy {
512 512
 	currReceived:any = null;
513 513
 	submitFixationForm(){
514 514
 		this.btnLoading = true
515
-		this.mainService.getSpecimenInfo(this.batchNo,this.deptId).subscribe((res:any) => {
515
+		this.mainService.getSpecimenInfo(this.batchNo,this.deptId,{}).subscribe((res:any) => {
516 516
 			this.btnLoading = false
517 517
 			this.mustReceived = res.data.mustReceived;
518 518
 			this.currReceived = res.data.currReceived;

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

@@ -26,6 +26,7 @@
26 26
 			<div>
27 27
 				<div class="error-class">{{searchMsg}}</div>
28 28
 			</div>
29
+			<button class="right-btn" nz-button nzType="primary" nzSize="large" (click)="specimenCheck()">标本核对</button>
29 30
     </div>
30 31
     <div class="userInfo">
31 32
       <div class="wel">欢迎您:</div>

+ 5 - 0
src/app/views/specimen-room-view/specimen-room-view.component.less

@@ -89,6 +89,7 @@
89 89
       align-items: center;
90 90
 			width: 60%;
91 91
 			justify-content: center;
92
+			position: relative;
92 93
       .pharmacy-name__title {
93 94
         font-size: 22px;
94 95
         color: #333;
@@ -112,6 +113,10 @@
112 113
 			.error-class{
113 114
 				color: red;
114 115
 			}
116
+			.right-btn{
117
+				position: absolute;
118
+				right: 10px;
119
+			}
115 120
     }
116 121
 
117 122
     .pharmacy-operate {

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

@@ -161,7 +161,16 @@ export class SpecimenRoomViewComponent implements OnInit, OnDestroy {
161 161
       this.runTime();
162 162
     }, 500);
163 163
   }
164
-
164
+	
165
+	// 标本核对
166
+	specimenCheck(){
167
+		this.mainService.generateBatchNumber()
168
+		.subscribe((res:any) =>{
169
+			localStorage.setItem("checkType",'specimenDept')
170
+			this.router.navigateByUrl(`/pathologyCheck?batchNo=${res.data}`);
171
+		})
172
+	}
173
+	
165 174
 	// 标本条码搜索
166 175
 	searchSpecimen(e){
167 176
 		if(!this.barCode){