Browse Source

11月18日,打印单

yq1 4 days ago
parent
commit
1ae1618f48

+ 24 - 14
src/pages/main/template/DialysisPrintOrderSeventyeight.vue View File

456
                     超滤总量:
456
                     超滤总量:
457
                     <div class="under_line" style="width: 50px; text-align: center">
457
                     <div class="under_line" style="width: 50px; text-align: center">
458
                       {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "/" }}
458
                       {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "/" }}
459
-                    </div>L
459
+                    </div>ml
460
                   </div>
460
                   </div>
461
                   <div class="inline_block" style="flex: 1">
461
                   <div class="inline_block" style="flex: 1">
462
                     透析时长:
462
                     透析时长:
668
                       <span v-if="prescription.anticoagulant == 13">iu</span>
668
                       <span v-if="prescription.anticoagulant == 13">iu</span>
669
 
669
 
670
                     </div>
670
                     </div>
671
-                    <div class="inline_block" style="flex: 1">
671
+                    <!-- <div class="inline_block" style="flex: 1">
672
                       透析机型:
672
                       透析机型:
673
                       <div class="under_line" style="width: 80px; text-align: center">
673
                       <div class="under_line" style="width: 80px; text-align: center">
674
                         {{ predialysis.machine_type ? predialysis.machine_type : '' }}
674
                         {{ predialysis.machine_type ? predialysis.machine_type : '' }}
675
                       </div>
675
                       </div>
676
-                    </div>
676
+                    </div> -->
677
                 </div>
677
                 </div>
678
 
678
 
679
                 <div class="row" style="">
679
                 <div class="row" style="">
1117
 import { getDataConfig } from '@/utils/data'
1117
 import { getDataConfig } from '@/utils/data'
1118
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1118
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1119
 import LabelBox from '../printItem/LabelBox'
1119
 import LabelBox from '../printItem/LabelBox'
1120
-
1120
+import {Dialog} from 'vant'
1121
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1121
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1122
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1122
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1123
 import print from 'print-js'
1123
 import print from 'print-js'
1350
       ){
1350
       ){
1351
         const obj30 = "透析器"
1351
         const obj30 = "透析器"
1352
         checkDate.push(obj30)
1352
         checkDate.push(obj30)
1353
-      } if (this.predialysis.machine_type == 0) {
1354
-        const obj31 = "透析机型"
1355
-        checkDate.push(obj31)
1356
-      } if (this.dialysisOrder.DeviceNumber.number == 0) {
1353
+      } 
1354
+      // if (this.predialysis.machine_type == 0) {
1355
+      //   const obj31 = "透析机型"
1356
+      //   checkDate.push(obj31)
1357
+      // } 
1358
+      if (this.dialysisOrder !=undefined && this.dialysisOrder.DeviceNumber.number == 0) {
1357
         const obj32 = "机号"
1359
         const obj32 = "机号"
1358
         checkDate.push(obj32)
1360
         checkDate.push(obj32)
1359
       } if (this.prescription.anticoagulant_name == 0) {
1361
       } if (this.prescription.anticoagulant_name == 0) {
2000
     getcheckData(val){
2002
     getcheckData(val){
2001
       if(val.length >0){
2003
       if(val.length >0){
2002
         let message = `记录单未填数据:\n${val.join("\n")}`;
2004
         let message = `记录单未填数据:\n${val.join("\n")}`;
2003
-        Toast({
2004
-          duration:0,
2005
+        Dialog.confirm({
2006
+          allowHtml:true,
2005
           message:message,
2007
           message:message,
2006
-          closeOnClick:true,
2007
-          closeOnClickOverlay:true,
2008
-        })
2008
+        }).then(() => {
2009
+
2010
+          })
2011
+          .catch(() => {
2012
+
2013
+          });
2009
         return message
2014
         return message
2010
       }else{
2015
       }else{
2011
         this.$toast('核对完成');
2016
         this.$toast('核对完成');
2120
 }
2125
 }
2121
 </script>
2126
 </script>
2122
 
2127
 
2123
-<style>
2128
+<style >
2129
+#dialysis-print-box-1{
2130
+  margin-left: 10px;
2131
+    height: 70%;
2132
+    width: 90%;
2133
+}
2124
 .print_page_main_content {
2134
 .print_page_main_content {
2125
   background-color: white;
2135
   background-color: white;
2126
   width: 960px;
2136
   width: 960px;

+ 13 - 1
src/pages/main/template/DialysisPrintOrderSix.vue View File

1478
           </tr>
1478
           </tr>
1479
           </tbody>
1479
           </tbody>
1480
         </table>
1480
         </table>
1481
-        <!-- <div  class="print-yema">1</div> -->
1481
+
1482
+        <div style="position: relative; left: 70%;top: 20px;">
1483
+          患者签名:
1484
+          <div class="under_line" style="width: 120px;">
1485
+            <img
1486
+              v-if="dialysisOrder.url!=''"
1487
+              style="height: 50px"
1488
+              :src="dialysisOrder == null? 0: dialysisOrder.url"
1489
+              alt=""
1490
+              srcset=""
1491
+            />
1492
+          </div>
1493
+        </div>
1482
       </div>
1494
       </div>
1483
     </div>
1495
     </div>
1484
 
1496
 

+ 69 - 83
src/pages/main/template/DialysisPrintOrderSixtyTwo.vue View File

7
         <div class="order-title">血液净化治疗记录单</div>
7
         <div class="order-title">血液净化治疗记录单</div>
8
         <table class="print-table" border="1" style="margin-top: 10px;">
8
         <table class="print-table" border="1" style="margin-top: 10px;">
9
           <tr>
9
           <tr>
10
-            <td style="text-align: left; width: 170px" colspan="1">
11
-              <span style="display:inline-block;margin-left:15px">
10
+            <td style="text-align: left; width: 225px" colspan="1">
11
+              <span style="display:inline-block;margin-left:10px">
12
                 {{ queryParams.xtdate }}
12
                 {{ queryParams.xtdate }}
13
               </span>
13
               </span>
14
             </td>
14
             </td>
102
           </tr>
102
           </tr>
103
           <tr>
103
           <tr>
104
             <td style="text-align: left" colspan="2">
104
             <td style="text-align: left" colspan="2">
105
-              <span style="display: inline-block; margin-left: 15px"
105
+              <span style="display: inline-block; margin-left: 10px"
106
                 >治疗方式:</span
106
                 >治疗方式:</span
107
               >
107
               >
108
               <span
108
               <span
282
           </tr>
282
           </tr>
283
           <tr>
283
           <tr>
284
             <td style="text-align:left;" colspan="1">
284
             <td style="text-align:left;" colspan="1">
285
-              <span style="display:inline-block;margin-left:15px;">
285
+              <span style="display:inline-block;margin-left:10px;">
286
                 干体重:
286
                 干体重:
287
                 {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}kg
287
                 {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}kg
288
               </span>
288
               </span>
325
           </tr>
325
           </tr>
326
           <tr>
326
           <tr>
327
             <td style="text-align: left" colspan="1">
327
             <td style="text-align: left" colspan="1">
328
-              <span style="display: inline-block; margin-left: 15px">
328
+              <span style="display: inline-block; margin-left: 10px">
329
                 设定脱水量:{{
329
                 设定脱水量:{{
330
                   prescription.target_ultrafiltration
330
                   prescription.target_ultrafiltration
331
                     ? prescription.target_ultrafiltration
331
                     ? prescription.target_ultrafiltration
334
               </span>
334
               </span>
335
             </td>
335
             </td>
336
             <td style="text-align: left" colspan="1">
336
             <td style="text-align: left" colspan="1">
337
-              <span style="display: inline-block; margin-left: 15px">
337
+              <span style="display: inline-block; margin-left: 10px">
338
                 <label-box
338
                 <label-box
339
                   :isChecked="anticoagulant == 1 ? true : false"
339
                   :isChecked="anticoagulant == 1 ? true : false"
340
                   showValue="无肝素"
340
                   showValue="无肝素"
342
               </span>
342
               </span>
343
             </td>
343
             </td>
344
             <td style="text-align: left" colspan="3">
344
             <td style="text-align: left" colspan="3">
345
-              <span style="display: inline-block; margin-left: 15px">
346
-                <span v-if="prescription.anticoagulant == 2"
347
-                  >普通肝素首剂:</span
348
-                >
349
-                <span v-if="prescription.anticoagulant == 3"
350
-                  >低分子肝素首剂:</span
351
-                >
352
-                <span v-if="prescription.anticoagulant == 4"
353
-                  >阿加曲班肝素首剂:</span
354
-                >
355
-                <span v-if="prescription.anticoagulant == 5"
356
-                  >枸橼酸钠肝素首剂:</span
357
-                >
358
-                <span v-if="prescription.anticoagulant == 6"
359
-                  >低分子肝素钙首剂:</span
360
-                >
361
-                <span v-if="prescription.anticoagulant == 7"
362
-                  >低分子肝素钠首剂:</span
363
-                >
364
-                <span v-if="prescription.anticoagulant == 8"
365
-                  >依诺肝素首剂:</span
366
-                >
367
-                <span v-if="prescription.anticoagulant == 9">达肝素首剂:</span>
368
-                <span v-if="prescription.anticoagulant == 10"
369
-                  >体外抗凝肝素首剂:</span
370
-                >
371
-                <span v-if="prescription.anticoagulant == 11"
372
-                  >那屈肝素首剂:</span
373
-                >
374
-                <span v-if="prescription.anticoagulant == 13"
375
-                  >那屈肝素钙首剂:</span
376
-                >
345
+              <span style="display: inline-block; margin-left: 10px">
346
+                {{ prescription.anticoagulant_name?prescription.anticoagulant_name:'' }}:
377
 
347
 
378
                 {{
348
                 {{
379
                   prescription.anticoagulant_shouji
349
                   prescription.anticoagulant_shouji
381
                     : "/"
351
                     : "/"
382
                 }}
352
                 }}
383
               </span>
353
               </span>
384
-              <span v-if="prescription.anticoagulant == 5">iu</span>
385
-              <span v-if="prescription.anticoagulant == 13">iu</span>
386
-              <span v-if="prescription.anticoagulant == 11">iu</span>
387
-              <span v-if="prescription.anticoagulant == 8">iu</span>
388
-              <span v-if="prescription.anticoagulant == 7">iu</span>
389
-              <span v-if="prescription.anticoagulant == 6">iu</span>
390
-              <span v-if="prescription.anticoagulant == 4">mg</span>
391
-              <span v-if="prescription.anticoagulant == 3">iu</span>
392
-              <span v-if="prescription.anticoagulant == 2">mg</span>
393
-              <span v-if="prescription.anticoagulant == 1">mg</span>
354
+              <span v-if="prescription.anticoagulant !=0">
355
+                {{ getshoujiunit(prescription.anticoagulant) }}
356
+              </span>
394
             </td>
357
             </td>
395
             <td style="text-align: left" colspan="1">
358
             <td style="text-align: left" colspan="1">
396
-              <span style="display: inline-block; margin-left: 15px">
359
+              <span style="display: inline-block; margin-left: 10px">
397
                 维持:
360
                 维持:
398
                 {{
361
                 {{
399
                   prescription.anticoagulant_weichi
362
                   prescription.anticoagulant_weichi
401
                     : "/"
364
                     : "/"
402
                 }}
365
                 }}
403
               </span>
366
               </span>
404
-              <span v-if="prescription.anticoagulant == 13">iu/h</span>
405
-              <span v-if="prescription.anticoagulant == 11">iu/h</span>
406
-              <span v-if="prescription.anticoagulant == 8">iu/h</span>
407
-              <span v-if="prescription.anticoagulant == 7">iu/h</span>
408
-              <span v-if="prescription.anticoagulant == 6">iu/h</span>
409
-              <span v-if="prescription.anticoagulant == 5">ml/h</span>
410
-              <span v-if="prescription.anticoagulant == 4">mg/h</span>
411
-              <span v-if="prescription.anticoagulant == 3">iu/h</span>
412
-              <span v-if="prescription.anticoagulant == 2">mg/h</span>
413
-              <span v-if="prescription.anticoagulant == 1">mg/h</span>
367
+              <span v-if="prescription.anticoagulant !=0">
368
+                {{ getweichiunit(prescription.anticoagulant) }}
369
+              </span>
370
+             
414
             </td>
371
             </td>
415
             <td style="text-align: left" colspan="1">
372
             <td style="text-align: left" colspan="1">
416
               <span style="display: inline-block; ">
373
               <span style="display: inline-block; ">
421
                     : "/"
378
                     : "/"
422
                 }}
379
                 }}
423
               </span>
380
               </span>
424
-              <span v-if="prescription.anticoagulant == 13">iu</span>
425
-              <span v-if="prescription.anticoagulant == 11">iu</span>
426
-              <span v-if="prescription.anticoagulant == 5">iu</span>
427
-              <span v-if="prescription.anticoagulant == 8">iu</span>
428
-              <span v-if="prescription.anticoagulant == 7">iu</span>
429
-              <span v-if="prescription.anticoagulant == 6">iu</span>
430
-              <span v-if="prescription.anticoagulant == 4">mg</span>
431
-              <span v-if="prescription.anticoagulant == 3">iu</span>
432
-              <span v-if="prescription.anticoagulant == 2">mg</span>
433
-              <span v-if="prescription.anticoagulant == 1">mg</span>
381
+              <span v-if="prescription.anticoagulant !=0">
382
+                {{ getzongliangunit(prescription.anticoagulant) }}
383
+              </span>
434
             </td>
384
             </td>
435
           </tr>
385
           </tr>
436
           <tr>
386
           <tr>
437
             <td style="text-align: left" colspan="1">
387
             <td style="text-align: left" colspan="1">
438
-               <span style="display: inline-block; margin-left: 15px">
388
+               <span style="display: inline-block; margin-left: 10px">
439
                 透前体重:{{
389
                 透前体重:{{
440
                   predialysis.weight_before ? predialysis.weight_before : "/"
390
                   predialysis.weight_before ? predialysis.weight_before : "/"
441
                 }}kg
391
                 }}kg
481
           </tr>
431
           </tr>
482
           <tr>
432
           <tr>
483
             <td style="text-align:left;" colspan="1">
433
             <td style="text-align:left;" colspan="1">
484
-              <span style="display:inline-block;margin-left:15px;">
434
+              <span style="display:inline-block;margin-left:10px;">
485
                 透后体重:
435
                 透后体重:
486
                 {{
436
                 {{
487
                   afterdialysis.weight_after
437
                   afterdialysis.weight_after
543
           </tr>
493
           </tr>
544
           <tr>
494
           <tr>
545
             <td style="text-align: left" colspan="1">
495
             <td style="text-align: left" colspan="1">
546
-              <span style="display: inline-block; margin-left: 15px">
496
+              <span style="display: inline-block; margin-left: 10px">
547
                 责任护士:
497
                 责任护士:
548
                 <span
498
                 <span
549
                   v-if="setAdminUserES(dialysisOrder.quality_nurse_id) == ''"
499
                   v-if="setAdminUserES(dialysisOrder.quality_nurse_id) == ''"
659
           </tr>
609
           </tr>
660
           <tr>
610
           <tr>
661
             <td style="text-align:left;" colspan="4">
611
             <td style="text-align:left;" colspan="4">
662
-              <span style="display:inline-block;margin-left:15px;">
612
+              <span style="display:inline-block;margin-left:10px;">
663
                 透前评估: 入科方式:
613
                 透前评估: 入科方式:
664
                 <label-box
614
                 <label-box
665
                   :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
615
                   :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
719
           </tr>
669
           </tr>
720
           <tr>
670
           <tr>
721
             <td colspan="2" style="text-align:left;">
671
             <td colspan="2" style="text-align:left;">
722
-              <span style="display:inline-block;margin-left:15px;">食欲:</span>
672
+              <span style="display:inline-block;margin-left:10px;">食欲:</span>
723
               <label-box
673
               <label-box
724
                 :isChecked="
674
                 :isChecked="
725
                   receiverTreatmentAccess.appetite == 1 ? true : false
675
                   receiverTreatmentAccess.appetite == 1 ? true : false
781
           </tr>
731
           </tr>
782
           <tr>
732
           <tr>
783
             <td colspan="8" style="text-align:left;">
733
             <td colspan="8" style="text-align:left;">
784
-              <span style="display:inline-block;margin-left:15px;">
734
+              <span style="display:inline-block;margin-left:10px;">
785
                 血管通路:内瘘波动及震颤: (
735
                 血管通路:内瘘波动及震颤: (
786
                 <!-- <label-box
736
                 <!-- <label-box
787
                              v-for="(item,j) in arr"
737
                              v-for="(item,j) in arr"
876
           </tr>
826
           </tr>
877
           <tr>
827
           <tr>
878
             <td colspan="8" style="text-align:left;">
828
             <td colspan="8" style="text-align:left;">
879
-              <span style="display:inline-block;margin-left:15px;"
829
+              <span style="display:inline-block;margin-left:10px;"
880
                 >中心静脉导管:</span
830
                 >中心静脉导管:</span
881
               >
831
               >
882
               <!-- (部位:{{predialysis.blood_access_part_id}}) -->
832
               <!-- (部位:{{predialysis.blood_access_part_id}}) -->
952
           </tr>
902
           </tr>
953
           <tr>
903
           <tr>
954
             <td style="text-align:left;" colspan="8">
904
             <td style="text-align:left;" colspan="8">
955
-              <span style="display:inline-block;margin-left:15px;">
905
+              <span style="display:inline-block;margin-left:10px;">
956
                 血管通路皮肤情况:
906
                 血管通路皮肤情况:
957
                 <label-box
907
                 <label-box
958
                   :isChecked="
908
                   :isChecked="
1305
           </tr>
1255
           </tr>
1306
           <tr>
1256
           <tr>
1307
             <td style="text-align:left;" colspan="12">
1257
             <td style="text-align:left;" colspan="12">
1308
-              <span style="display:inline-block;margin-left:15px;"
1258
+              <span style="display:inline-block;margin-left:10px;"
1309
                 >透析护理记录:{{ nursing_record }}</span
1259
                 >透析护理记录:{{ nursing_record }}</span
1310
               >
1260
               >
1311
             </td>
1261
             </td>
1424
                     </tr> -->
1374
                     </tr> -->
1425
           <tr>
1375
           <tr>
1426
             <td style="text-align:left;" colspan="2">
1376
             <td style="text-align:left;" colspan="2">
1427
-              <span style="display:inline-block;margin-left:15px;">
1377
+              <span style="display:inline-block;margin-left:10px;">
1428
                 实际置换量:{{
1378
                 实际置换量:{{
1429
                   afterdialysis.actual_displacement
1379
                   afterdialysis.actual_displacement
1430
                     ? afterdialysis.actual_displacement
1380
                     ? afterdialysis.actual_displacement
1512
                                 </span>
1462
                                 </span>
1513
                             </td> -->
1463
                             </td> -->
1514
             <td style="text-align:left;" colspan="2">
1464
             <td style="text-align:left;" colspan="2">
1515
-              <span style="display: inline-block; margin-left: 15px">
1465
+              <span style="display: inline-block; margin-left: 10px">
1516
                 下机护士:
1466
                 下机护士:
1517
                 <span
1467
                 <span
1518
                   v-if="
1468
                   v-if="
1621
           </tr>
1571
           </tr>
1622
           <tr>
1572
           <tr>
1623
             <td style="text-align:left;" colspan="6">
1573
             <td style="text-align:left;" colspan="6">
1624
-              <span style="display:inline-block;margin-left:15px;"
1574
+              <span style="display:inline-block;margin-left:10px;"
1625
                 >特殊记录:{{ summary.special_record }}
1575
                 >特殊记录:{{ summary.special_record }}
1626
               </span>
1576
               </span>
1627
             </td>
1577
             </td>
1628
           </tr>
1578
           </tr>
1629
           <tr>
1579
           <tr>
1630
             <td style="text-align:left;" colspan="6">
1580
             <td style="text-align:left;" colspan="6">
1631
-              <span style="display:inline-block;margin-left:15px;"
1581
+              <span style="display:inline-block;margin-left:10px;"
1632
                 >透析小结:{{
1582
                 >透析小结:{{
1633
                   summary.dialysis_summary ? summary.dialysis_summary : ""
1583
                   summary.dialysis_summary ? summary.dialysis_summary : ""
1634
                 }}</span
1584
                 }}</span
2449
           // checker: 0,
2399
           // checker: 0,
2450
         }
2400
         }
2451
       );
2401
       );
2452
-    }
2402
+    },
2403
+    getshoujiunit(val){
2404
+      const options = this.anticoagulantsConfit
2405
+      if(val != ''){
2406
+        for(let i in options){
2407
+          if(val == options[i].id){
2408
+            return options[i].shouji_unit
2409
+          }
2410
+        }
2411
+      }else{
2412
+        return ''
2413
+      }
2414
+    },
2415
+    getweichiunit(val){
2416
+      const options = this.anticoagulantsConfit
2417
+      if(val != ''){
2418
+        for(let i in options){
2419
+          if(val == options[i].id){
2420
+            return options[i].weichi_unit
2421
+          }
2422
+        }
2423
+      }else{
2424
+        return ''
2425
+      }
2426
+    },
2427
+    getzongliangunit(val){
2428
+      const options = this.anticoagulantsConfit
2429
+      if(val != ''){
2430
+        for(let i in options){
2431
+          if(val == options[i].id){
2432
+            return options[i].zongliang_unit
2433
+          }
2434
+        }
2435
+      }else{
2436
+        return ''
2437
+      }
2438
+    },
2453
   },
2439
   },
2454
   watch: {
2440
   watch: {
2455
     "patientInfo.gender": function() {
2441
     "patientInfo.gender": function() {