|
@@ -17,12 +17,14 @@
|
17
|
17
|
<div class="app-container" style="background-color: white;">
|
18
|
18
|
<div id="print_content">
|
19
|
19
|
<div class="print_main_content">
|
20
|
|
- <div class="table_panel" v-loding="loading" element-loading-text="拼命加载中">
|
|
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
|
23
|
box-sizing: border-box;
|
24
|
24
|
border: 1px solid black;
|
25
|
25
|
">
|
|
26
|
+ <!-- <div style="display: flex;justify-content: space-between;flex-wrap: wrap;">
|
|
27
|
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 20px rgba(0, 0, 0, 0.06) inset; -->
|
26
|
28
|
<div class="signPrint" style="font-size:16px;width: 100%;padding:5px; word-wrap:break-word;">
|
27
|
29
|
<div style="font-size:24px;font-weight: 400;">姓名:
|
28
|
30
|
<span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
|
|
@@ -203,9 +205,9 @@
|
203
|
205
|
</div>
|
204
|
206
|
|
205
|
207
|
</div>
|
|
208
|
+ <!-- </div> -->
|
206
|
209
|
</div>
|
207
|
210
|
</div>
|
208
|
|
-
|
209
|
211
|
</div>
|
210
|
212
|
</div>
|
211
|
213
|
</div>
|
|
@@ -381,19 +383,12 @@
|
381
|
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;}}'
|
382
|
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;}}'
|
383
|
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;}.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;}}'
|
384
|
|
- if (this.org_id == 9671 || this.org_id == 10340) {
|
385
|
|
- // printJS({
|
386
|
|
- // printable: 'print_content',
|
387
|
|
- // type: 'html',
|
388
|
|
- // documentTitle: ' ',
|
389
|
|
- // style: style2,
|
390
|
|
- // scanStyles: false
|
391
|
|
- // })
|
|
386
|
+ if (this.org_id == 9671 || this.org_id == 10340 || this.org_id == 0) {
|
392
|
387
|
printJS({
|
393
|
388
|
printable: 'print_content',
|
394
|
389
|
type: 'html',
|
395
|
390
|
documentTitle: ' ',
|
396
|
|
- style: style2,
|
|
391
|
+ style: style,
|
397
|
392
|
scanStyles: false
|
398
|
393
|
})
|
399
|
394
|
} else if (this.org_id == 10188 || this.org_id == 10217) {
|