Parcourir la source

标本打印优化

maotao il y a 3 mois
Parent
commit
93374c8c5d

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

@@ -428,18 +428,18 @@
428 428
 			</div> -->
429 429
 			
430 430
 			<!-- 12.11新版打印样式 -->
431
-			<div style="font-size: 12px;" *ngIf="outpatientPathologyLabelSizeType==1 && printData && printData.specimenList && printData.specimenList.length>0">
431
+			<div style="font-size: 12px;" *ngIf="surgeryPathologyLabelSize==1 && printData && printData.specimenList && printData.specimenList.length>0">
432 432
 				<div *ngFor="let data of printData.specimenList; let index=index;">
433 433
 				 <div>
434
-					 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 70px;padding: 0 1px;">
434
+					 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 70px;padding: 0 1px;position: relative;">
435 435
 						 <div style="width: 60%;height: 70px;text-align: center;">
436 436
 							 <img style="max-width: 90%;height: 80%;" [src]="data.barCode" alt="">
437 437
 							 <div>标本号:{{data.specimenCode}}</div>
438 438
 						 </div>
439
-						 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;">
440
-							 <!-- <span style="font-weight: bold;">速</span> -->
439
+						 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;position: relative;top: -2px;">
441 440
 							 <img style="max-width: 100%;max-height: 100%;" [src]="tool.logoUrl" alt="">
442 441
 						 </div>
442
+						 <div style="font-weight: bold;text-align: right;width: 100%;position: absolute;bottom: 3px;right: 3px;">{{printData.pathologyFormType==0?'普':'速'}}</div>
443 443
 					 </div>
444 444
 					 <div style="display: flex;justify-content: space-between;">
445 445
 						 <div style="width: 70%;margin-right:15px;">
@@ -480,7 +480,7 @@
480 480
 			</div>
481 481
 			
482 482
 			<!-- 小尺寸 20*30-->
483
-			<div style="font-size: 12px;" *ngIf="outpatientPathologyLabelSizeType==2 && printData && printData.specimenList && printData.specimenList.length>0">
483
+			<div style="font-size: 12px;" *ngIf="surgeryPathologyLabelSize==2 && printData && printData.specimenList && printData.specimenList.length>0">
484 484
 				<div *ngFor="let data of printData.specimenList; let index=index;">
485 485
 					<div style="width: 100%;display: flex;margin-top: 5px;padding: 0 7px;">
486 486
 					 <div style="width: 35%;">

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

@@ -84,7 +84,7 @@ export class PathologyAddComponent implements OnInit {
84 84
 	// 获取标本配置
85 85
 	pathologyBarCode:any = 1;
86 86
 	ifImmobilization:any = false;
87
-	outpatientPathologyLabelSizeType:any = 1;
87
+	surgeryPathologyLabelSize:any = 1;
88 88
 	getPathologySys(){
89 89
 		let postData = {
90 90
 			  idx: 0,
@@ -100,8 +100,8 @@ export class PathologyAddComponent implements OnInit {
100 100
 		  .subscribe((result) => {
101 101
 		    if (result.status == 200) {
102 102
 					this.pathologyBarCode = result.list[0].pathologyBarCode?result.list[0].pathologyBarCode:1;
103
-					if(result.list[0].outpatientPathologyLabelSize){
104
-						this.outpatientPathologyLabelSizeType = result.list[0].outpatientPathologyLabelSize.value;
103
+					if(result.list[0].surgeryPathologyLabelSize){
104
+						this.surgeryPathologyLabelSize = result.list[0].surgeryPathologyLabelSize.value;
105 105
 					}
106 106
 					if(result.list[0].outpatientInVitroFixation && result.list[0].outpatientInVitroFixation==1){
107 107
 						this.ifImmobilization = true

+ 5 - 4
src/app/share/pathology-detail/pathology-detail.component.html

@@ -215,17 +215,18 @@
215 215
 				</div>
216 216
 			</div> -->
217 217
 			<!-- 12.11新版打印样式 -->
218
-			<div style="font-size: 12px;" *ngIf="outpatientPathologyLabelSizeType==1 && printData && printData.specimenList && printData.specimenList.length>0">
218
+			<div style="font-size: 12px;" *ngIf="surgeryPathologyLabelSize==1 && printData && printData.specimenList && printData.specimenList.length>0">
219 219
 				<div *ngFor="let data of printData.specimenList; let index=index;">
220 220
 				 <div>
221
-					 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 70px;padding: 0 1px;">
221
+					 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 70px;padding: 0 1px;position: relative;">
222 222
 						 <div style="width: 60%;height: 70px;text-align: center;">
223 223
 							 <img style="max-width: 90%;height: 80%;" [src]="data.barCode" alt="">
224 224
 							 <div>标本号:{{data.specimenCode}}</div>
225 225
 						 </div>
226
-						 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;">
226
+						 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;position: relative;top: -2px;">
227 227
 							 <img style="max-width: 100%;max-height: 100%;" [src]="tool.logoUrl" alt="">
228 228
 						 </div>
229
+						 <div style="font-weight: bold;text-align: right;width: 100%;position: absolute;bottom: 3px;right: 3px;">{{printData.pathologyFormType==0?'普':'速'}}</div>
229 230
 					 </div>
230 231
 					 <div style="display: flex;justify-content: space-between;">
231 232
 						 <div style="width: 70%;margin-right:15px;">
@@ -266,7 +267,7 @@
266 267
 			</div>
267 268
 			
268 269
 			<!-- 小尺寸 20*30-->
269
-			<div style="font-size: 12px;" *ngIf="outpatientPathologyLabelSizeType==2 && printData && printData.specimenList && printData.specimenList.length>0">
270
+			<div style="font-size: 12px;" *ngIf="surgeryPathologyLabelSize==2 && printData && printData.specimenList && printData.specimenList.length>0">
270 271
 				<div *ngFor="let data of printData.specimenList; let index=index;">
271 272
 					<div style="width: 100%;display: flex;margin-top: 5px;padding: 0 7px;">
272 273
 					 <div style="width: 35%;">

+ 3 - 3
src/app/share/pathology-detail/pathology-detail.component.ts

@@ -151,7 +151,7 @@ export class PathologyDetailComponent implements OnInit {
151 151
 	
152 152
 	// 获取标本配置
153 153
 	pathologyBarCode:any = 1;
154
-	outpatientPathologyLabelSizeType:any = 1;
154
+	surgeryPathologyLabelSize:any = 1;
155 155
 	getPathologySys(){
156 156
 		let postData = {
157 157
 			  idx: 0,
@@ -167,8 +167,8 @@ export class PathologyDetailComponent implements OnInit {
167 167
 		  .subscribe((result) => {
168 168
 		    if (result.status == 200) {
169 169
 					this.pathologyBarCode = result.list[0].pathologyBarCode?result.list[0].pathologyBarCode:1;
170
-					if(result.list[0].outpatientPathologyLabelSize){
171
-						this.outpatientPathologyLabelSizeType = result.list[0].outpatientPathologyLabelSize.value;
170
+					if(result.list[0].surgeryPathologyLabelSize){
171
+						this.surgeryPathologyLabelSize = result.list[0].surgeryPathologyLabelSize.value;
172 172
 					}
173 173
 				}
174 174
 		  });

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

@@ -551,14 +551,15 @@
551 551
 		<div style="font-size: 12px;" *ngIf="outpatientPathologyLabelSizeType==1 && printData && printData.specimenList && printData.specimenList.length>0">
552 552
 			<div *ngFor="let data of printData.specimenList; let index=index;">
553 553
 			 <div>
554
-				 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 70px;padding: 0 1px;">
554
+				 <div style="display: flex;align-items: center;flex-wrap: nowrap;height: 70px;padding: 0 1px;position: relative;">
555 555
 					 <div style="width: 60%;height: 70px;text-align: center;">
556 556
 						 <img style="max-width: 90%;height: 80%;" [src]="data.barCode" alt="">
557 557
 						 <div>标本号:{{data.specimenCode}}</div>
558 558
 					 </div>
559
-					 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;">
559
+					 <div style="width: 40%;height: 100%;text-align: center;display: flex;align-items: center;position: relative;top: -2px;">
560 560
 						 <img style="max-width: 100%;max-height: 100%;" [src]="tool.logoUrl" alt="">
561 561
 					 </div>
562
+					 <div style="font-weight: bold;text-align: right;width: 100%;position: absolute;bottom: 3px;right: 3px;">{{printData.pathologyFormType==0?'普':'速'}}</div>
562 563
 				 </div>
563 564
 				 <div style="display: flex;justify-content: space-between;">
564 565
 					 <div style="width: 70%;margin-right:15px;">