Pārlūkot izejas kodu

518合并代码

XMLWAN 2 gadus atpakaļ
vecāks
revīzija
a229174516

+ 3 - 2
src/xt_pages/dialysis/bloodPresssWatch.vue Parādīt failu

2
   <div class="main-contain">
2
   <div class="main-contain">
3
     <div class="position">
3
     <div class="position">
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+    
5
       <template v-if="this.template_id == 1">
6
       <template v-if="this.template_id == 1">
6
         <el-button
7
         <el-button
7
           size="small"
8
           size="small"
97
           :disabled="selecting_schs.length == 0"
98
           :disabled="selecting_schs.length == 0"
98
           @click="batchPrintAction"
99
           @click="batchPrintAction"
99
           type="primary"
100
           type="primary"
100
-          >打印</el-button
101
-        >
101
+          >打印</el-button>
102
       </template>
102
       </template>
103
       <template v-if="this.template_id == 7">
103
       <template v-if="this.template_id == 7">
104
         <el-button
104
         <el-button
708
         } else {
708
         } else {
709
           var template = response.data.data.template;
709
           var template = response.data.data.template;
710
           this.template_id = template.template_id;
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 Parādīt failu

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

+ 91 - 11
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Parādīt failu

8
                 :append-to-body="true"
8
                 :append-to-body="true"
9
                 class="newDialog"
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
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
13
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
18
             <el-form
14
             <el-form
19
                     ref="dialysisPrescription"
15
                     ref="dialysisPrescription"
956
       </span>
952
       </span>
957
         </el-dialog>
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
         <multi-select-box
1019
         <multi-select-box
960
                 :propsForm="InnerDialogProps"
1020
                 :propsForm="InnerDialogProps"
961
                 v-on:dialog-comfirm="innerDialogComfirm"
1021
                 v-on:dialog-comfirm="innerDialogComfirm"
972
   import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
1032
   import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
973
   import store from '@/store'
1033
   import store from '@/store'
974
   import MsgTip from './MsgTip'
1034
   import MsgTip from './MsgTip'
975
-
1035
+  import print from 'print-js'
976
   import request from '@/utils/request'
1036
   import request from '@/utils/request'
977
   import multiSelectBox from './MultiSelectBox'
1037
   import multiSelectBox from './MultiSelectBox'
978
 
1038
 
1239
         blood_access_option: [],
1299
         blood_access_option: [],
1240
         is_pre: 0,
1300
         is_pre: 0,
1241
         msgtip_visibility: false,
1301
         msgtip_visibility: false,
1242
-
1302
+        startVisibility:false,
1243
         dialysisPrescription: {
1303
         dialysisPrescription: {
1244
           replacement_total: '',
1304
           replacement_total: '',
1245
           mode_id: '',
1305
           mode_id: '',
3406
         this.isVisibility = false
3466
         this.isVisibility = false
3407
         this.msgtip_visibility = true
3467
         this.msgtip_visibility = true
3408
       },
3468
       },
3469
+      handlePatientInfoOne(){
3470
+        this.isVisibility = false
3471
+        this.startVisibility = true
3472
+      },
3409
       cancleMsg() {
3473
       cancleMsg() {
3410
         this.isVisibility = true
3474
         this.isVisibility = true
3411
         this.msgtip_visibility = false
3475
         this.msgtip_visibility = false
3412
       },
3476
       },
3477
+      cancleMsgOne(){
3478
+       this.isVisibility = true
3479
+       this.startVisibility = false
3480
+      },
3413
       getPermission() {
3481
       getPermission() {
3414
         request
3482
         request
3415
           .get('/api/func_per/get', {
3483
           .get('/api/func_per/get', {
3454
       unique(arr) {
3522
       unique(arr) {
3455
         const res = new Map()
3523
         const res = new Map()
3456
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
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
         this.irrigations = irrigation
4042
         this.irrigations = irrigation
3964
         console.log('透析器', this.dialyzers)
4043
         console.log('透析器', this.dialyzers)
3965
         console.log('灌流器', this.irrigations)
4044
         console.log('灌流器', this.irrigations)
3966
-      }
4045
+      },
4046
+   
3967
     },
4047
     },
3968
     created() {
4048
     created() {
3969
-
4049
+      console.log("schedual232323323232323232",this.schedual)
3970
       this.illnessList = getDataConfig('hemodialysis', 'illness')
4050
       this.illnessList = getDataConfig('hemodialysis', 'illness')
3971
 
4051
 
3972
       this.plasmaSeparatorList = getDataConfig('hemodialysis', 'plasma_separator')
4052
       this.plasmaSeparatorList = getDataConfig('hemodialysis', 'plasma_separator')

+ 4 - 4
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Parādīt failu

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