|
@@ -1,8 +1,8 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div id="dialysis-print-box" style="position: relative">
|
3
|
3
|
<div class="dialysis-print-order">
|
4
|
|
- <table class="dialysis-print-order">
|
5
|
|
- <thead style="transform: translateY(3px);">
|
|
4
|
+ <table class="print-table">
|
|
5
|
+ <thead style="transform: translateY(2px)">
|
6
|
6
|
<tr>
|
7
|
7
|
<td>
|
8
|
8
|
<div class="order-yy-name">{{ orgname }}</div>
|
|
@@ -34,27 +34,10 @@
|
34
|
34
|
</tr>
|
35
|
35
|
</thead>
|
36
|
36
|
<tbody>
|
37
|
|
- <tr>
|
|
37
|
+ <tr style="transform: translateY(2px);">
|
38
|
38
|
<td>
|
39
|
39
|
<table class="print-table" border="1">
|
40
|
40
|
<tbody>
|
41
|
|
- <!-- <tr>
|
42
|
|
- <td width="80" colspan="11" style="text-align: center">
|
43
|
|
- 治 疗 日 期: <span>{{ queryParams.xtdate }}</span>
|
44
|
|
- </td>
|
45
|
|
- </tr>
|
46
|
|
- <tr>
|
47
|
|
- <td colspan="11" style="padding-left: 10px">
|
48
|
|
- <div class="list_table">
|
49
|
|
- <div>姓 名: {{ patientInfo.name }}</div>
|
50
|
|
- <div>
|
51
|
|
- 性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
|
52
|
|
- </div>
|
53
|
|
- <div>年龄:{{ getoldAge() }}</div>
|
54
|
|
- <div>透析机号: {{ getNumber() }}</div>
|
55
|
|
- </div>
|
56
|
|
- </td>
|
57
|
|
- </tr> -->
|
58
|
41
|
<tr class="list_table_1">
|
59
|
42
|
<td colspan="11" style="padding-left: 10px">
|
60
|
43
|
<div style="display: flex">
|
|
@@ -609,7 +592,10 @@
|
609
|
592
|
</tr>
|
610
|
593
|
</tbody>
|
611
|
594
|
</table>
|
612
|
|
-
|
|
595
|
+ </td>
|
|
596
|
+ </tr>
|
|
597
|
+ <tr style="transform: translateY(1px)">
|
|
598
|
+ <td>
|
613
|
599
|
<table class="print-table" border="1">
|
614
|
600
|
<tr style="text-align: center">
|
615
|
601
|
<td colspan="15" style="margin-left: 15px; font-size: 20px">
|
|
@@ -767,30 +753,32 @@
|
767
|
753
|
</td>
|
768
|
754
|
</tr>
|
769
|
755
|
</table>
|
770
|
|
-
|
|
756
|
+ </td>
|
|
757
|
+ </tr>
|
|
758
|
+ <tr style="transform: translateY(3px);">
|
|
759
|
+ <td>
|
771
|
760
|
<table class="print-table" border="1" style="text-align: center">
|
772
|
|
- <tbody>
|
773
|
|
- <tr class="yizhu">
|
774
|
|
- <td style="width: 20px; height: 20px">
|
|
761
|
+ <tr>
|
|
762
|
+ <td style="height: 20px" width="50">
|
775
|
763
|
<p style="height: 20px; line-height: 20px">时间</p>
|
776
|
764
|
</td>
|
777
|
|
- <td style="width: 200px; height: 20px">
|
|
765
|
+ <td style="height: 20px" width="490">
|
778
|
766
|
<p style="height: 20px; line-height: 20px">
|
779
|
767
|
医嘱执行记录
|
780
|
768
|
</p>
|
781
|
769
|
</td>
|
782
|
|
- <td style="width: 35px; height: 20px">
|
|
770
|
+ <td style="height: 20px" width="85">
|
783
|
771
|
<p style="height: 20px; line-height: 20px">执行</p>
|
784
|
772
|
</td>
|
785
|
|
- <td style="width: 35px; height: 20px">
|
|
773
|
+ <td style=" height: 20px" width="85">
|
786
|
774
|
<p style="height: 20px; line-height: 20px">核对</p>
|
787
|
775
|
</td>
|
788
|
|
- <td style="width: 60px; height: 20px">
|
|
776
|
+ <td style="height: 20px" width="145">
|
789
|
777
|
<p style="height: 20px; line-height: 20px">
|
790
|
778
|
上次透后体重
|
791
|
779
|
</p>
|
792
|
780
|
</td>
|
793
|
|
- <td style="width: 45px; height: 20px">
|
|
781
|
+ <td style="height: 20px">
|
794
|
782
|
{{
|
795
|
783
|
patientInfo.total_dialysis +
|
796
|
784
|
patientInfo.user_sys_before_count >
|
|
@@ -800,10 +788,15 @@
|
800
|
788
|
}}kg
|
801
|
789
|
</td>
|
802
|
790
|
</tr>
|
803
|
|
-
|
804
|
|
- <tr v-for="(advice, advice_index) in advices">
|
805
|
|
- <td>{{ getTime(advice.start_time, "{h}:{i}") }}</td>
|
806
|
|
- <td style="text-align: left; padding-left: 5px">
|
|
791
|
+ </table>
|
|
792
|
+ </td>
|
|
793
|
+ </tr>
|
|
794
|
+ <tr v-for="(advice, advice_index) in advices" :key="advice_index">
|
|
795
|
+ <td>
|
|
796
|
+ <table class="print-table" border="1">
|
|
797
|
+ <tr>
|
|
798
|
+ <td width="50">{{ getTime(advice.start_time, "{h}:{i}") }}</td>
|
|
799
|
+ <td style="text-align: left; padding-left: 5px" width="485">
|
807
|
800
|
<span v-if="advice.parent_id > 0">---></span>
|
808
|
801
|
<span>{{ advice.advice_name }}</span>
|
809
|
802
|
<span v-if="advice && advice.advice_desc"
|
|
@@ -818,6 +811,7 @@
|
818
|
811
|
>{{ advice.single_dose
|
819
|
812
|
}}{{ advice.single_dose_unit }}</span
|
820
|
813
|
>
|
|
814
|
+
|
821
|
815
|
<span v-if="advice.parent_id == 0">{{
|
822
|
816
|
advice.delivery_way
|
823
|
817
|
}}</span>
|
|
@@ -825,9 +819,8 @@
|
825
|
819
|
advice.execution_frequency
|
826
|
820
|
}}</span>
|
827
|
821
|
<span>{{ advice.remark }}</span>
|
828
|
|
- </td>
|
829
|
|
-
|
830
|
|
- <td style="line-height: 30px">
|
|
822
|
+ </td>
|
|
823
|
+ <td style="line-height: 30px" width="85">
|
831
|
824
|
<span
|
832
|
825
|
v-if="setAdminUserES(advice.execution_staff) == ''"
|
833
|
826
|
>{{ getAdminUser(advice.execution_staff) }}</span
|
|
@@ -840,7 +833,7 @@
|
840
|
833
|
v-else
|
841
|
834
|
/>
|
842
|
835
|
</td>
|
843
|
|
- <td style="line-height: 30px">
|
|
836
|
+ <td style="line-height: 30px" width="85">
|
844
|
837
|
<span v-if="setAdminUserES(advice.checker) == ''">{{
|
845
|
838
|
getAdminUser(advice.checker)
|
846
|
839
|
}}</span>
|
|
@@ -853,7 +846,7 @@
|
853
|
846
|
/>
|
854
|
847
|
</td>
|
855
|
848
|
|
856
|
|
- <td v-if="advice_index === 0">透前体重:</td>
|
|
849
|
+ <td v-if="advice_index === 0" width="145">透前体重:</td>
|
857
|
850
|
<td v-if="advice_index === 0">
|
858
|
851
|
{{
|
859
|
852
|
patientInfo.total_dialysis +
|
|
@@ -863,7 +856,7 @@
|
863
|
856
|
: "/"
|
864
|
857
|
}}kg
|
865
|
858
|
</td>
|
866
|
|
- <td v-if="advice_index === 1">体重增加量:</td>
|
|
859
|
+ <td v-if="advice_index === 1" width="145">体重增加量:</td>
|
867
|
860
|
<td v-if="advice_index === 1">
|
868
|
861
|
{{
|
869
|
862
|
patientInfo.total_dialysis +
|
|
@@ -876,7 +869,7 @@
|
876
|
869
|
: "/"
|
877
|
870
|
}}kg
|
878
|
871
|
</td>
|
879
|
|
- <td v-if="advice_index === 2">干体重(DW):</td>
|
|
872
|
+ <td v-if="advice_index === 2" width="145">干体重(DW):</td>
|
880
|
873
|
<td v-if="advice_index === 2">
|
881
|
874
|
{{
|
882
|
875
|
patientInfo.total_dialysis +
|
|
@@ -886,7 +879,7 @@
|
886
|
879
|
: "/"
|
887
|
880
|
}}kg
|
888
|
881
|
</td>
|
889
|
|
- <td v-if="advice_index === 3">较干体重增加量:</td>
|
|
882
|
+ <td v-if="advice_index === 3" width="145">较干体重增加量:</td>
|
890
|
883
|
<td v-if="advice_index === 3">
|
891
|
884
|
{{
|
892
|
885
|
patientInfo.total_dialysis +
|
|
@@ -899,7 +892,7 @@
|
899
|
892
|
: "/"
|
900
|
893
|
}}kg
|
901
|
894
|
</td>
|
902
|
|
- <td v-if="advice_index === 4">净脱水量:</td>
|
|
895
|
+ <td v-if="advice_index === 4" width="145">净脱水量:</td>
|
903
|
896
|
<td v-if="advice_index === 4">
|
904
|
897
|
{{
|
905
|
898
|
patientInfo.total_dialysis +
|
|
@@ -909,7 +902,7 @@
|
909
|
902
|
: "/"
|
910
|
903
|
}}ml
|
911
|
904
|
</td>
|
912
|
|
- <td v-if="advice_index === 5">透后体重:</td>
|
|
905
|
+ <td v-if="advice_index === 5" width="145">透后体重:</td>
|
913
|
906
|
<td v-if="advice_index === 5">
|
914
|
907
|
{{
|
915
|
908
|
patientInfo.total_dialysis +
|
|
@@ -919,7 +912,7 @@
|
919
|
912
|
: "/"
|
920
|
913
|
}}kg
|
921
|
914
|
</td>
|
922
|
|
- <td v-if="advice_index === 6">本次透析体重下降量:</td>
|
|
915
|
+ <td v-if="advice_index === 6" width="145">本次透析体重下降量:</td>
|
923
|
916
|
<td v-if="advice_index === 6">
|
924
|
917
|
{{
|
925
|
918
|
patientInfo.total_dialysis +
|
|
@@ -932,11 +925,18 @@
|
932
|
925
|
: "/"
|
933
|
926
|
}}kg
|
934
|
927
|
</td>
|
|
928
|
+ <td v-if="advice_index > 6" width="145"></td>
|
935
|
929
|
<td v-if="advice_index > 6"></td>
|
936
|
|
- <td v-if="advice_index > 6"></td>
|
937
|
|
- </tr>
|
938
|
|
- </tbody>
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+ </tr>
|
939
|
933
|
</table>
|
|
934
|
+ </td>
|
|
935
|
+
|
|
936
|
+ </tr>
|
|
937
|
+
|
|
938
|
+ <tr style="transform: translateY(-4px)">
|
|
939
|
+ <td>
|
940
|
940
|
<table class="print-table" border="1">
|
941
|
941
|
<tr style="height: 50px; text-align: left">
|
942
|
942
|
<td style="padding-left: 5px; border-bottom: none">
|
|
@@ -1455,6 +1455,7 @@ export default {
|
1455
|
1455
|
this.monitors = response.data.data.monitors;
|
1456
|
1456
|
this.summary = response.data.data.summary;
|
1457
|
1457
|
this.org_template_info = response.data.data.org_template_info;
|
|
1458
|
+ console.log(this.advices, "this.advices");
|
1458
|
1459
|
if (this.monitors.length <= 0) {
|
1459
|
1460
|
var nl = 8 - this.monitors.length;
|
1460
|
1461
|
for (let index = 0; index < nl; index++) {
|
|
@@ -1497,7 +1498,7 @@ export default {
|
1497
|
1498
|
}
|
1498
|
1499
|
|
1499
|
1500
|
var tableAdvice = this.advices;
|
1500
|
|
- console.log("医生", tableAdvice);
|
|
1501
|
+ // console.log("医生", tableAdvice);
|
1501
|
1502
|
if (tableAdvice.length === 0) {
|
1502
|
1503
|
var obj = { advice_name: "", start_time: "" };
|
1503
|
1504
|
var obj1 = { advice_name: "", start_time: "" };
|
|
@@ -1599,95 +1600,95 @@ export default {
|
1599
|
1600
|
|
1600
|
1601
|
this.loading = false;
|
1601
|
1602
|
|
1602
|
|
- this.doctor_advices =
|
1603
|
|
- response.data.data.advices == null
|
1604
|
|
- ? []
|
1605
|
|
- : response.data.data.advices;
|
|
1603
|
+ // this.doctor_advices =
|
|
1604
|
+ // response.data.data.advices == null
|
|
1605
|
+ // ? []
|
|
1606
|
+ // : response.data.data.advices;
|
1606
|
1607
|
|
1607
|
|
- for (let index = 0; index < this.doctor_advices.length; index++) {
|
1608
|
|
- this.doctor_advices[index]["isShow"] = 2;
|
1609
|
|
- }
|
|
1608
|
+ // for (let index = 0; index < this.doctor_advices.length; index++) {
|
|
1609
|
+ // this.doctor_advices[index]["isShow"] = 2;
|
|
1610
|
+ // }
|
1610
|
1611
|
|
1611
|
|
- if (this.doctor_advices.length > 0) {
|
1612
|
|
- var group = this.newAdviceGroupObject();
|
1613
|
|
- var initGroupBlock = function (group, advice) {
|
1614
|
|
- group.group_no = advice.groupno;
|
1615
|
|
- };
|
1616
|
|
- for (
|
1617
|
|
- let index = this.doctor_advices.length - 1;
|
1618
|
|
- index >= 0;
|
1619
|
|
- index--
|
1620
|
|
- ) {
|
1621
|
|
- var new_advice_index = 0;
|
1622
|
|
-
|
1623
|
|
- if (
|
1624
|
|
- "children" in this.doctor_advices[index] &&
|
1625
|
|
- this.doctor_advices[index].children.length > 0
|
1626
|
|
- ) {
|
1627
|
|
- new_advice_index =
|
1628
|
|
- index + this.doctor_advices[index].children.length + 1;
|
1629
|
|
-
|
1630
|
|
- var doctor_advice = {
|
1631
|
|
- delivery_way: this.doctor_advices[index].delivery_way,
|
1632
|
|
- execution_frequency:
|
1633
|
|
- this.doctor_advices[index].execution_frequency,
|
1634
|
|
- groupno: this.doctor_advices[index].groupno,
|
1635
|
|
- id: this.doctor_advices[index].id,
|
1636
|
|
- parent_id: this.doctor_advices[index].parent_id,
|
1637
|
|
- children: this.doctor_advices[index].children,
|
1638
|
|
- remark: this.doctor_advices[index].remark,
|
1639
|
|
- };
|
1640
|
|
- doctor_advice["isShow"] = 1;
|
1641
|
|
- this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
|
1642
|
|
- // this.doctor_advices.push(doctor_advice)
|
1643
|
|
- }
|
1644
|
|
- }
|
|
1612
|
+ // if (this.doctor_advices.length > 0) {
|
|
1613
|
+ // var group = this.newAdviceGroupObject();
|
|
1614
|
+ // var initGroupBlock = function (group, advice) {
|
|
1615
|
+ // group.group_no = advice.groupno;
|
|
1616
|
+ // };
|
|
1617
|
+ // for (
|
|
1618
|
+ // let index = this.doctor_advices.length - 1;
|
|
1619
|
+ // index >= 0;
|
|
1620
|
+ // index--
|
|
1621
|
+ // ) {
|
|
1622
|
+ // var new_advice_index = 0;
|
|
1623
|
+
|
|
1624
|
+ // if (
|
|
1625
|
+ // "children" in this.doctor_advices[index] &&
|
|
1626
|
+ // this.doctor_advices[index].children.length > 0
|
|
1627
|
+ // ) {
|
|
1628
|
+ // new_advice_index =
|
|
1629
|
+ // index + this.doctor_advices[index].children.length + 1;
|
|
1630
|
+
|
|
1631
|
+ // var doctor_advice = {
|
|
1632
|
+ // delivery_way: this.doctor_advices[index].delivery_way,
|
|
1633
|
+ // execution_frequency:
|
|
1634
|
+ // this.doctor_advices[index].execution_frequency,
|
|
1635
|
+ // groupno: this.doctor_advices[index].groupno,
|
|
1636
|
+ // id: this.doctor_advices[index].id,
|
|
1637
|
+ // parent_id: this.doctor_advices[index].parent_id,
|
|
1638
|
+ // children: this.doctor_advices[index].children,
|
|
1639
|
+ // remark: this.doctor_advices[index].remark,
|
|
1640
|
+ // };
|
|
1641
|
+ // doctor_advice["isShow"] = 1;
|
|
1642
|
+ // this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
|
|
1643
|
+ // // this.doctor_advices.push(doctor_advice)
|
|
1644
|
+ // }
|
|
1645
|
+ // }
|
1645
|
1646
|
|
1646
|
|
- for (let index = 0; index < this.doctor_advices.length; index++) {
|
1647
|
|
- const advice = this.doctor_advices[index];
|
1648
|
|
- if (advice.groupno == 0) {
|
1649
|
|
- // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
|
1650
|
|
- if (advice.parent_id > 0) {
|
1651
|
|
- if (this.advice_groups.length > 0) {
|
1652
|
|
- var parent_group =
|
1653
|
|
- this.advice_groups[this.advice_groups.length - 1];
|
1654
|
|
- if (parent_group.advices.length > 0) {
|
1655
|
|
- if (parent_group.advices[0].id == advice.parent_id) {
|
1656
|
|
- parent_group.advices.push(advice);
|
1657
|
|
- }
|
1658
|
|
- }
|
1659
|
|
- }
|
1660
|
|
- continue;
|
1661
|
|
- } else {
|
1662
|
|
- if (group.group_no > 0) {
|
1663
|
|
- this.advice_groups.push(group);
|
1664
|
|
- group = this.newAdviceGroupObject();
|
1665
|
|
- }
|
1666
|
|
-
|
1667
|
|
- initGroupBlock(group, advice);
|
1668
|
|
- group.advices.push(advice);
|
1669
|
|
- this.advice_groups.push(group);
|
1670
|
|
- group = this.newAdviceGroupObject();
|
1671
|
|
- continue;
|
1672
|
|
- }
|
1673
|
|
- }
|
1674
|
|
-
|
1675
|
|
- if (group.group_no > 0 && group.group_no != advice.groupno) {
|
1676
|
|
- this.advice_groups.push(group);
|
1677
|
|
- group = this.newAdviceGroupObject();
|
1678
|
|
- }
|
1679
|
|
- if (group.group_no == 0) {
|
1680
|
|
- initGroupBlock(group, advice);
|
1681
|
|
- }
|
1682
|
|
- if (group.group_no == advice.groupno) {
|
1683
|
|
- group.advices.push(advice);
|
1684
|
|
- }
|
1685
|
|
- }
|
1686
|
|
- if (group.group_no > 0) {
|
1687
|
|
- // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
|
1688
|
|
- this.advice_groups.push(group);
|
1689
|
|
- }
|
1690
|
|
- }
|
|
1647
|
+ // for (let index = 0; index < this.doctor_advices.length; index++) {
|
|
1648
|
+ // const advice = this.doctor_advices[index];
|
|
1649
|
+ // if (advice.groupno == 0) {
|
|
1650
|
+ // // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
|
|
1651
|
+ // if (advice.parent_id > 0) {
|
|
1652
|
+ // if (this.advice_groups.length > 0) {
|
|
1653
|
+ // var parent_group =
|
|
1654
|
+ // this.advice_groups[this.advice_groups.length - 1];
|
|
1655
|
+ // if (parent_group.advices.length > 0) {
|
|
1656
|
+ // if (parent_group.advices[0].id == advice.parent_id) {
|
|
1657
|
+ // parent_group.advices.push(advice);
|
|
1658
|
+ // }
|
|
1659
|
+ // }
|
|
1660
|
+ // }
|
|
1661
|
+ // continue;
|
|
1662
|
+ // } else {
|
|
1663
|
+ // if (group.group_no > 0) {
|
|
1664
|
+ // this.advice_groups.push(group);
|
|
1665
|
+ // group = this.newAdviceGroupObject();
|
|
1666
|
+ // }
|
|
1667
|
+
|
|
1668
|
+ // initGroupBlock(group, advice);
|
|
1669
|
+ // group.advices.push(advice);
|
|
1670
|
+ // this.advice_groups.push(group);
|
|
1671
|
+ // group = this.newAdviceGroupObject();
|
|
1672
|
+ // continue;
|
|
1673
|
+ // }
|
|
1674
|
+ // }
|
|
1675
|
+
|
|
1676
|
+ // if (group.group_no > 0 && group.group_no != advice.groupno) {
|
|
1677
|
+ // this.advice_groups.push(group);
|
|
1678
|
+ // group = this.newAdviceGroupObject();
|
|
1679
|
+ // }
|
|
1680
|
+ // if (group.group_no == 0) {
|
|
1681
|
+ // initGroupBlock(group, advice);
|
|
1682
|
+ // }
|
|
1683
|
+ // if (group.group_no == advice.groupno) {
|
|
1684
|
+ // group.advices.push(advice);
|
|
1685
|
+ // }
|
|
1686
|
+ // }
|
|
1687
|
+ // if (group.group_no > 0) {
|
|
1688
|
+ // // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
|
|
1689
|
+ // this.advice_groups.push(group);
|
|
1690
|
+ // }
|
|
1691
|
+ // }
|
1691
|
1692
|
console.log(this.advice_groups);
|
1692
|
1693
|
} else {
|
1693
|
1694
|
this.loading = false;
|