Browse Source

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

28169 1 week ago
parent
commit
858d345fdc

+ 84 - 6
src/xt_pages/outpatientCharges/batchStatementPrint.vue View File

134
           const style12 =
134
           const style12 =
135
             "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 89%;}}}";
135
             "@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 89%;}}}";
136
 
136
 
137
+          // if (this.num >= 13) {
137
             printJS({
138
             printJS({
138
-              printable: "prescription-print",
139
-              type: "html",
140
-              style: style,
141
-              scanStyles: false,
142
-            });
143
-
139
+              printable: 'prescription-print',
140
+              type: 'html',
141
+              style: style9,
142
+              scanStyles: false
143
+            })
144
+          // } else if (this.num == 12) {
145
+          //   printJS({
146
+          //     printable: 'prescription-print',
147
+          //     type: 'html',
148
+          //     style: style2,
149
+          //     scanStyles: false
150
+          //   })
151
+          // } else if (this.num == 11) {
152
+          //   printJS({
153
+          //     printable: 'prescription-print',
154
+          //     type: 'html',
155
+          //     style: style3,
156
+          //     scanStyles: false
157
+          //   })
158
+          // } else if (this.num == 10) {
159
+          //   printJS({
160
+          //     printable: 'prescription-print',
161
+          //     type: 'html',
162
+          //     style: style4,
163
+          //     scanStyles: false
164
+          //   })
165
+          // } else if (this.num == 9) {
166
+          //   printJS({
167
+          //     printable: 'prescription-print',
168
+          //     type: 'html',
169
+          //     style: style5,
170
+          //     scanStyles: false
171
+          //   })
172
+          // } else if (this.num == 8) {
173
+          //   printJS({
174
+          //     printable: 'prescription-print',
175
+          //     type: 'html',
176
+          //     style: style6,
177
+          //     scanStyles: false
178
+          //   })
179
+          // } else if (this.num == 7) {
180
+          //   printJS({
181
+          //     printable: 'prescription-print',
182
+          //     type: 'html',
183
+          //     style: style7,
184
+          //     scanStyles: false
185
+          //   })
186
+          // } else if (this.num == 6) {
187
+          //   printJS({
188
+          //     printable: 'prescription-print',
189
+          //     type: 'html',
190
+          //     style: style8,
191
+          //     scanStyles: false
192
+          //   })
193
+          // } else if (this.num == 5) {
194
+          //   printJS({
195
+          //     printable: 'prescription-print',
196
+          //     type: 'html',
197
+          //     style: style9,
198
+          //     scanStyles: false
199
+          //   })
200
+          // } else if (this.num == 4) {
201
+          //   printJS({
202
+          //     printable: 'prescription-print',
203
+          //     type: 'html',
204
+          //     style: style10,
205
+          //     scanStyles: false
206
+          //   })
207
+          // } else if (this.num == 3) {
208
+          //   printJS({
209
+          //     printable: 'prescription-print',
210
+          //     type: 'html',
211
+          //     style: style11,
212
+          //     scanStyles: false
213
+          //   })
214
+          // } else if (this.num <= 2) {
215
+          //   printJS({
216
+          //     printable: 'prescription-print',
217
+          //     type: 'html',
218
+          //     style: style12,
219
+          //     scanStyles: false
220
+          //   })
221
+          // }
144
 
222
 
145
         }, 500);
223
         }, 500);
146
       } else if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
224
       } else if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {

+ 1 - 1
src/xt_pages/outpatientCharges/statementTemplate/batchPrint.vue View File

2
   <div>
2
   <div>
3
     <div id='prescription-print'>
3
     <div id='prescription-print'>
4
         <div  class="prescription-print"
4
         <div  class="prescription-print"
5
-            style="position: relative;  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; page-break-after:always"
5
+            style="position: relative;   page-break-after:always"
6
             v-for="(infos,index) in info" :key="index">
6
             v-for="(infos,index) in info" :key="index">
7
           <img style="width:100%;height:80px"
7
           <img style="width:100%;height:80px"
8
             v-if="$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 10342 || $store.getters.xt_user.org_id == 10341"
8
             v-if="$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 10342 || $store.getters.xt_user.org_id == 10341"

+ 6 - 8
src/xt_pages/outpatientDoctorStation/batch_print_template/batchPrintThree.vue View File

91
 
91
 
92
           <div class="infoTitle">
92
           <div class="infoTitle">
93
             <div>
93
             <div>
94
-              姓名:{{
95
-                i.name
96
-                  ? i.name.indexOf("(") > -1
97
-                  ?i.name.substring(
98
-                    0,
99
-                    i.name.indexOf("(")
100
-                  )
94
+              姓名:
95
+              {{ i.name ? i.name.indexOf("(") > -1
96
+                 ?i.name.substring(0, i.name.indexOf("("))
101
                   : i.name
97
                   : i.name
102
                   : ""
98
                   : ""
103
               }}
99
               }}
197
           <div style="display: flex">
193
           <div style="display: flex">
198
             <div>
194
             <div>
199
               医&nbsp;&nbsp;&nbsp;&nbsp;师:
195
               医&nbsp;&nbsp;&nbsp;&nbsp;师:
196
+              
200
               <span
197
               <span
201
                 style="width: 100px; display: inline-block"
198
                 style="width: 100px; display: inline-block"
202
                 v-if="setAdminUserES(i.info.creator)==''"
199
                 v-if="setAdminUserES(i.info.creator)==''"
320
     // 电子签名
317
     // 电子签名
321
     setAdminUserES(id) {
318
     setAdminUserES(id) {
322
       console.log(id)
319
       console.log(id)
323
-      console.log(this.operatorMaps)
320
+      console.log('this.operatorMaps',this.operatorMaps)
324
 
321
 
325
       if (id == 0) {
322
       if (id == 0) {
326
         return "";
323
         return "";
327
       }
324
       }
328
       if (id in this.operatorMaps) {
325
       if (id in this.operatorMaps) {
326
+        console.log('this.operatorMaps[id].url',this.operatorMaps[id].url);
329
         return this.operatorMaps[id].url;
327
         return this.operatorMaps[id].url;
330
       } else {
328
       } else {
331
         return "";
329
         return "";

+ 1 - 1
src/xt_pages/outpatientDoctorStation/batch_print_treatTemplate/treatBatchPrint.vue View File

186
           医&nbsp;&nbsp;&nbsp;&nbsp;师:
186
           医&nbsp;&nbsp;&nbsp;&nbsp;师:
187
           <span
187
           <span
188
             style="width: 100px; display: inline-block"
188
             style="width: 100px; display: inline-block"
189
-            v-if="i.info.creator == 0"
189
+            v-if="setAdminUserES(item.creator) == ''"
190
           >
190
           >
191
             {{ i.info.doctor ? i.info.doctor : "" }}
191
             {{ i.info.doctor ? i.info.doctor : "" }}
192
 
192