Quellcode durchsuchen

标本快捷方式开发

maotao vor 3 Monaten
Ursprung
Commit
fe3a60e040

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

@@ -51,7 +51,7 @@
51 51
 						</nz-form-item>
52 52
 					</div>
53 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 55
 					</div>
56 56
 					<!-- <nz-form-item class="form-item">
57 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 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 174
 					.specimen-box{
154 175
 						display: flex;
155 176
 						// justify-content: space-between;
@@ -159,6 +180,8 @@
159 180
 							width: 25%;
160 181
 							margin-top: 10px;
161 182
 							cursor: pointer;
183
+						}
184
+						.specimenName{
162 185
 							text-decoration: underline;
163 186
 							color: #64BD7B;
164 187
 						}
@@ -199,21 +222,6 @@
199 222
 					border-right: 1px solid #e5e9ed;
200 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 227
 		.mask-style{

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

@@ -69,7 +69,6 @@ export class PathologyAddComponent implements OnInit {
69 69
 		this.initForm()
70 70
 		this.getTaskTypesId()
71 71
 		this.fetchDataList()
72
-		this.getSpecimenName()
73 72
 		this.getStationaryLiquid()
74 73
   }
75 74
 	
@@ -171,6 +170,7 @@ export class PathologyAddComponent implements OnInit {
171 170
 				if(this.detailsData.intraoperativeFindings){
172 171
 					this.validateForm.controls.intraoperativeFindings.setValue(this.detailsData.intraoperativeFindings);
173 172
 				}
173
+				this.getSpecimenName()
174 174
 				this.getProDicData()
175 175
 				this.getDicData()
176 176
 				this.getSampleData('load')
@@ -186,7 +186,7 @@ export class PathologyAddComponent implements OnInit {
186 186
 	    idx: 0,
187 187
 	    sum: 999,
188 188
 	    pathologySpecimenName: {
189
-	
189
+				deptId:this.detailsData.patientDTO.department.id
190 190
 	    }
191 191
 	  };
192 192
 	  this.mainService
@@ -233,6 +233,7 @@ export class PathologyAddComponent implements OnInit {
233 233
 			    }
234 234
 			  });
235 235
 		}else{
236
+			this.placeIndex = null
236 237
 			this.specimenEditType = 'fast'
237 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 238
 	//tab切换
239 239
 	tabClick(type){
240
+		this.pageReceptionIndex = 1;
240 241
 		this.activeIndex = type
241 242
 		localStorage.setItem("pathologyActiveIndex",type)
242 243
 		this.getJsData(1)
@@ -583,6 +584,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
583 584
 				}else{
584 585
 					this.notification.create('success','提示',res.msg);
585 586
 					this.activeIndex = 0
587
+					this.pageReceptionIndex = 1;
586 588
 					this.codeData = []
587 589
 					this.getJsData(1)
588 590
 				}
@@ -599,6 +601,7 @@ export class PathologyCheckComponent implements OnInit, OnDestroy {
599 601
 		this.multiModal = false;
600 602
 		this.errorMultiMsg = null;
601 603
 		this.muArr = [];
604
+		this.pageReceptionIndex = 1;
602 605
 		this.getJsData(1);
603 606
 		setTimeout(_=>{
604 607
 			document.getElementById('specimen').focus();

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

@@ -54,7 +54,7 @@
54 54
 					<div class="list">开单时间:{{item.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</div>
55 55
 				</div>
56 56
 			</div>
57
-			<div *ngIf="ifAddapplication && adviceList" class="center-box">
57
+			<div *ngIf="!pathologyFormCode && ifAddapplication && adviceList" class="center-box">
58 58
 				<button nz-button nzType="primary" class="btn txtC mr8" (click)="addPathology(0)" [nzLoading]="addLoading">新增病理申请单</button>
59 59
 			</div>
60 60
 		</div>
@@ -253,7 +253,7 @@
253 253
 			</div>
254 254
 			
255 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 257
 			</div>
258 258
 			<div class="padding-top-10" *ngIf="activeIndex==1">
259 259
 				<nz-steps [nzCurrent]="stepLength" nzDirection="vertical" nzSize="small">
@@ -508,7 +508,7 @@
508 508
 						</nz-input-group>
509 509
 				  </nz-form-control>
510 510
 				</nz-form-item>
511
-				<nz-form-item *ngIf="ifImmobilization">
511
+				<nz-form-item *ngIf="ifImmobilization && detailsData.pathologyFormType==0">
512 512
 				  <nz-form-label nzRequired [nzSpan]="6" nzFor="fixationTime">固定时间</nz-form-label>
513 513
 				  <nz-form-control style="display: flex;align-items: center;" [nzSpan]="18" nzErrorTip="请选择固定时间!">
514 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 774
 				.specimen-list{
775 775
 					margin-top: 10px;
776 776
 					cursor: pointer;
777
+				}
778
+				.specimenName{
777 779
 					text-decoration: underline;
778 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 219
 	    idx: 0,
220 220
 	    sum: 999,
221 221
 	    pathologySpecimenName: {
222
-
222
+				deptId:this.deptId
223 223
 	    }
224 224
 	  };
225 225
 	  this.mainService
@@ -265,6 +265,7 @@ export class PathologySampleComponent implements OnInit {
265 265
 			    }
266 266
 			  });
267 267
 		}else{
268
+			this.placeIndex = null
268 269
 			this.specimenEditType = 'fast'
269 270
 			this.specimenEdit(e, item, index, 'fast')
270 271
 		}
@@ -552,7 +553,7 @@ export class PathologySampleComponent implements OnInit {
552 553
 	printLoading:any = false;
553 554
 	submitVerificationForm(){
554 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 557
 			this.message.error('请选择固定时间')
557 558
 			return
558 559
 		}

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

@@ -77,7 +77,7 @@
77 77
   <div class="modalBody">
78 78
     <div class="title">常用标本名称 - {{add?"新增":"编辑"}}<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
79 79
     </div>
80
-    <overlay-scrollbars #osComponentRef1 class="content">
80
+    <div class="content">
81 81
       <form nz-form [formGroup]="validateForm" class="addForm" (ngSubmit)="submitForm()">
82 82
         <nz-form-item>
83 83
           <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="deptId">关联科室</nz-form-label>
@@ -145,7 +145,7 @@
145 145
 				  <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="specimenName">标本名称</nz-form-label>
146 146
 						<nz-form-control nzErrorTip="请填写标本名称!" style="display: inline-block;width:100%;" class="address">
147 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 149
 						    <div class="addressList" *ngIf="validateForm.value.organId && isShowAddressList">
150 150
 						      <ng-container *ngIf="!addressLoading && specimenNameList.length">
151 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 161
 				  </nz-form-control>
162 162
 				</nz-form-item>
163 163
       </form>
164
-    </overlay-scrollbars>
164
+    </div>
165 165
     <div class="display_flex justify-content_flex-center">
166 166
       <button nzType="primary" nz-button (click)="submitForm()" [nzLoading]="btnLoading">确认</button>
167 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 38
       background: #f9fafb;
39 39
       border: 1px solid #e5e9ed;
40 40
       border-radius: 5px;
41
-      overflow: hidden;
41
+      // overflow: hidden;
42 42
       margin-top: 12px;
43 43
 
44 44
       div {
@@ -93,7 +93,7 @@
93 93
         width: 100%;
94 94
         height: auto;
95 95
         padding: 19px 14px 0 14px;
96
-        max-height: 500px;
96
+        // max-height: 500px;
97 97
         overflow-y: auto;
98 98
 
99 99
         .addForm {
@@ -114,7 +114,7 @@
114 114
 					  position: relative;
115 115
 					  .addressList{
116 116
 					    position: absolute;
117
-					    top: 100%;
117
+					    bottom: 100%;
118 118
 					    left: 0;
119 119
 					    width: 100%;
120 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 244
 	clickExtra(e){
230 245
 	  if(document.documentElement.contains(document.querySelector('.addressList')) && e.target !== document.querySelector('.addressFocus')){