maotao hai 4 meses
pai
achega
1a0ac6a982

+ 18 - 18
src/app/share/pathology-add/pathology-add.component.html

@@ -283,13 +283,13 @@
283 283
 		<div class="monad">
284 284
 			<div *ngIf="printData && printData.specimenList && printData.specimenList.length>1 && operation != 'addPrint'" style="border: 1px solid #AAAAAA;
285 285
 				border-radius: 5px;font-size: 12px;">
286
-				 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 80px;">
286
+				 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 80px;padding: 0 1px;">
287 287
 					 <div style="width: 60%;height: 70px;text-align: center;">
288
-						 <img style="max-width: 95%;height: 80%;" [src]="printData.applyBarCode" alt="">
288
+						 <img style="max-width: 90%;height: 80%;" [src]="printData.applyBarCode" alt="">
289 289
 						 <div>{{printData.applyCode}}</div>
290 290
 					 </div>
291
-					 <div style="width: 40%;text-align: center;">
292
-						 <img style="max-width: 100%;height: 100%;" [src]="tool.logoUrl" alt="">
291
+					 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;">
292
+						 <img style="max-width: 100%;max-height: 100%;" [src]="tool.logoUrl" alt="">
293 293
 					 </div>
294 294
 				 </div>
295 295
 				
@@ -327,16 +327,15 @@
327 327
 			
328 328
 			<div *ngIf="printData && printData.specimenList && printData.specimenList.length>0 && operation == 'addPrint'" style="border: 1px solid #AAAAAA;
329 329
 				border-radius: 5px;font-size: 12px;">
330
-				 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 80px;">
330
+				 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 80px;padding: 0 1px;">
331 331
 					 <div style="width: 60%;height: 70px;text-align: center;">
332
-						 <img style="max-width: 95%;height: 80%;" [src]="printData.applyBarCode" alt="">
332
+						 <img style="max-width: 90%;height: 80%;" [src]="printData.applyBarCode" alt="">
333 333
 						 <div>{{printData.applyCode}}</div>
334 334
 					 </div>
335
-					 <div style="width: 40%;text-align: center;">
336
-						 <img style="max-width: 100%;height: 100%;" [src]="tool.logoUrl" alt="">
335
+					 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;">
336
+						 <img style="max-width: 100%;max-height: 100%;" [src]="tool.logoUrl" alt="">
337 337
 					 </div>
338 338
 				 </div>
339
-				
340 339
 				<div style="display: flex;border-bottom: 1px solid #AAAAAA;">
341 340
 					<div style="width:20%;border-right: 1px solid #AAAAAA;border-top: 1px solid #aaa;padding:1px;">患者姓名</div>
342 341
 					<div style="width:50%;border-right: 1px solid #AAAAAA;border-top: 1px solid #aaa;padding:1px;">{{printData.patientName}}</div>
@@ -369,19 +368,20 @@
369 368
 				</div>
370 369
 			</div>
371 370
 			
372
-			<div style="height: 20px;" *ngIf="printData && printData.specimenList && printData.specimenList.length>1"></div>
371
+			<div style="height: 70px;" *ngIf="printData && printData.specimenList && printData.specimenList.length==1 && operation == 'addPrint'"></div>
372
+			<div style="height: 20px;" *ngIf="printData && printData.specimenList && printData.specimenList.length>1 && operation != 'addPrint'"></div>
373 373
 			<div style="font-size: 12px;" *ngIf="printData && printData.specimenList && printData.specimenList.length>0">
374 374
 				<div *ngFor="let data of printData.specimenList; let index=index;">
375 375
 				 <div style="height: 50px;" *ngIf="printData && printData.specimenList && printData.specimenList.length>1"></div>
376 376
 				 <div style="border: 1px solid #AAAAAA;border-radius: 5px;">
377
-					 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 80px;">
378
-						<div style="width: 60%;height: 70px;text-align: center;">
379
-							<img style="max-width: 95%;height: 80%;" [src]="data.barCode" alt="">
380
-						  <div>{{data.specimenCode}}</div>
381
-						</div>
382
-						<div style="width: 40%;text-align: center;">
383
-							<img style="max-width: 100%;height: 100%;" [src]="tool.logoUrl" alt="">
384
-						</div>
377
+					 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 80px;padding: 0 1px;">
378
+						 <div style="width: 60%;height: 70px;text-align: center;">
379
+							 <img style="max-width: 90%;height: 80%;" [src]="data.barCode" alt="">
380
+							 <div>{{data.specimenCode}}</div>
381
+						 </div>
382
+						 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;">
383
+							 <img style="max-width: 100%;max-height: 100%;" [src]="tool.logoUrl" alt="">
384
+						 </div>
385 385
 					 </div>
386 386
 					 <div style="display: flex;border-bottom: 1px solid #AAAAAA;">
387 387
 					 	<div style="width:20%;box-sizing: border-box;border-right: 1px solid #AAAAAA;border-top: 1px solid #aaa;padding:1px;">患者姓名</div>

+ 5 - 2
src/app/share/pathology-add/pathology-add.component.ts

@@ -24,6 +24,7 @@ export class PathologyAddComponent implements OnInit {
24 24
 	@Input() surgeryId: string;
25 25
 	@Input() patientId: string;
26 26
 	@Input() detailId: string;
27
+	@Input() applicationType: string;
27 28
 	
28 29
 	constructor(
29 30
 		private http: HttpClient,
@@ -102,7 +103,7 @@ export class PathologyAddComponent implements OnInit {
102 103
 		  idx: 0,
103 104
 		  sum: 9999,
104 105
 		  pathologyForm: {
105
-				surgeryId: this.surgeryId || "",
106
+				surgeryId: "",
106 107
 		    patientId: this.patientId || "",
107 108
 		    hosId: this.hosId || "" ,
108 109
 		  },
@@ -120,6 +121,7 @@ export class PathologyAddComponent implements OnInit {
120 121
 				if(this.detailsData.pathologyFormType!=null){
121 122
 					this.validateForm.controls.pathologyFormType.setValue(this.detailsData.pathologyFormType);
122 123
 				}
124
+
123 125
 				if(this.detailsData.intraoperativeFindings){
124 126
 					this.validateForm.controls.intraoperativeFindings.setValue(this.detailsData.intraoperativeFindings);
125 127
 				}
@@ -897,8 +899,8 @@ export class PathologyAddComponent implements OnInit {
897 899
 					let date = new Date();
898 900
 					this.startDate = format(date, "yyyy-MM-dd HH:mm:ss")
899 901
 					this.validatePrintForm.controls.inVitroTime.setValue(this.startDate);
900
-					return
901 902
 				})
903
+				return
902 904
 			}
903 905
 			let data: any = {
904 906
 				pathologyForm:{
@@ -907,6 +909,7 @@ export class PathologyAddComponent implements OnInit {
907 909
 					surgeryId: this.surgeryId || "",
908 910
 					patientId: this.patientId || "",
909 911
 					hosId: this.hosId || "" ,
912
+					pathologyInspectIds:this.validateForm.value.project.join(','),
910 913
 					specimenType:{
911 914
 						id:this.validateForm.value.specimenGenre
912 915
 					}

+ 12 - 13
src/app/share/pathology-detail/pathology-detail.component.html

@@ -115,16 +115,15 @@
115 115
 		<div class="monad">
116 116
 			<div *ngIf="printData && printData.specimenList && printData.specimenList.length>1" style="border: 1px solid #AAAAAA;
117 117
 				border-radius: 5px;font-size: 12px;">
118
-				 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 80px;">
118
+				 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 80px;padding: 0 1px;">
119 119
 					 <div style="width: 60%;height: 70px;text-align: center;">
120
-						 <img style="max-width: 95%;height: 80%;" [src]="printData.applyBarCode" alt="">
120
+						 <img style="max-width: 90%;height: 80%;" [src]="printData.applyBarCode" alt="">
121 121
 						 <div>{{printData.applyCode}}</div>
122 122
 					 </div>
123
-					 <div style="width: 40%;text-align: center;">
124
-						 <img style="max-width: 100%;height: 100%;" [src]="tool.logoUrl" alt="">
123
+					 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;">
124
+						 <img style="max-width: 100%;max-height: 100%;" [src]="tool.logoUrl" alt="">
125 125
 					 </div>
126 126
 				 </div>
127
-				
128 127
 				<div style="display: flex;border-bottom: 1px solid #AAAAAA;">
129 128
 					<div style="width:20%;border-right: 1px solid #AAAAAA;border-top: 1px solid #aaa;padding:1px;">患者姓名</div>
130 129
 					<div style="width:50%;border-right: 1px solid #AAAAAA;border-top: 1px solid #aaa;padding:1px;">{{printData.patientName}}</div>
@@ -162,14 +161,14 @@
162 161
 				<div *ngFor="let data of printData.specimenList; let index=index;">
163 162
 				 <div style="height: 50px;" *ngIf="printData && printData.specimenList && printData.specimenList.length>1"></div>
164 163
 				 <div style="border: 1px solid #AAAAAA;border-radius: 5px;">
165
-					 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 80px;">
166
-						<div style="width: 60%;height: 70px;text-align: center;">
167
-							<img style="max-width: 95%;height: 80%;" [src]="data.barCode" alt="">
168
-							<div>{{data.specimenCode}}</div>
169
-						</div>
170
-						<div style="width: 40%;text-align: center;">
171
-							<img style="max-width: 100%;height: 100%;" [src]="tool.logoUrl" alt="">
172
-						</div>
164
+					 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 80px;padding: 0 1px;">
165
+						 <div style="width: 60%;height: 70px;text-align: center;">
166
+							 <img style="max-width: 90%;height: 80%;" [src]="data.barCode" alt="">
167
+							 <div>{{data.specimenCode}}</div>
168
+						 </div>
169
+						 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;">
170
+							 <img style="max-width: 100%;max-height: 100%;" [src]="tool.logoUrl" alt="">
171
+						 </div>
173 172
 					 </div>
174 173
 					 <div style="display: flex;border-bottom: 1px solid #AAAAAA;">
175 174
 					 	<div style="width:20%;box-sizing: border-box;border-right: 1px solid #AAAAAA;border-top: 1px solid #aaa;padding:1px;">患者姓名</div>

+ 4 - 2
src/app/views/hushijiandan/hushijiandan.component.html

@@ -3772,7 +3772,7 @@
3772 3772
 <button ngxPrint printSectionId="print-section" #printBtn hidden [printStyle]="{ '@page': { margin: '0 !important' }, 'body': { margin: '0 !important' } }">打印</button>
3773 3773
 
3774 3774
 <!-- 病理申请单 -->
3775
-<app-pathology-add *ngIf="pathologyModal" [surgeryId]="surgeryDataId" [patientId]="patientDataId" [patientId]="patientDataId" [detailId]="detailId" (pathologyCancel)="pathologyCancel($event)"></app-pathology-add>
3775
+<app-pathology-add *ngIf="pathologyModal" [surgeryId]="surgeryDataId" [patientId]="patientDataId" [patientId]="patientDataId" [detailId]="detailId" [applicationType]="applicationType" (pathologyCancel)="pathologyCancel($event)"></app-pathology-add>
3776 3776
 
3777 3777
 <!-- 病理详情 -->
3778 3778
 <app-pathology-detail *ngIf="pathologyDetailModal" [surgeryId]="surgeryDataId" [patientId]="patientDataId" [detailId]="detailId" (pathologyCancel)="pathologyDetailCancel($event)"></app-pathology-detail>
@@ -3817,7 +3817,9 @@
3817 3817
 			</div>
3818 3818
 		</div>
3819 3819
 		<div class="display_flex justify-content_flex-center mar-20 btns">
3820
-			<button class="btn" nz-button nzType="primary" (click)="hideModal()">知道了</button>
3820
+			<button class="btn" style="margin-right: 0;" *ngIf="autoCreate==1" nz-button nzType="primary" (click)="addPathologyType(0)">新增普通病理</button>
3821
+			<button class="btn" *ngIf="autoCreate==1" nz-button nzType="primary" (click)="addPathologyType(1)">新增术中快速病理</button>
3822
+			<button class="btn cancel" nz-button nzType="default" (click)="hideModal()">知道了</button>
3821 3823
 		</div>
3822 3824
 	</div>
3823 3825
 </div>

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

@@ -209,7 +209,7 @@ export class HushijiandanComponent implements OnInit {
209 209
     this.refreshSpecimenWorkOrderMsg();
210 210
     this.initRole();
211 211
     this.getWebsocket();
212
-
212
+		this.getTaskTypesId();
213 213
     // 综合日志倒计时 start
214 214
     this.logTime = this.logTimeConst;
215 215
     clearInterval(this.logTimer);
@@ -302,7 +302,61 @@ export class HushijiandanComponent implements OnInit {
302 302
     this.coopBtns = coopBtns;
303 303
     console.log(this.coopBtns);
304 304
   }
305
-
305
+	
306
+	// 获取任务类型(病理标本)
307
+	taskTypeData:any;
308
+	getTaskTypesId() {
309
+		this.mainService.getDictionary("list", "ordinary_field").subscribe((data) => {
310
+			this.taskTypeData = data.find(i=>i.value=='pathology')
311
+			this.getPathologySys();
312
+		});
313
+	}
314
+	
315
+	// 获取标本配置
316
+	autoCreate:any;
317
+	getPathologySys(){
318
+		let postData = {
319
+			  idx: 0,
320
+			  sum: 10,
321
+			  taskTypeConfig: {
322
+					hosId:this.currentHospital.id,
323
+					taskType:this.taskTypeData.id
324
+			  }
325
+		}
326
+		
327
+		this.mainService
328
+		  .getFetchDataList("simple/data", "taskTypeConfig", postData)
329
+		  .subscribe((result) => {
330
+		    if (result.status == 200) {
331
+					this.autoCreate = result.list[0].autoCreate;
332
+		    }
333
+		  });
334
+	}
335
+	
336
+	// 新增申请单自选类型
337
+	applicationType:any;
338
+	addPathologyType(type){
339
+		this.surgeryDataId = this.surgeryWKOMsg.id
340
+		this.patientDataId = this.surgeryWKOMsg.patientDTO.id
341
+		this.applicationType = type
342
+		let data = {
343
+			idx: 0,
344
+			sum: 9999,
345
+			surgeryId: this.surgeryWKOMsg.id || "",
346
+			patientId: this.surgeryWKOMsg.patientDTO.id || "",
347
+			hosId: this.currentHospital.id || "" ,
348
+			operationType: 'pathologyForm',
349
+			pathologyFormType: type
350
+		};
351
+		this.mainService
352
+		.simplePost("addData", "pathologyForm", data)
353
+		.subscribe((data) => {
354
+			this.detailId = data.data.id
355
+			this.multiDialog = false
356
+			this.pathologyModal = true
357
+		});
358
+	}
359
+	
306 360
 	// 手术排程-病理申请单
307 361
 	pathologyAddItem(e,item){
308 362
 		this.surgeryDataId = item.id
@@ -311,7 +365,7 @@ export class HushijiandanComponent implements OnInit {
311 365
 			idx: 0,
312 366
 			sum: 9999,
313 367
 			pathologyForm: {
314
-				surgeryId: item.id || "",
368
+				// surgeryId: item.id || "",
315 369
 				patientId: item.patientDTO.id || "",
316 370
 				hosId: this.currentHospital.id || "" ,
317 371
 				operationType: 'pathologyForm',
@@ -323,6 +377,15 @@ export class HushijiandanComponent implements OnInit {
323 377
 			.getFetchDataList("data", "pathologyForm", data)
324 378
 			.subscribe((data) => {
325 379
 				this.isSpinning = false
380
+				this.viewData = data.list
381
+				if(this.viewData.pathologyInspectDTOS){
382
+					for(let i of this.viewData.pathologyInspectDTOS){
383
+						i.arr = []
384
+						i.arr.push(i.inspectProject.name)
385
+					}
386
+				}
387
+				this.multiDialog = true
388
+				return
326 389
 				if(data.list.length==1){
327 390
 					this.detailId = data.list[0].id
328 391
 					if(!data.list[0].status){
@@ -362,7 +425,7 @@ export class HushijiandanComponent implements OnInit {
362 425
 			idx: 0,
363 426
 			sum: 9999,
364 427
 			pathologyForm: {
365
-				surgeryId: this.surgeryWKOMsg.id || "",
428
+				// surgeryId: this.surgeryWKOMsg.id || "",
366 429
 				patientId: this.surgeryWKOMsg.patientDTO.id || "",
367 430
 				hosId: this.currentHospital.id || "" ,
368 431
 				operationType: 'pathologyForm',
@@ -374,6 +437,18 @@ export class HushijiandanComponent implements OnInit {
374 437
 		.getFetchDataList("data", "pathologyForm", data)
375 438
 		.subscribe((data) => {
376 439
 			this.isSpinning = false
440
+			this.viewData = data.list
441
+			for(let i of this.viewData){
442
+				if(i.pathologyInspectDTOS){
443
+					i.arr = []
444
+					for(let x of i.pathologyInspectDTOS){
445
+						i.arr.push(x.inspectProject.name)
446
+					}
447
+				}
448
+			}
449
+			console.log(777,this.viewData)
450
+			this.multiDialog = true
451
+			return
377 452
 			if(data.list.length==1){
378 453
 				this.detailId = data.list[0].id
379 454
 				if(!data.list[0].status){

+ 1 - 1
src/app/views/incident-management/incident-management.component.html

@@ -14,7 +14,7 @@
14 14
 				    </ng-container>
15 15
 				  </nz-select>
16 16
 				</div>
17
-				<div class="list-template__searchItem" *ngIf="queryTask!='todo' && queryTask!='owns' && queryTask!='storage'">
17
+				<div class="list-template__searchItem" *ngIf="queryTask!='todo' && queryTask!='owns' && queryTask!='storage' && queryTask!='doing' && queryTask!='reassign'">
18 18
 				  <span class="label">维修组</span>:
19 19
 				  <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzShowSearch
20 20
 				     nzAllowClear nzPlaceHolder="请选择维修组" [(ngModel)]="searchDTO.maintainGroup">

+ 12 - 9
src/app/views/incident-management/incident-management.component.ts

@@ -87,6 +87,8 @@ export class IncidentManagementComponent implements OnInit {
87 87
 			}
88 88
 			
89 89
 		}
90
+		this.getDeparts();
91
+		this.getUsers('', 'handle');
90 92
     this.loading1 = true;
91 93
     this.debounceSubject.next(true);
92 94
   }
@@ -107,9 +109,6 @@ export class IncidentManagementComponent implements OnInit {
107 109
     });
108 110
     this.coopBtns = this.tool.initCoopBtns(this.route);
109 111
     this.initTabs();
110
-    this.getDeparts();
111
-    this.getUsers('', 'handle');
112
-    this.getUsers('', 'acceptUser');
113 112
     this.getGdStates();
114 113
     this.getOverdueStates();
115 114
     this.getIncidentCategoryList();
@@ -140,6 +139,9 @@ export class IncidentManagementComponent implements OnInit {
140 139
 		if(itemDept){
141 140
 			this.searchDTO.maintainDepartment = itemDept.id
142 141
 		}
142
+		this.getDeparts();
143
+		this.getUsers('', 'handle');
144
+		this.getUsers('', 'acceptUser');
143 145
 	}
144 146
 	
145 147
 	// 选择维修科室
@@ -151,6 +153,9 @@ export class IncidentManagementComponent implements OnInit {
151 153
 		}else{
152 154
 			this.maintainGroup = this.tool.getUserInfoPermission().dutyGroupList
153 155
 		}
156
+		this.searchDTO.maintainDepartment = e
157
+		this.getDeparts();
158
+		this.getUsers('', 'handle');
154 159
 	}
155 160
 	
156 161
   // 搜索
@@ -197,7 +202,7 @@ export class IncidentManagementComponent implements OnInit {
197 202
     let postData = {
198 203
       user: {
199 204
         name: e || "",
200
-        hospital: { id: that.tool.getCurrentHospital().id },
205
+        hospital: { id: this.searchDTO.maintainDepartment?this.searchDTO.maintainDepartment:that.tool.getCurrentHospital().id },
201 206
         engineer: 1,
202 207
         simpleQuery: true,
203 208
       },
@@ -359,8 +364,7 @@ export class IncidentManagementComponent implements OnInit {
359 364
 				delete postData.incident.hosId;
360 365
 			}
361 366
 		}
362
-		
363
-		if(this.queryTask!='todo' && this.queryTask!='owns' && this.queryTask!='storage'){
367
+		if(this.queryTask!='todo' && this.queryTask!='owns' && this.queryTask!='storage' && this.queryTask!='doing' && this.queryTask!='reassign'){
364 368
 			postData.incident.candidateGroupId = this.searchDTO.maintainGroup
365 369
 		}else{
366 370
 			delete postData.incident.candidateGroupId;
@@ -440,8 +444,7 @@ export class IncidentManagementComponent implements OnInit {
440 444
         }else{
441 445
           delete incident.candidateGroups;
442 446
         }
443
-				
444
-				if(incident.queryTask!='todo' && incident.queryTask!='owns' && incident.queryTask!='storage'){
447
+				if(incident.queryTask!='todo' && incident.queryTask!='owns' && incident.queryTask!='storage' && incident.queryTask!='doing' && incident.queryTask!='reassign'){
445 448
 					incident.candidateGroupId = this.searchDTO.maintainGroup
446 449
 				}else{
447 450
 					delete incident.candidateGroupId;
@@ -462,7 +465,7 @@ export class IncidentManagementComponent implements OnInit {
462 465
     let data = {
463 466
       department: {
464 467
         searchType: 1,// 简单查询
465
-        cascadeHosId: this.tool.getCurrentHospital().id,
468
+        cascadeHosId: this.searchDTO.maintainDepartment?this.searchDTO.maintainDepartment:this.tool.getCurrentHospital().id,
466 469
         dept: dept,
467 470
       },
468 471
       idx: 0,