|
@@ -20,20 +20,21 @@
|
20
|
20
|
<div class="table_panel" v-loding="loading" element-loading-text="拼命加载中">
|
21
|
21
|
<div v-for="(main_collection,index) in scheduleData" :key="index" :class="(org_id == 9671 || org_id == 10340) && parseInt((index+1)%8) == 0 ? 'page-break-after':''"
|
22
|
22
|
style="display: inline-block; width: 42%; margin: 0px 35px 20px;
|
|
23
|
+ box-sizing: border-box;
|
23
|
24
|
border: 1px solid black;
|
24
|
|
- box-sizing: border-box;">
|
|
25
|
+ ">
|
25
|
26
|
<!-- <div style="display: flex;justify-content: space-between;flex-wrap: wrap;">
|
26
|
27
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 20px rgba(0, 0, 0, 0.06) inset; -->
|
27
|
|
- <div class="signPrint" style="font-size:16px; ">
|
|
28
|
+ <div class="signPrint" style="font-size:16px;width: 100%;padding:5px; word-wrap:break-word;">
|
28
|
29
|
<div style="font-size:24px;font-weight: 400;">姓名:
|
29
|
30
|
<span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
|
30
|
31
|
<span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
|
31
|
|
- <span v-if="type ==1 && printObj.name == 1">({{ main_collection.patient.dialysis_no }},
|
32
|
|
- <span> {{getGender(main_collection.patient.gender)}},</span>
|
33
|
|
- {{getNewAge(main_collection.patient.id_card_no) }}岁)</span>
|
34
|
|
- <span v-if="type ==2 && printObj.name == 1">({{ main_collection.dialysis_no }},
|
35
|
|
- <span>{{getGender(main_collection.gender) }},</span>
|
36
|
|
- {{getNewAge(main_collection.id_card_no) }}岁)</span>
|
|
32
|
+ <span v-if="type ==1 && printObj.name == 1">({{ main_collection.patient.dialysis_no }},
|
|
33
|
+ <span> {{getGender(main_collection.patient.gender)}},</span>
|
|
34
|
+ {{getNewAge(main_collection.patient.id_card_no) }}岁)</span>
|
|
35
|
+ <span v-if="type ==2 && printObj.name == 1">({{ main_collection.dialysis_no }},
|
|
36
|
+ <span>{{getGender(main_collection.gender) }},</span>
|
|
37
|
+ {{getNewAge(main_collection.id_card_no) }}岁)</span>
|
37
|
38
|
|
38
|
39
|
</div>
|
39
|
40
|
<div class="printCell">
|
|
@@ -381,7 +382,7 @@
|
381
|
382
|
printAction: function() {
|
382
|
383
|
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;}}'
|
383
|
384
|
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;}}'
|
384
|
|
- 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;}}'
|
|
385
|
+ 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;} .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;}}'
|
385
|
386
|
if (this.org_id == 9671 || this.org_id == 10340) {
|
386
|
387
|
printJS({
|
387
|
388
|
printable: 'print_content',
|
|
@@ -812,13 +813,13 @@
|
812
|
813
|
}
|
813
|
814
|
}
|
814
|
815
|
}
|
815
|
|
-.signPrint{
|
816
|
|
- -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
|
817
|
|
- -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
818
|
|
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
819
|
|
- // margin-bottom: 20px;
|
820
|
|
- padding: 20px 5px;
|
821
|
|
-}
|
|
816
|
+// .signPrint{
|
|
817
|
+// // -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
|
|
818
|
+// // -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
|
819
|
+// // box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
|
|
820
|
+// // margin-bottom: 20px;
|
|
821
|
+// // padding: 20px 5px;
|
|
822
|
+// }
|
822
|
823
|
.printCell{
|
823
|
824
|
span{
|
824
|
825
|
display: inline-block;
|