ソースを参照

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

28169 1 週間 前
コミット
858d345fdc

+ 84 - 6
src/xt_pages/outpatientCharges/batchStatementPrint.vue ファイルの表示

@@ -134,13 +134,91 @@ export default {
134 134
           const style12 =
135 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 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 223
         }, 500);
146 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 ファイルの表示

@@ -2,7 +2,7 @@
2 2
   <div>
3 3
     <div id='prescription-print'>
4 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 6
             v-for="(infos,index) in info" :key="index">
7 7
           <img style="width:100%;height:80px"
8 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 ファイルの表示

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

+ 1 - 1
src/xt_pages/outpatientDoctorStation/batch_print_treatTemplate/treatBatchPrint.vue ファイルの表示

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