|
@@ -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')
|