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

+ 3 - 3
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue View File

391
                     that.num = num
391
                     that.num = num
392
                     let newTotal = 0
392
                     let newTotal = 0
393
                     for (var i = that.info.transBody.outputlist2.length - 1; i >= 0; i--) {
393
                     for (var i = that.info.transBody.outputlist2.length - 1; i >= 0; i--) {
394
-                      if(that.info.transBody.outputlist2[i].aka111.indexOf('07') > -1) {
394
+                      if(that.info.transBody.outputlist2[i].aka111 == '07') {
395
                         console.log('0707007')
395
                         console.log('0707007')
396
-                        that.info.transBody.outputlist2.splice(i, 1);
397
                         newTotal += that.info.transBody.outputlist2[i].bka058
396
                         newTotal += that.info.transBody.outputlist2[i].bka058
397
+                        that.info.transBody.outputlist2.splice(i, 1);
398
                       }
398
                       }
399
                       if(that.info.transBody.outputlist2[i].aka111 == '19'){
399
                       if(that.info.transBody.outputlist2[i].aka111 == '19'){
400
                         console.log('191919')
400
                         console.log('191919')
401
-                        that.info.transBody.outputlist2.splice(i, 1);
402
                         newTotal += that.info.transBody.outputlist2[i].bka058
401
                         newTotal += that.info.transBody.outputlist2[i].bka058
402
+                        that.info.transBody.outputlist2.splice(i, 1);
403
                       }
403
                       }
404
                     }
404
                     }
405
                     console.log(1111111111111)
405
                     console.log(1111111111111)