huangyw 3 år sedan
förälder
incheckning
7d6eeb78ea

+ 26 - 26
src/xt_pages/outpatientDoctorStation/batch_print_checkTemplate/printOne.vue Visa fil

@@ -78,7 +78,7 @@
78 78
               >
79 79
                 {{ item.team.project_team }}
80 80
               </div>
81
-              <!-- <div v-for="item in getSingleTeam(i.prescriptions)" style="margin-bottom:10px;">{{ item.project.project_name }}</div> -->
81
+              <div v-for="item in getSingleTeam(i.prescriptions)" style="margin-bottom:10px;">{{ item.project.project_name }}</div>
82 82
             </div>
83 83
           </div>
84 84
           <div
@@ -165,7 +165,7 @@ export default {
165 165
     },
166 166
 
167 167
     getTeam(prescriptions) {
168
-      console.log(prescriptions, "prescriptions");
168
+      // console.log(prescriptions, "prescriptions");
169 169
       let projectPrint = [];
170 170
       let total = 0;
171 171
       prescriptions.map((item) => {
@@ -195,30 +195,30 @@ export default {
195 195
       return data;
196 196
     },
197 197
 
198
-    //  getSingleTeam(prescriptions){
199
-    //     let projectPrint = []
200
-    //     let total = 0
201
-    //     prescriptions.map(item => {
202
-    //       if(item.project.length > 0){
203
-    //           item.project.map(it => {
204
-    //                 if(it.type == 2){
205
-    //                     if(it.project.cost_classify == 3){
206
-    //                         projectPrint.push(it)
207
-    //                         total += (it.project.price*parseInt(it.count))
208
-    //                     }
209
-    //                 }
210
-    //           })
211
-    //       }
212
-    //     })
213
-    //     let data = []
214
-    //     projectPrint.map(item => {
215
-    //       if(item.team.id == 0){
216
-    //             data.push(item)
217
-    //           }
218
-    //     })
219
-    //     this.total = total.toFixed(2)
220
-    //     return data
221
-    //  },
198
+     getSingleTeam(prescriptions){
199
+        let projectPrint = []
200
+        let total = 0
201
+        prescriptions.map(item => {
202
+          if(item.project.length > 0){
203
+              item.project.map(it => {
204
+                    if(it.type == 2){
205
+                        if(it.project.cost_classify == 3){
206
+                            projectPrint.push(it)
207
+                            total += (it.project.price*parseInt(it.count))
208
+                        }
209
+                    }
210
+              })
211
+          }
212
+        })
213
+        let data = []
214
+        projectPrint.map(item => {
215
+          if(item.team.id == 0){
216
+                data.push(item)
217
+              }
218
+        })
219
+        this.total = total.toFixed(2)
220
+        return data
221
+     },
222 222
 
223 223
     getInitData() {
224 224
       getInitData().then((response) => {

+ 2 - 2
src/xt_pages/outpatientDoctorStation/batch_print_treatTemplate/printOne.vue Visa fil

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
     <div id='prescriptionPrint'>
3
-      <div v-for="(i,index) in printData" :key="index">
4
-        <div id='prescription-print' class="prescription-print" style="page-break-after: always;" v-for="(item,index) in i.prescriptions" :key="index">
3
+      <div v-for="(i,index) in printData">
4
+        <div id='prescription-print' class="prescription-print" v-for="(item,index) in i.prescriptions" :key="index">
5 5
 
6 6
             <div style="display:flex;justify-content: space-between;font-weight:bold;align-items:center;">
7 7
                 <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">

+ 1 - 5
src/xt_pages/outpatientDoctorStation/pastInquiries.vue Visa fil

@@ -171,7 +171,7 @@
171 171
           ></treatPrint>
172 172
           <checkPrint
173 173
             ref="checkPrint"
174
-            v-show="printType == 3"
174
+            v-if="printType == 3"
175 175
             :printData="printData"
176 176
           ></checkPrint>
177 177
         </div>
@@ -330,7 +330,6 @@ export default {
330 330
           }
331 331
         }
332 332
       }
333
-
334 333
       return name;
335 334
     },
336 335
     handleSelectionChange(val) {
@@ -355,13 +354,10 @@ export default {
355 354
         getBatchPrint(params).then((res) => {
356 355
           let printData = res.data.data.patients;
357 356
           this.printData = printData;
358
-
359 357
           console.log("res", printData);
360 358
         });
361 359
       }
362 360
       this.innerVisible = true;
363
-    //  this.$refs.checkPrint.getTeam_1();
364
-      
365 361
     },
366 362
   },
367 363
   created() {