Explorar el Código

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 hace 2 años
padre
commit
22a6f1650d

+ 49 - 11
src/xt_pages/outpatientDoctorStation/recordPrint.vue Ver fichero

18
           org_id != 9675 &&
18
           org_id != 9675 &&
19
           org_id != 9671 &&
19
           org_id != 9671 &&
20
           org_id != 0 &&
20
           org_id != 0 &&
21
-          org_id != 10164
21
+          org_id != 10164 && org_id != 10341 && org_id != 10342
22
         "
22
         "
23
         ref="printOne"
23
         ref="printOne"
24
         v-bind:childResponse="childResponse"
24
         v-bind:childResponse="childResponse"
46
       ></printTwo>
46
       ></printTwo>
47
       
47
       
48
       <printThree
48
       <printThree
49
-        v-if="org_id == 10318 || org_id == 0"
49
+        v-if="org_id == 10318 || org_id == 0 "
50
         ref="printThree"
50
         ref="printThree"
51
         v-bind:childResponse="childResponse"
51
         v-bind:childResponse="childResponse"
52
         :patient="patient"
52
         :patient="patient"
54
         :history="history"
54
         :history="history"
55
         :patientid="patientid"
55
         :patientid="patientid"
56
       >
56
       >
57
-      <!--  -->
57
+      <!-- || org_id == 0-->
58
       </printThree>
58
       </printThree>
59
-      <!-- <printFour
60
-        v-if="org_id == 10138 || org_id == 10278 || org_id == 0"
59
+      <printFour
60
+        v-if="org_id == 10138 || org_id == 10278 || org_id == 10341 || org_id == 10342 || org_id == 0"
61
         ref="printFour"
61
         ref="printFour"
62
         v-bind:childResponse="childResponse"
62
         v-bind:childResponse="childResponse"
63
         :patient="patient"
63
         :patient="patient"
65
         :history="history"
65
         :history="history"
66
         :patientid="patientid"
66
         :patientid="patientid"
67
       >
67
       >
68
-      </printFour> -->
68
+      </printFour>
69
     </div>
69
     </div>
70
   </div>
70
   </div>
71
 </template>
71
 </template>
117
       this.org_id = id;
117
       this.org_id = id;
118
       if (id == 10217 || id == 9675 || id == 9671|| id == 10188 ) {
118
       if (id == 10217 || id == 9675 || id == 9671|| id == 10188 ) {
119
         this.$refs.printTwo.show(val);
119
         this.$refs.printTwo.show(val);
120
-      } else if (id == 10318|| id == 0) {
120
+      } else if (id == 10138 || id == 10278 || id == 10341 || id == 10342 || id == 0) {
121
+        this.$refs.printFour.show(val);
122
+      }
123
+      else if (id == 10318 || id == 0) {
124
+        // || id == 0
121
         this.$refs.printThree.show(val);
125
         this.$refs.printThree.show(val);
122
       } else {
126
       } else {
123
         this.$refs.printOne.show(val);
127
         this.$refs.printOne.show(val);
158
       const style2 =
162
       const style2 =
159
         "@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;}}";
163
         "@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;}}";
160
 
164
 
161
-      if (this.org_id != 10217 && this.org_id != 0 && this.org_id != 9675 && this.org_id != 10318 &&this.org_id != 10188) {
165
+      if (this.org_id != 10217 && this.org_id != 0 && 
166
+          this.org_id != 9675 && this.org_id != 10318 && 
167
+          this.org_id != 10188 && this.org_id != 10138 && 
168
+          this.org_id != 10278 && this.org_id != 10341 && 
169
+          this.org_id != 10342) {
162
         printJS({
170
         printJS({
163
           printable: "prescription-print",
171
           printable: "prescription-print",
164
           type: "html",
172
           type: "html",
176
           style: style1,
184
           style: style1,
177
           scanStyles: false,
185
           scanStyles: false,
178
         });
186
         });
179
-      }else if(this.org_id == 10318||this.org_id == 0 )
187
+      }else if(this.org_id == 10318 ||this.org_id == 0 )
188
+      // ||this.org_id == 0
180
       {
189
       {
181
         printJS({
190
         printJS({
182
           printable: "prescription-print",
191
           printable: "prescription-print",
185
           scanStyles: false,
194
           scanStyles: false,
186
         });
195
         });
187
       }
196
       }
188
-      else if(this.org_id == 10138 || this.org_id == 10278 || this.org_id == 0){
197
+      else if(this.org_id == 10138 || this.org_id == 10278 || this.org_id == 10341 || this.org_id == 10342 || this.org_id == 0){
189
         printJS({
198
         printJS({
190
           printable: "prescription-print",
199
           printable: "prescription-print",
191
           type: "html",
200
           type: "html",
194
         });
203
         });
195
       
204
       
196
       }
205
       }
197
-      // if(this.org_id == 10138 || this.org_id == 10278 || this.org_id == 0){
206
+
207
+      // if(this.org_id == 10138 || this.org_id == 10278 || this.org_id == 10341 || this.org_id == 10342 || this.org_id == 0){
208
+      //   printJS({
209
+      //     printable: "prescription-print",
210
+      //     type: "html",
211
+      //     style: style,
212
+      //     scanStyles: false,
213
+      //   });
214
+      // }else if (
215
+      //   this.org_id == 10217 ||
216
+      //   this.org_id == 9675 ||
217
+      //   this.org_id == 10188
218
+      // ) {
219
+      //   printJS({
220
+      //     printable: "prescription-print",
221
+      //     type: "html",
222
+      //     style: style1,
223
+      //     scanStyles: false,
224
+      //   });
225
+      // }else if(this.org_id == 10318 ||this.org_id == 0 )
226
+      // // ||this.org_id == 0
227
+      // {
228
+      //   printJS({
229
+      //     printable: "prescription-print",
230
+      //     type: "html",
231
+      //     style: style2,
232
+      //     scanStyles: false,
233
+      //   });
234
+      // }
235
+      // else{
198
       //   printJS({
236
       //   printJS({
199
       //     printable: "prescription-print",
237
       //     printable: "prescription-print",
200
       //     type: "html",
238
       //     type: "html",

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordTemplate/printFour.vue Ver fichero

1
 <template>
1
 <template>
2
     <div id='prescription-print'>
2
     <div id='prescription-print'>
3
-        <div class="prescription-print" style="box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;">
3
+        <div class="prescription-print" style="box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; padding: 10px;">
4
             <div class="printTitle" style="border: none;">{{orgname}} &nbsp;&nbsp; 门诊病历</div>
4
             <div class="printTitle" style="border: none;">{{orgname}} &nbsp;&nbsp; 门诊病历</div>
5
             <div class="infoTitle">
5
             <div class="infoTitle">
6
                 <div>姓名:{{patient.name?patient.name:''}}</div>
6
                 <div>姓名:{{patient.name?patient.name:''}}</div>