Browse Source

518合并代码

XMLWAN 2 years ago
parent
commit
a229174516

+ 3 - 2
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -2,6 +2,7 @@
2 2
   <div class="main-contain">
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+    
5 6
       <template v-if="this.template_id == 1">
6 7
         <el-button
7 8
           size="small"
@@ -97,8 +98,7 @@
97 98
           :disabled="selecting_schs.length == 0"
98 99
           @click="batchPrintAction"
99 100
           type="primary"
100
-          >打印</el-button
101
-        >
101
+          >打印</el-button>
102 102
       </template>
103 103
       <template v-if="this.template_id == 7">
104 104
         <el-button
@@ -708,6 +708,7 @@ export default {
708 708
         } else {
709 709
           var template = response.data.data.template;
710 710
           this.template_id = template.template_id;
711
+          console.log("templage-i233232323232322323233232323223",this.template_id)
711 712
         }
712 713
       });
713 714
     },

+ 1 - 1
src/xt_pages/dialysis/details/NavIgation.vue View File

@@ -555,7 +555,7 @@ export default {
555 555
   },
556 556
   methods: {
557 557
     getUnReadNum: function() {
558
-      console.log("医嘱中国23322222222222222222222222222",this.doctor_advices)
558
+     
559 559
       let doctorAdvice = [];
560 560
       for (let y = 0; y < this.doctor_advices.length; y++) {
561 561
         if (this.doctor_advices[y].execution_state == 2) {

+ 91 - 11
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -8,12 +8,8 @@
8 8
                 :append-to-body="true"
9 9
                 class="newDialog"
10 10
         >
11
-            <el-button
12
-                    style="position: absolute;left: 12%;top: 2%"
13
-                    @click="handlePatientInfo"
14
-            >{{ patient.name }}
15
-            </el-button
16
-            >
11
+            <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo">{{ patient.name }}</el-button>
12
+            <!-- <el-button style="position: absolute;left: 20%;top: 2%" @click="handlePatientInfoOne">上机打印单 </el-button> -->
17 13
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
18 14
             <el-form
19 15
                     ref="dialysisPrescription"
@@ -956,6 +952,70 @@
956 952
       </span>
957 953
         </el-dialog>
958 954
 
955
+
956
+        <el-dialog
957
+                :title="patient.name"
958
+                :visible.sync="startVisibility"
959
+                :close-on-click-modal="false"
960
+                :close-on-press-escape="false"
961
+                :show-close="false"
962
+                width="30%"
963
+        >
964
+         <el-button
965
+            size="small"
966
+            icon="el-icon-printer"
967
+            type="primary"
968
+            @click="printAction"
969
+            style="float:right"
970
+            >打印</el-button
971
+          >
972
+       <div id="print_content">
973
+        <div class="print_main_content">
974
+          <div class="table_panel">
975
+              <div class="signPrint" style="font-size:16px;">
976
+                <div style="margin-left:50px;">姓名:
977
+                  <span>{{ patient.name }} </span>
978
+                  ({{patient.dialysis_no }},{{patient.age}}岁)
979
+                </div>
980
+                <div class="printCell">
981
+                  <span>
982
+                    床号:{{schedual.device_number.number}}
983
+                    <span style="width:auto;" v-if="schedual.schedule_type == 1">上午</span>
984
+                    <span style="width:auto;" v-if="schedual.schedule_type == 2">下午</span>
985
+                    <span style="width:auto;" v-if="schedual.schedule_type == 3">晚上</span>
986
+                  </span>
987
+                  <span> </span>
988
+                </div>
989
+                <div class="printCell">
990
+                  <span>干体重:{{getDryWeight()}}Kg</span>
991
+                  <span>抗凝剂:
992
+                     {{dialysisPrescription.anticoagulant}}
993
+                  </span>
994
+                </div>
995
+                <div class="printCell">
996
+                  <span>净重值:Kg</span>
997
+                  <span>首剂:{{dialysisPrescription.anticoagulant}}</span>
998
+                </div>
999
+                <div class="printCell">
1000
+                  <span>体重增加:Kg</span>
1001
+                  <span>维持:</span>
1002
+                </div>
1003
+                <div class="printCell">
1004
+                  <span>处方脱水量:{{dialysisPrescription.target_ultrafiltration}}</span>
1005
+                  <span>总量:</span>
1006
+                </div>
1007
+              </div>
1008
+         
1009
+          </div>
1010
+        </div>
1011
+      </div>
1012
+
1013
+            <span slot="footer" class="dialog-footer">
1014
+        <el-button @click="cancleMsgOne()">取 消</el-button>
1015
+        <el-button type="primary" @click="cancleMsgOne()">确 定</el-button>
1016
+      </span>
1017
+    </el-dialog>
1018
+
959 1019
         <multi-select-box
960 1020
                 :propsForm="InnerDialogProps"
961 1021
                 v-on:dialog-comfirm="innerDialogComfirm"
@@ -972,7 +1032,7 @@
972 1032
   import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
973 1033
   import store from '@/store'
974 1034
   import MsgTip from './MsgTip'
975
-
1035
+  import print from 'print-js'
976 1036
   import request from '@/utils/request'
977 1037
   import multiSelectBox from './MultiSelectBox'
978 1038
 
@@ -1239,7 +1299,7 @@
1239 1299
         blood_access_option: [],
1240 1300
         is_pre: 0,
1241 1301
         msgtip_visibility: false,
1242
-
1302
+        startVisibility:false,
1243 1303
         dialysisPrescription: {
1244 1304
           replacement_total: '',
1245 1305
           mode_id: '',
@@ -3406,10 +3466,18 @@
3406 3466
         this.isVisibility = false
3407 3467
         this.msgtip_visibility = true
3408 3468
       },
3469
+      handlePatientInfoOne(){
3470
+        this.isVisibility = false
3471
+        this.startVisibility = true
3472
+      },
3409 3473
       cancleMsg() {
3410 3474
         this.isVisibility = true
3411 3475
         this.msgtip_visibility = false
3412 3476
       },
3477
+      cancleMsgOne(){
3478
+       this.isVisibility = true
3479
+       this.startVisibility = false
3480
+      },
3413 3481
       getPermission() {
3414 3482
         request
3415 3483
           .get('/api/func_per/get', {
@@ -3454,7 +3522,18 @@
3454 3522
       unique(arr) {
3455 3523
         const res = new Map()
3456 3524
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
3457
-      }
3525
+      },
3526
+      printAction: function() {
3527
+        const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 180px;} @page {margin-top:10px;}}'
3528
+        const style1 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 170px;} @page {margin-top:10px;}}'
3529
+        printJS({
3530
+          printable: 'print_content',
3531
+          type: 'html',
3532
+          documentTitle: '  ',
3533
+          style: style1,
3534
+          scanStyles: false
3535
+        }) 
3536
+      },
3458 3537
 
3459 3538
     },
3460 3539
 
@@ -3963,10 +4042,11 @@
3963 4042
         this.irrigations = irrigation
3964 4043
         console.log('透析器', this.dialyzers)
3965 4044
         console.log('灌流器', this.irrigations)
3966
-      }
4045
+      },
4046
+   
3967 4047
     },
3968 4048
     created() {
3969
-
4049
+      console.log("schedual232323323232323232",this.schedual)
3970 4050
       this.illnessList = getDataConfig('hemodialysis', 'illness')
3971 4051
 
3972 4052
       this.plasmaSeparatorList = getDataConfig('hemodialysis', 'plasma_separator')

+ 4 - 4
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

@@ -542,11 +542,11 @@ export default {
542 542
                     }
543 543
                   })
544 544
                 })
545
-                 console.log("projexta仍然333232323232",projectArr)
545
+                
546 546
                  resp.data.hisAdvices.map((item,index) => {
547 547
                   if(projectArr[index].project && projectArr[index].project.length > 0){
548 548
                      projectArr[index].project.map(it => {
549
-                      console.log("i23323232323我的",it)
549
+                     
550 550
                       let obj = {
551 551
                         advice_doctor: it.doctor,
552 552
                         start_time:it.start_time,
@@ -572,7 +572,7 @@ export default {
572 572
                 })
573 573
               }
574 574
             
575
-              console.log("repso23323233232",resp.data.hisAdvices)
575
+             
576 576
 
577 577
             }
578 578
            
@@ -639,7 +639,7 @@ export default {
639 639
             this.indexInfoList = newArr
640 640
            }
641 641
            if(config.is_open == 1){
642
-            console.log("进阿里云 2323323223我的")
642
+           
643 643
              this.show = false
644 644
              this.showOne  = true
645 645
             var schedules =  resp.data.hisAdvices