yq1 1 year ago
parent
commit
193308835b
1 changed files with 13 additions and 5 deletions
  1. 13 5
      src/xt_pages/outpatientCharges/invoiceTemplate/printtwelve.vue

+ 13 - 5
src/xt_pages/outpatientCharges/invoiceTemplate/printtwelve.vue View File

@@ -190,10 +190,14 @@ export default {
190 190
       org_name:'',
191 191
       pageArr:[],
192 192
       Arr:[],
193
+      // pageArrs:['西药费','化验费','治疗费','处置费',,'输氧费','其他']
194
+      // pageArrs:['西药费','化验费','治疗费','处置费','中成药','诊疗费','材料费',
195
+      //         '护理费','注射费','检查费'],
193 196
     }
194 197
   },
195 198
   created(){
196 199
     console.log('paramsObj',this.paramsObj)
200
+    // console.log('vvvv',this.group(this.pageArrs,3));
197 201
     let params = {
198 202
       order_id: this.paramsObj.order_id,
199 203
       patient_id: this.paramsObj.patient_id,
@@ -317,11 +321,15 @@ export default {
317 321
           }
318 322
           this.pageArr.push(obj)
319 323
         }
320
-
321
-        this.Arr = this.group(this.pageArr,Math.ceil(this.pageArr.length/4))
322
-        console.log(this.Arr)
323
-
324
-
324
+       
325
+          // var num=''
326
+          // if(this.pageArr.length<=3){
327
+          //   num=1
328
+          // }
329
+        // // }
330
+        // console.log('2222',this.pageArr,Math.ceil(this.pageArr.length/3));
331
+        this.Arr = this.group(this.pageArr,3)
332
+        console.log('3333',this.Arr)
325 333
 
326 334
       })
327 335
     },