|
@@ -22,7 +22,7 @@
|
22
|
22
|
|
23
|
23
|
|
24
|
24
|
<div class="signPrint" style="font-size:16px;">
|
25
|
|
- <div>姓名:
|
|
25
|
+ <div style="font-size:24px;font-weight: 400;">姓名:
|
26
|
26
|
<span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
|
27
|
27
|
<span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
|
28
|
28
|
<span v-if="type ==1 && printObj.name == 1">({{ main_collection.patient.dialysis_no }},
|
|
@@ -33,37 +33,14 @@
|
33
|
33
|
{{getNewAge(main_collection.id_card_no) }}岁)</span>
|
34
|
34
|
|
35
|
35
|
</div>
|
36
|
|
- <div class="printCell">身份证:
|
37
|
|
- <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
|
38
|
|
- <span v-if="type ==2">{{main_collection.id_card_no}} </span>
|
39
|
|
- </div>
|
40
|
|
- <div class="printCell">电话号码:
|
41
|
|
- <span v-if="type ==1">{{main_collection.patient.phone}} </span>
|
42
|
|
- <span v-if="type ==2">{{main_collection.phone}} </span>
|
43
|
|
- </div>
|
44
|
36
|
<div class="printCell">
|
45
|
37
|
透析模式:
|
46
|
38
|
<span>{{getModeId(main_collection.mode_id)}}</span>
|
47
|
39
|
|
48
|
40
|
</div>
|
49
|
|
- <div class="printCell">
|
50
|
|
- <span>
|
51
|
|
- 分区/床号
|
52
|
|
- <span style="width:auto;">{{main_collection.zone.name}}/</span>
|
53
|
|
- {{ main_collection.number.number }}
|
54
|
|
- <!-- <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
|
55
|
|
- <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
|
56
|
|
- <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span> -->
|
57
|
|
- </span>
|
58
|
|
-
|
59
|
|
- </div>
|
60
|
|
- <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
|
61
|
|
- <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
|
62
|
|
- </div>
|
63
|
41
|
<div class="printCell">
|
64
|
42
|
<span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
|
65
|
43
|
</div>
|
66
|
|
-
|
67
|
44
|
<div class="printCell">
|
68
|
45
|
首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
|
69
|
46
|
<span v-if="main_collection.dialysissolution.anticoagulant == 2">
|
|
@@ -173,7 +150,20 @@
|
173
|
150
|
</span>
|
174
|
151
|
|
175
|
152
|
</div>
|
176
|
|
-
|
|
153
|
+ <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
|
|
154
|
+ <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
|
|
155
|
+ </div>
|
|
156
|
+ <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
|
|
157
|
+ <span>上次透析时长:{{ main_collection.lastafterweight.actual_treatment_hour }}小时{{ main_collection.lastafterweight.actual_treatment_minute }}分钟</span>
|
|
158
|
+ </div>
|
|
159
|
+ <div class="printCell">身份证:
|
|
160
|
+ <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
|
|
161
|
+ <span v-if="type ==2">{{main_collection.id_card_no}} </span>
|
|
162
|
+ </div>
|
|
163
|
+ <div class="printCell">电话号码:
|
|
164
|
+ <span v-if="type ==1">{{main_collection.patient.phone}} </span>
|
|
165
|
+ <span v-if="type ==2">{{main_collection.phone}} </span>
|
|
166
|
+ </div>
|
177
|
167
|
<div class="printCell">
|
178
|
168
|
透析器:
|
179
|
169
|
<span v-if="type ==1">{{main_collection.dialysis_order.dialysis_dialyszers}} </span>
|
|
@@ -190,6 +180,18 @@
|
190
|
180
|
<span v-if="type ==1">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
|
191
|
181
|
<span v-if="type ==2">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
|
192
|
182
|
</div>
|
|
183
|
+
|
|
184
|
+ <div class="printCell">
|
|
185
|
+ <span>
|
|
186
|
+ 分区/床号
|
|
187
|
+ <span style="width:auto;">{{main_collection.zone.name}}/</span>
|
|
188
|
+ {{ main_collection.number.number }}
|
|
189
|
+ <!-- <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
|
|
190
|
+ <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
|
|
191
|
+ <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span> -->
|
|
192
|
+ </span>
|
|
193
|
+
|
|
194
|
+ </div>
|
193
|
195
|
|
194
|
196
|
</div>
|
195
|
197
|
</div>
|
|
@@ -364,9 +366,9 @@
|
364
|
366
|
}
|
365
|
367
|
},
|
366
|
368
|
printAction: function() {
|
367
|
|
- 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: 200px;} @page {margin-top:10px;}}'
|
368
|
|
- 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: 200px;} @page {margin-top:10px;}}'
|
369
|
|
- const style2 = '@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .page-break-after{page-break-after:always;}.signPrint{width:40%;float: left;margin-left: 5%; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; margin-bottom: 20px;padding: 20px 10px;} .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: 200px;} @page {margin-top:10px;}}'
|
|
369
|
+ 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: 220px;} @page {margin-top:10px;}}'
|
|
370
|
+ 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: 220px;} @page {margin-top:10px;}}'
|
|
371
|
+ const style2 = '@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .page-break-after{page-break-after:always;}.signPrint{width:40%;float: left;margin-left: 5%; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; margin-bottom: 20px;padding: 20px 10px;} .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: 220px;} @page {margin-top:10px;}}'
|
370
|
372
|
if (this.org_id == 9671 || this.org_id == 10340) {
|
371
|
373
|
printJS({
|
372
|
374
|
printable: 'print_content',
|
|
@@ -496,13 +498,11 @@
|
496
|
498
|
// }
|
497
|
499
|
var now_time = parseInt(this.week_type) * 86400 + this.start_time
|
498
|
500
|
|
499
|
|
- let weekOfDay = parseInt(moment().format('E'))
|
500
|
|
- let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
|
501
|
|
- console.log("卡 is h2323233232",this.toStamp(next_monday))
|
502
|
|
- let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
|
503
|
|
- console.log("下周日",this.toStamp(next_sunday))
|
504
|
|
-
|
505
|
|
-
|
|
501
|
+ const weekOfDay = parseInt(moment().format('E'))
|
|
502
|
+ const next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD')
|
|
503
|
+ console.log('卡 is h2323233232', this.toStamp(next_monday))
|
|
504
|
+ const next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
|
|
505
|
+ console.log('下周日', this.toStamp(next_sunday))
|
506
|
506
|
|
507
|
507
|
const params = {
|
508
|
508
|
start_time: this.toStamp(next_monday),
|
|
@@ -711,10 +711,10 @@
|
711
|
711
|
return name
|
712
|
712
|
},
|
713
|
713
|
toStamp(date) {
|
714
|
|
- const myDate = new Date(date).getTime()/1000 - 28800
|
|
714
|
+ const myDate = new Date(date).getTime() / 1000 - 28800
|
715
|
715
|
// const stmapEg = Date.parse(myDate) / 1000
|
716
|
|
- return myDate
|
717
|
|
- },
|
|
716
|
+ return myDate
|
|
717
|
+ }
|
718
|
718
|
|
719
|
719
|
}
|
720
|
720
|
}
|
|
@@ -799,7 +799,7 @@
|
799
|
799
|
.printCell{
|
800
|
800
|
span{
|
801
|
801
|
display: inline-block;
|
802
|
|
- width: 180px;
|
|
802
|
+ width: 220px;
|
803
|
803
|
}
|
804
|
804
|
}
|
805
|
805
|
</style>
|