see999 3 years ago
parent
commit
e616bb3935
1 changed files with 12 additions and 13 deletions
  1. 12 13
      src/xt_pages/outpatientCharges/newStatementPrintTwo.vue

+ 12 - 13
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue View File

330
 
330
 
331
                     that.info['org_name'] = that.$store.getters.xt_user.org.org_name;
331
                     that.info['org_name'] = that.$store.getters.xt_user.org.org_name;
332
                     console.log("~~~~" + that.info);
332
                     console.log("~~~~" + that.info);
333
-                    let newTotal = 0
334
-                    for (var i = that.info.transBody.outputlist2.length - 1; i >= 0; i--) {
335
-                      if(that.info.transBody.outputlist2[i].aka111 == '07') {
336
-                        that.info.transBody.outputlist2.splice(i, 1);
337
-                        newTotal += that.info.transBody.outputlist2[i].bka058
338
-                      }
339
-                      if(that.info.transBody.outputlist2[i].aka111 == '19'){
340
-                        that.info.transBody.outputlist2.splice(i, 1);
341
-                        newTotal += that.info.transBody.outputlist2[i].bka058
342
-                      }
343
-                    }
344
-                    that.info.transBody.outputlist2.push({aka111:'99',bka058:newTotal})
345
 
333
 
346
                     var name_arr = [];
334
                     var name_arr = [];
347
                     var spec_arr = [];
335
                     var spec_arr = [];
402
                     })
390
                     })
403
                     that.num = num
391
                     that.num = num
404
                     console.log('this.num222',that.num)
392
                     console.log('this.num222',that.num)
405
-                    
393
+                    // let newTotal = 0
394
+                    // for (var i = that.info.transBody.outputlist2.length - 1; i >= 0; i--) {
395
+                    //   if(that.info.transBody.outputlist2[i].aka111 == '07') {
396
+                    //     that.info.transBody.outputlist2.splice(i, 1);
397
+                    //     newTotal += that.info.transBody.outputlist2[i].bka058
398
+                    //   }
399
+                    //   if(that.info.transBody.outputlist2[i].aka111 == '19'){
400
+                    //     that.info.transBody.outputlist2.splice(i, 1);
401
+                    //     newTotal += that.info.transBody.outputlist2[i].bka058
402
+                    //   }
403
+                    // }
404
+                    // that.info.transBody.outputlist2.push({aka111:'99',bka058:newTotal})
406
                   }
405
                   }
407
                 }
406
                 }
408
               })
407
               })