huangyw 2 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,7 +13,15 @@
13 13
 
14 14
     <div class="dialysisPage" style="padding-top: 40px">
15 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 25
         ref="printOne"
18 26
         v-bind:childResponse="childResponse"
19 27
         :patient="patient"
@@ -23,7 +31,11 @@
23 31
       ></printOne>
24 32
       <printTwo
25 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 40
         ref="printTwo"
29 41
         v-bind:childResponse="childResponse"
@@ -32,6 +44,16 @@
32 44
         :history="history"
33 45
         :patientid="patientid"
34 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 57
     </div>
36 58
   </div>
37 59
 </template>
@@ -46,12 +68,14 @@ import { getSchedulePatientList } from "@/api/his/his";
46 68
 import { getPatientCaseHistory } from "@/api/project/project";
47 69
 import printOne from "./recordTemplate/printOne";
48 70
 import printTwo from "./recordTemplate/printTwo";
71
+import printThree from "./recordTemplate/printThree";
49 72
 export default {
50 73
   name: "dialysisPrintOrder",
51 74
   components: {
52 75
     BreadCrumb,
53 76
     printOne,
54 77
     printTwo,
78
+    printThree,
55 79
   },
56 80
   props: {
57 81
     patientid: Number,
@@ -77,8 +101,10 @@ export default {
77 101
   methods: {
78 102
     show(val, id) {
79 103
       this.org_id = id;
80
-      if (id == 10217 || id == 9675 || id == 9671 || id == 0) {
104
+      if (id == 10217 || id == 9675 || id == 9671 ) {
81 105
         this.$refs.printTwo.show(val);
106
+      } else if (id == 10318|| id == 0) {
107
+        this.$refs.printThree.show(val);
82 108
       } else {
83 109
         this.$refs.printOne.show(val);
84 110
       }
@@ -113,8 +139,10 @@ export default {
113 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 140
       const style1 =
115 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 146
         printJS({
119 147
           printable: "prescription-print",
120 148
           type: "html",
@@ -123,7 +151,6 @@ export default {
123 151
         });
124 152
       } else if (
125 153
         this.org_id == 10217 ||
126
-        this.org_id == 0 ||
127 154
         this.org_id == 9675
128 155
       ) {
129 156
         printJS({
@@ -132,6 +159,14 @@ export default {
132 159
           style: style1,
133 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