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

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

390
                     })
390
                     })
391
                     that.num = num
391
                     that.num = num
392
                     console.log('this.num222',that.num)
392
                     console.log('this.num222',that.num)
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})
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
+                        console.log('0707007')
397
+                        that.info.transBody.outputlist2.splice(i, 1);
398
+                        newTotal += that.info.transBody.outputlist2[i].bka058
399
+                      }
400
+                      if(that.info.transBody.outputlist2[i].aka111 == '19'){
401
+                        console.log('191919')
402
+                        that.info.transBody.outputlist2.splice(i, 1);
403
+                        newTotal += that.info.transBody.outputlist2[i].bka058
404
+                      }
405
+                    }
406
+                    that.info.transBody.outputlist2.push({aka111:'99',bka058:newTotal})
407
+                    console.log('that.info.transBody.outputlist2.',that.info.transBody.outputlist2)
405
                   }
408
                   }
406
                 }
409
                 }
407
               })
410
               })