huangyw 3 years ago
parent
commit
0b1fb943da
1 changed files with 40 additions and 5 deletions
  1. 40 5
      src/xt_pages/outpatientDoctorStation/recordPrint.vue

+ 40 - 5
src/xt_pages/outpatientDoctorStation/recordPrint.vue View File

13
 
13
 
14
     <div class="dialysisPage" style="padding-top: 40px">
14
     <div class="dialysisPage" style="padding-top: 40px">
15
       <printOne
15
       <printOne
16
-        v-if="org_id != 10217 && org_id != 9675 && org_id != 9671 && org_id != 0 &&org_id != 10164 && org_id == 10188"
16
+        v-if="
17
+          org_id != 10217 &&
18
+          org_id != 9675 &&
19
+          org_id != 9671 &&
20
+          org_id != 0 &&
21
+          org_id != 10164 &&
22
+          org_id == 10188 &&
23
+          org_id != 10318
24
+        "
17
         ref="printOne"
25
         ref="printOne"
18
         v-bind:childResponse="childResponse"
26
         v-bind:childResponse="childResponse"
19
         :patient="patient"
27
         :patient="patient"
23
       ></printOne>
31
       ></printOne>
24
       <printTwo
32
       <printTwo
25
         v-if="
33
         v-if="
26
-          org_id == 10217 || org_id == 0 || org_id == 9675 || org_id == 9671 || org_id == 10164 ||org_id == 10188
34
+          org_id == 10217 ||
35
+          org_id == 9675 ||
36
+          org_id == 9671 ||
37
+          org_id == 10164 ||
38
+          org_id == 10188
27
         "
39
         "
28
         ref="printTwo"
40
         ref="printTwo"
29
         v-bind:childResponse="childResponse"
41
         v-bind:childResponse="childResponse"
32
         :history="history"
44
         :history="history"
33
         :patientid="patientid"
45
         :patientid="patientid"
34
       ></printTwo>
46
       ></printTwo>
47
+      <printThree
48
+        v-if="org_id == 10318 || org_id == 0"
49
+        ref="printThree"
50
+        v-bind:childResponse="childResponse"
51
+        :patient="patient"
52
+        :hispatient="hispatient"
53
+        :history="history"
54
+        :patientid="patientid"
55
+      >
56
+      </printThree>
35
     </div>
57
     </div>
36
   </div>
58
   </div>
37
 </template>
59
 </template>
46
 import { getPatientCaseHistory } from "@/api/project/project";
68
 import { getPatientCaseHistory } from "@/api/project/project";
47
 import printOne from "./recordTemplate/printOne";
69
 import printOne from "./recordTemplate/printOne";
48
 import printTwo from "./recordTemplate/printTwo";
70
 import printTwo from "./recordTemplate/printTwo";
71
+import printThree from "./recordTemplate/printThree";
49
 export default {
72
 export default {
50
   name: "dialysisPrintOrder",
73
   name: "dialysisPrintOrder",
51
   components: {
74
   components: {
52
     BreadCrumb,
75
     BreadCrumb,
53
     printOne,
76
     printOne,
54
     printTwo,
77
     printTwo,
78
+    printThree,
55
   },
79
   },
56
   props: {
80
   props: {
57
     patientid: Number,
81
     patientid: Number,
77
   methods: {
101
   methods: {
78
     show(val, id) {
102
     show(val, id) {
79
       this.org_id = id;
103
       this.org_id = id;
80
-      if (id == 10217 || id == 9675 || id == 9671 || id == 0) {
104
+      if (id == 10217 || id == 9675 || id == 9671 ) {
81
         this.$refs.printTwo.show(val);
105
         this.$refs.printTwo.show(val);
106
+      } else if (id == 10318|| id == 0) {
107
+        this.$refs.printThree.show(val);
82
       } else {
108
       } else {
83
         this.$refs.printOne.show(val);
109
         this.$refs.printOne.show(val);
84
       }
110
       }
113
         "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}";
139
         "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}";
114
       const style1 =
140
       const style1 =
115
         "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;} .infoTitle div{width: 200px;} .infoTitle .address_slot{width: 400px;} .infoTitle .name_slot{width: 250px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: fit-content;min-height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
141
         "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;} .infoTitle div{width: 200px;} .infoTitle .address_slot{width: 400px;} .infoTitle .name_slot{width: 250px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: fit-content;min-height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
142
+      const style2 =
143
+        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;padding-bottom: 10px;border-bottom: 1px solid;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;} .infoTitle div{width: 200px;} .infoTitle .address_slot{width: 400px;} .infoTitle .name_slot {width: 300px;display: flex;}.name_slot span {display: inline-block;min-width: 70px;border-bottom: 1px solid;} .infoTitle .name_slot_2 {width: 250px;display: flex;} .name_slot_2 .name_slot_1{  display: inline-block;min-width: 70px;border-bottom: 1px solid;} .infoTitle .full_slot {width: 100%;}.infoTitle .full_slot .id_card{border: 1px solid;display: inline-block;width: 18px;height: 18px;text-align: center;margin-right: 6px;} .address_slot_1 span {display: inline-block;min-width: 60px;border-bottom: 1px solid;} .otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: fit-content;min-height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
116
 
144
 
117
-      if (this.org_id != 10217 && this.org_id != 0 && this.org_id != 9675) {
145
+      if (this.org_id != 10217 && this.org_id != 0 && this.org_id != 9675 && this.org_id != 10318) {
118
         printJS({
146
         printJS({
119
           printable: "prescription-print",
147
           printable: "prescription-print",
120
           type: "html",
148
           type: "html",
123
         });
151
         });
124
       } else if (
152
       } else if (
125
         this.org_id == 10217 ||
153
         this.org_id == 10217 ||
126
-        this.org_id == 0 ||
127
         this.org_id == 9675
154
         this.org_id == 9675
128
       ) {
155
       ) {
129
         printJS({
156
         printJS({
132
           style: style1,
159
           style: style1,
133
           scanStyles: false,
160
           scanStyles: false,
134
         });
161
         });
162
+      }else if(this.org_id == 10318||this.org_id == 0 )
163
+      {
164
+        printJS({
165
+          printable: "prescription-print",
166
+          type: "html",
167
+          style: style2,
168
+          scanStyles: false,
169
+        });
135
       }
170
       }
136
     },
171
     },
137
 
172