Browse Source

标本快捷方式开发

maotao 3 months ago
parent
commit
fe3a60e040

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

@@ -51,7 +51,7 @@
51
 						</nz-form-item>
51
 						</nz-form-item>
52
 					</div>
52
 					</div>
53
 					<div class="specimen-box" *ngIf="activeIndex==1">
53
 					<div class="specimen-box" *ngIf="activeIndex==1">
54
-						<div class="specimen-list" [title]="item.specimenName" *ngFor="let item of specimenNameData; let index = index" (click)="fastSpecimenClick($event,item,index)">{{item.specimenName}}</div>
54
+						<div class="specimen-list" [title]="item.specimenName" *ngFor="let item of specimenNameData; let index = index" (click)="fastSpecimenClick($event,item,index)"><span class="red" *ngIf="item.containPosition==0">*&nbsp; </span><span class="specimenName">{{item.specimenName}}</span></div>
55
 					</div>
55
 					</div>
56
 					<!-- <nz-form-item class="form-item">
56
 					<!-- <nz-form-item class="form-item">
57
 						<nz-form-label nzRequired nzFor="surgicalPlan" [nzSm]="24" [nzXs]="24">手术方案</nz-form-label>
57
 						<nz-form-label nzRequired nzFor="surgicalPlan" [nzSm]="24" [nzXs]="24">手术方案</nz-form-label>

+ 23 - 15
src/app/share/pathology-add/pathology-add.component.less

@@ -150,6 +150,27 @@
150
 						padding-top: 10px;
150
 						padding-top: 10px;
151
 					}
151
 					}
152
 					
152
 					
153
+					.specimen-list{
154
+						display: flex;
155
+						flex-wrap: wrap;
156
+						.specimen-item{
157
+							display: flex;
158
+							width: 50%;
159
+							margin-bottom: 10px;
160
+							.specimen-name{
161
+								cursor: pointer;
162
+							}
163
+							.specimen-icon{
164
+								color: #64BD7B;
165
+								cursor: pointer;
166
+								font-size: 20px;
167
+								position: relative;
168
+								top: -4px;
169
+								left: 2px;
170
+							}
171
+						}
172
+					}
173
+					
153
 					.specimen-box{
174
 					.specimen-box{
154
 						display: flex;
175
 						display: flex;
155
 						// justify-content: space-between;
176
 						// justify-content: space-between;
@@ -159,6 +180,8 @@
159
 							width: 25%;
180
 							width: 25%;
160
 							margin-top: 10px;
181
 							margin-top: 10px;
161
 							cursor: pointer;
182
 							cursor: pointer;
183
+						}
184
+						.specimenName{
162
 							text-decoration: underline;
185
 							text-decoration: underline;
163
 							color: #64BD7B;
186
 							color: #64BD7B;
164
 						}
187
 						}
@@ -199,21 +222,6 @@
199
 					border-right: 1px solid #e5e9ed;
222
 					border-right: 1px solid #e5e9ed;
200
 					margin-top: 10px;
223
 					margin-top: 10px;
201
 				}
224
 				}
202
-				.specimen-item{
203
-					display: flex;
204
-					margin-bottom: 10px;
205
-					.specimen-name{
206
-						cursor: pointer;
207
-					}
208
-					.specimen-icon{
209
-						color: #64BD7B;
210
-						cursor: pointer;
211
-						font-size: 20px;
212
-						position: relative;
213
-						top: -4px;
214
-						left: 2px;
215
-					}
216
-				}
217
 			}
225
 			}
218
 		}
226
 		}
219
 		.mask-style{
227
 		.mask-style{

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

@@ -69,7 +69,6 @@ export class PathologyAddComponent implements OnInit {
69
 		this.initForm()
69
 		this.initForm()
70
 		this.getTaskTypesId()
70
 		this.getTaskTypesId()
71
 		this.fetchDataList()
71
 		this.fetchDataList()
72
-		this.getSpecimenName()
73
 		this.getStationaryLiquid()
72
 		this.getStationaryLiquid()
74
   }
73
   }
75
 	
74
 	
@@ -171,6 +170,7 @@ export class PathologyAddComponent implements OnInit {
171
 				if(this.detailsData.intraoperativeFindings){
170
 				if(this.detailsData.intraoperativeFindings){
172
 					this.validateForm.controls.intraoperativeFindings.setValue(this.detailsData.intraoperativeFindings);
171
 					this.validateForm.controls.intraoperativeFindings.setValue(this.detailsData.intraoperativeFindings);
173
 				}
172
 				}
173
+				this.getSpecimenName()
174
 				this.getProDicData()
174
 				this.getProDicData()
175
 				this.getDicData()
175
 				this.getDicData()
176
 				this.getSampleData('load')
176
 				this.getSampleData('load')
@@ -186,7 +186,7 @@ export class PathologyAddComponent implements OnInit {
186
 	    idx: 0,
186
 	    idx: 0,
187
 	    sum: 999,
187
 	    sum: 999,
188
 	    pathologySpecimenName: {
188
 	    pathologySpecimenName: {
189
-	
189
+				deptId:this.detailsData.patientDTO.department.id
190
 	    }
190
 	    }
191
 	  };
191
 	  };
192
 	  this.mainService
192
 	  this.mainService
@@ -233,6 +233,7 @@ export class PathologyAddComponent implements OnInit {
233
 			    }
233
 			    }
234
 			  });
234
 			  });
235
 		}else{
235
 		}else{
236
+			this.placeIndex = null
236
 			this.specimenEditType = 'fast'
237
 			this.specimenEditType = 'fast'
237
 			this.specimenEdit(e, item, index, 'fast')
238
 			this.specimenEdit(e, item, index, 'fast')
238
 		}
239
 		}

+ 3 - 0
src/app/views/pathology-check/pathology-check.component.ts

@@ -237,6 +237,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
237
 
237
 
238
 	//tab切换
238
 	//tab切换
239
 	tabClick(type){
239
 	tabClick(type){
240
+		this.pageReceptionIndex = 1;
240
 		this.activeIndex = type
241
 		this.activeIndex = type
241
 		localStorage.setItem("pathologyActiveIndex",type)
242
 		localStorage.setItem("pathologyActiveIndex",type)
242
 		this.getJsData(1)
243
 		this.getJsData(1)
@@ -583,6 +584,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
583
 				}else{
584
 				}else{
584
 					this.notification.create('success','提示',res.msg);
585
 					this.notification.create('success','提示',res.msg);
585
 					this.activeIndex = 0
586
 					this.activeIndex = 0
587
+					this.pageReceptionIndex = 1;
586
 					this.codeData = []
588
 					this.codeData = []
587
 					this.getJsData(1)
589
 					this.getJsData(1)
588
 				}
590
 				}
@@ -599,6 +601,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
599
 		this.multiModal = false;
601
 		this.multiModal = false;
600
 		this.errorMultiMsg = null;
602
 		this.errorMultiMsg = null;
601
 		this.muArr = [];
603
 		this.muArr = [];
604
+		this.pageReceptionIndex = 1;
602
 		this.getJsData(1);
605
 		this.getJsData(1);
603
 		setTimeout(_=>{
606
 		setTimeout(_=>{
604
 			document.getElementById('specimen').focus();
607
 			document.getElementById('specimen').focus();

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

@@ -54,7 +54,7 @@
54
 					<div class="list">开单时间:{{item.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</div>
54
 					<div class="list">开单时间:{{item.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</div>
55
 				</div>
55
 				</div>
56
 			</div>
56
 			</div>
57
-			<div *ngIf="ifAddapplication && adviceList" class="center-box">
57
+			<div *ngIf="!pathologyFormCode && ifAddapplication && adviceList" class="center-box">
58
 				<button nz-button nzType="primary" class="btn txtC mr8" (click)="addPathology(0)" [nzLoading]="addLoading">新增病理申请单</button>
58
 				<button nz-button nzType="primary" class="btn txtC mr8" (click)="addPathology(0)" [nzLoading]="addLoading">新增病理申请单</button>
59
 			</div>
59
 			</div>
60
 		</div>
60
 		</div>
@@ -253,7 +253,7 @@
253
 			</div>
253
 			</div>
254
 			
254
 			
255
 			<div class="specimen" *ngIf="activeIndex==0">
255
 			<div class="specimen" *ngIf="activeIndex==0">
256
-				<div class="specimen-list" *ngFor="let item of specimenNameData; let index = index" (click)="fastSpecimenClick($event,item,index)">{{item.specimenName}}</div>
256
+				<div class="specimen-list" *ngFor="let item of specimenNameData; let index = index" (click)="fastSpecimenClick($event,item,index)"><span class="red" *ngIf="item.containPosition==0">* </span><span class="specimenName">{{item.specimenName}}</span></div>
257
 			</div>
257
 			</div>
258
 			<div class="padding-top-10" *ngIf="activeIndex==1">
258
 			<div class="padding-top-10" *ngIf="activeIndex==1">
259
 				<nz-steps [nzCurrent]="stepLength" nzDirection="vertical" nzSize="small">
259
 				<nz-steps [nzCurrent]="stepLength" nzDirection="vertical" nzSize="small">
@@ -508,7 +508,7 @@
508
 						</nz-input-group>
508
 						</nz-input-group>
509
 				  </nz-form-control>
509
 				  </nz-form-control>
510
 				</nz-form-item>
510
 				</nz-form-item>
511
-				<nz-form-item *ngIf="ifImmobilization">
511
+				<nz-form-item *ngIf="ifImmobilization && detailsData.pathologyFormType==0">
512
 				  <nz-form-label nzRequired [nzSpan]="6" nzFor="fixationTime">固定时间</nz-form-label>
512
 				  <nz-form-label nzRequired [nzSpan]="6" nzFor="fixationTime">固定时间</nz-form-label>
513
 				  <nz-form-control style="display: flex;align-items: center;" [nzSpan]="18" nzErrorTip="请选择固定时间!">
513
 				  <nz-form-control style="display: flex;align-items: center;" [nzSpan]="18" nzErrorTip="请选择固定时间!">
514
 				    <nz-input-group style="display: flex;gap: 10px">
514
 				    <nz-input-group style="display: flex;gap: 10px">

+ 2 - 0
src/app/views/pathology-sample/pathology-sample.component.less

@@ -774,6 +774,8 @@
774
 				.specimen-list{
774
 				.specimen-list{
775
 					margin-top: 10px;
775
 					margin-top: 10px;
776
 					cursor: pointer;
776
 					cursor: pointer;
777
+				}
778
+				.specimenName{
777
 					text-decoration: underline;
779
 					text-decoration: underline;
778
 					color: #64BD7B;
780
 					color: #64BD7B;
779
 				}
781
 				}

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

@@ -219,7 +219,7 @@ export class PathologySampleComponent implements OnInit {
219
 	    idx: 0,
219
 	    idx: 0,
220
 	    sum: 999,
220
 	    sum: 999,
221
 	    pathologySpecimenName: {
221
 	    pathologySpecimenName: {
222
-
222
+				deptId:this.deptId
223
 	    }
223
 	    }
224
 	  };
224
 	  };
225
 	  this.mainService
225
 	  this.mainService
@@ -265,6 +265,7 @@ export class PathologySampleComponent implements OnInit {
265
 			    }
265
 			    }
266
 			  });
266
 			  });
267
 		}else{
267
 		}else{
268
+			this.placeIndex = null
268
 			this.specimenEditType = 'fast'
269
 			this.specimenEditType = 'fast'
269
 			this.specimenEdit(e, item, index, 'fast')
270
 			this.specimenEdit(e, item, index, 'fast')
270
 		}
271
 		}
@@ -552,7 +553,7 @@ export class PathologySampleComponent implements OnInit {
552
 	printLoading:any = false;
553
 	printLoading:any = false;
553
 	submitVerificationForm(){
554
 	submitVerificationForm(){
554
 		let that = this
555
 		let that = this
555
-		if(!this.fixationTimeSelect || this.fixationTimeSelect == null){
556
+		if(this.ifImmobilization && this.detailsData.pathologyFormType==0 && (!this.fixationTimeSelect || this.fixationTimeSelect == null)){
556
 			this.message.error('请选择固定时间')
557
 			this.message.error('请选择固定时间')
557
 			return
558
 			return
558
 		}
559
 		}

+ 3 - 3
src/app/views/share-specimen/share-specimen.component.html

@@ -77,7 +77,7 @@
77
   <div class="modalBody">
77
   <div class="modalBody">
78
     <div class="title">常用标本名称 - {{add?"新增":"编辑"}}<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
78
     <div class="title">常用标本名称 - {{add?"新增":"编辑"}}<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
79
     </div>
79
     </div>
80
-    <overlay-scrollbars #osComponentRef1 class="content">
80
+    <div class="content">
81
       <form nz-form [formGroup]="validateForm" class="addForm" (ngSubmit)="submitForm()">
81
       <form nz-form [formGroup]="validateForm" class="addForm" (ngSubmit)="submitForm()">
82
         <nz-form-item>
82
         <nz-form-item>
83
           <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="deptId">关联科室</nz-form-label>
83
           <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="deptId">关联科室</nz-form-label>
@@ -145,7 +145,7 @@
145
 				  <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="specimenName">标本名称</nz-form-label>
145
 				  <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="specimenName">标本名称</nz-form-label>
146
 						<nz-form-control nzErrorTip="请填写标本名称!" style="display: inline-block;width:100%;" class="address">
146
 						<nz-form-control nzErrorTip="请填写标本名称!" style="display: inline-block;width:100%;" class="address">
147
 						  <nz-input-group>
147
 						  <nz-input-group>
148
-						    <input class="formItem addressFocus" nz-input formControlName="specimenName" placeholder="请选择标本名称" (focus)="focusAddress()" />
148
+						    <input class="formItem addressFocus" (ngModelChange)="specimenNameChange($event)" nz-input formControlName="specimenName" placeholder="请选择标本名称" (focus)="focusAddress()" />
149
 						    <div class="addressList" *ngIf="validateForm.value.organId && isShowAddressList">
149
 						    <div class="addressList" *ngIf="validateForm.value.organId && isShowAddressList">
150
 						      <ng-container *ngIf="!addressLoading && specimenNameList.length">
150
 						      <ng-container *ngIf="!addressLoading && specimenNameList.length">
151
 						        <div class="addressItem ellipsis-oneline" *ngFor="let item of specimenNameList" [title]="item.name" (click)="selectAddress(item.name)">{{item.name}}</div>
151
 						        <div class="addressItem ellipsis-oneline" *ngFor="let item of specimenNameList" [title]="item.name" (click)="selectAddress(item.name)">{{item.name}}</div>
@@ -161,7 +161,7 @@
161
 				  </nz-form-control>
161
 				  </nz-form-control>
162
 				</nz-form-item>
162
 				</nz-form-item>
163
       </form>
163
       </form>
164
-    </overlay-scrollbars>
164
+    </div>
165
     <div class="display_flex justify-content_flex-center">
165
     <div class="display_flex justify-content_flex-center">
166
       <button nzType="primary" nz-button (click)="submitForm()" [nzLoading]="btnLoading">确认</button>
166
       <button nzType="primary" nz-button (click)="submitForm()" [nzLoading]="btnLoading">确认</button>
167
       <button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>
167
       <button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>

+ 3 - 3
src/app/views/share-specimen/share-specimen.component.less

@@ -38,7 +38,7 @@
38
       background: #f9fafb;
38
       background: #f9fafb;
39
       border: 1px solid #e5e9ed;
39
       border: 1px solid #e5e9ed;
40
       border-radius: 5px;
40
       border-radius: 5px;
41
-      overflow: hidden;
41
+      // overflow: hidden;
42
       margin-top: 12px;
42
       margin-top: 12px;
43
 
43
 
44
       div {
44
       div {
@@ -93,7 +93,7 @@
93
         width: 100%;
93
         width: 100%;
94
         height: auto;
94
         height: auto;
95
         padding: 19px 14px 0 14px;
95
         padding: 19px 14px 0 14px;
96
-        max-height: 500px;
96
+        // max-height: 500px;
97
         overflow-y: auto;
97
         overflow-y: auto;
98
 
98
 
99
         .addForm {
99
         .addForm {
@@ -114,7 +114,7 @@
114
 					  position: relative;
114
 					  position: relative;
115
 					  .addressList{
115
 					  .addressList{
116
 					    position: absolute;
116
 					    position: absolute;
117
-					    top: 100%;
117
+					    bottom: 100%;
118
 					    left: 0;
118
 					    left: 0;
119
 					    width: 100%;
119
 					    width: 100%;
120
 					    max-height: 256px;
120
 					    max-height: 256px;

+ 15 - 0
src/app/views/share-specimen/share-specimen.component.ts

@@ -225,6 +225,21 @@ export class ShareSpecimenComponent implements OnInit {
225
 		});
225
 		});
226
 	}
226
 	}
227
 	
227
 	
228
+	// 标本名称输入查询
229
+	specimenNameChange(keyword){
230
+		if(keyword!=''){
231
+			const data = this.specimenNameList; 
232
+			const results = data.filter(item => item.name.indexOf(keyword) !== -1)
233
+			if(results){
234
+				this.specimenNameList = results
235
+			}else{
236
+				this.getSpNameData(this.validateForm.value.organId,{},'select')
237
+			}
238
+		}else{
239
+			this.getSpNameData(this.validateForm.value.organId,{},'select')
240
+		}
241
+	}
242
+	
228
 	// 点击其他位置
243
 	// 点击其他位置
229
 	clickExtra(e){
244
 	clickExtra(e){
230
 	  if(document.documentElement.contains(document.querySelector('.addressList')) && e.target !== document.querySelector('.addressFocus')){
245
 	  if(document.documentElement.contains(document.querySelector('.addressList')) && e.target !== document.querySelector('.addressFocus')){