|
@@ -2,7 +2,7 @@
|
2
|
2
|
<div class="main-contain">
|
3
|
3
|
<div class="position">
|
4
|
4
|
<bread-crumb :crumbs='crumbs'></bread-crumb>
|
5
|
|
- <el-button size="small" icon="el-icon-printer" @click="printAction" type="primary">打印</el-button>
|
|
5
|
+ <el-button :loading="loading" size="small" icon="el-icon-printer" @click="printAction" type="primary">打印</el-button>
|
6
|
6
|
</div>
|
7
|
7
|
<div class="app-container">
|
8
|
8
|
<div id="print_content">
|
|
@@ -384,7 +384,7 @@
|
384
|
384
|
<table class="inside_table">
|
385
|
385
|
<thead>
|
386
|
386
|
<tr>
|
387
|
|
-
|
|
387
|
+
|
388
|
388
|
<td width="40px">时间</td>
|
389
|
389
|
<td width="120px">医嘱内容</td>
|
390
|
390
|
<td width="80px">医生签名</td>
|
|
@@ -398,7 +398,7 @@
|
398
|
398
|
<td width="80px">执行护士</td>
|
399
|
399
|
<td width="65px">执行时间</td>
|
400
|
400
|
<td width="75px">核对护士</td>
|
401
|
|
-
|
|
401
|
+
|
402
|
402
|
<!-- <td width="100">时间</td>
|
403
|
403
|
<td>医嘱内容</td>
|
404
|
404
|
<td width="120">医生签名</td>
|
|
@@ -554,15 +554,16 @@ export default {
|
554
|
554
|
{path:false, name:'批量打印'},
|
555
|
555
|
],
|
556
|
556
|
records: [ // 模拟有多条数据
|
557
|
|
- // {
|
|
557
|
+ // {
|
558
|
558
|
// monitor_records: [ {},{},{},{},{},{},{},{},{},{},{}, ],
|
559
|
559
|
// advices: [ {},{},{},{},{},{},{}, ],
|
560
|
560
|
// },
|
561
|
|
- // {
|
|
561
|
+ // {
|
562
|
562
|
// monitor_records: [],
|
563
|
563
|
// advices: [],
|
564
|
564
|
// },
|
565
|
565
|
],
|
|
566
|
+ loading:false,
|
566
|
567
|
orgname: '',
|
567
|
568
|
bloodAccessParOpera: {},
|
568
|
569
|
anticoagulantsConfit: {},
|
|
@@ -604,6 +605,7 @@ export default {
|
604
|
605
|
// }
|
605
|
606
|
},
|
606
|
607
|
mounted() {
|
|
608
|
+ this.loading = true
|
607
|
609
|
var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
|
608
|
610
|
if (ids.length == 0) {
|
609
|
611
|
this.$router.back(-1)
|
|
@@ -612,7 +614,8 @@ export default {
|
612
|
614
|
GetBatchPrintDialysisData(ids.join(",")).then(rs => {
|
613
|
615
|
var resp = rs.data
|
614
|
616
|
if (resp.state == 1) {
|
615
|
|
- this.records = this.records.concat(resp.data.schedules);
|
|
617
|
+
|
|
618
|
+ this.records = this.records.concat(resp.data.schedules);
|
616
|
619
|
for (const recordIndex in this.records) {
|
617
|
620
|
var dlegh = 0;
|
618
|
621
|
if(this.records[recordIndex].monitor_records && this.records[recordIndex].monitor_records.length<8) {
|
|
@@ -629,7 +632,7 @@ export default {
|
629
|
632
|
}
|
630
|
633
|
}
|
631
|
634
|
|
632
|
|
-
|
|
635
|
+
|
633
|
636
|
var childMap = {};
|
634
|
637
|
for (const index in this.records[recordIndex].advices) {
|
635
|
638
|
if (this.records[recordIndex].advices[index].parent_id == 0) {
|
|
@@ -693,11 +696,13 @@ export default {
|
693
|
696
|
this.$set(this.operatorMaps, this.operators[index].id, this.operators[index]);
|
694
|
697
|
}
|
695
|
698
|
}
|
696
|
|
-
|
|
699
|
+
|
697
|
700
|
this.adminUser = resp.data.users;
|
698
|
|
-
|
|
701
|
+ this.loading = false
|
|
702
|
+
|
699
|
703
|
} else {
|
700
|
|
- this.$message.error(resp.msg)
|
|
704
|
+ this.loading = false
|
|
705
|
+ this.$message.error(resp.msg)
|
701
|
706
|
}
|
702
|
707
|
}).catch(err => {
|
703
|
708
|
this.$message.error(err)
|
|
@@ -706,7 +711,7 @@ export default {
|
706
|
711
|
methods: {
|
707
|
712
|
printAction: function() {
|
708
|
713
|
const style = '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 25px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}';
|
709
|
|
-
|
|
714
|
+
|
710
|
715
|
printJS({
|
711
|
716
|
printable: "print_content",
|
712
|
717
|
type: "html",
|
|
@@ -832,7 +837,7 @@ export default {
|
832
|
837
|
<style scoped>
|
833
|
838
|
.print_page_main_content {
|
834
|
839
|
background-color: white;
|
835
|
|
- width:960px;
|
|
840
|
+ width:960px;
|
836
|
841
|
margin:0 auto 50px;
|
837
|
842
|
padding: 0 0 0 0;
|
838
|
843
|
page-break-after: always;
|
|
@@ -862,7 +867,7 @@ export default {
|
862
|
867
|
display: inline-block;
|
863
|
868
|
border-bottom: 1px solid #999;
|
864
|
869
|
text-align: center;
|
865
|
|
- white-space: nowrap;
|
|
870
|
+ white-space: nowrap;
|
866
|
871
|
}
|
867
|
872
|
.under_line::before {
|
868
|
873
|
content: "\00A0";
|
|
@@ -902,7 +907,7 @@ export default {
|
902
|
907
|
line-height: 30px;
|
903
|
908
|
}
|
904
|
909
|
.print_page_main_content .proj_table .inside_table {
|
905
|
|
- width: 100%;
|
|
910
|
+ width: 100%;
|
906
|
911
|
border: hidden; /* 解决边框冲突 */
|
907
|
912
|
border-collapse: collapse;
|
908
|
913
|
}
|