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

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

392
                     console.log('this.num222',that.num)
392
                     console.log('this.num222',that.num)
393
                     let newTotal = 0
393
                     let newTotal = 0
394
                     for (var i = that.info.transBody.outputlist2.length - 1; i >= 0; i--) {
394
                     for (var i = that.info.transBody.outputlist2.length - 1; i >= 0; i--) {
395
-                      if(that.info.transBody.outputlist2[i].aka111 == '07') {
395
+                      if(that.info.transBody.outputlist2[i].aka111.indexOf('07') > -1) {
396
                         console.log('0707007')
396
                         console.log('0707007')
397
                         that.info.transBody.outputlist2.splice(i, 1);
397
                         that.info.transBody.outputlist2.splice(i, 1);
398
                         newTotal += that.info.transBody.outputlist2[i].bka058
398
                         newTotal += that.info.transBody.outputlist2[i].bka058
403
                         newTotal += that.info.transBody.outputlist2[i].bka058
403
                         newTotal += that.info.transBody.outputlist2[i].bka058
404
                       }
404
                       }
405
                     }
405
                     }
406
-                    that.info.transBody.outputlist2.push({aka111:'99',bka058:newTotal})
407
-                    console.log('that.info.transBody.outputlist2.',that.info.transBody.outputlist2)
406
+                    let aka111obj = {
407
+                      aka111:'99',
408
+                      bka058:newTotal
409
+                    }
410
+                    console.log('aka111obj',aka111obj)
411
+                    that.info.transBody.outputlist2.push(aka111obj)
412
+                    console.log('that.info.transBody.outputlist2',that.info.transBody.outputlist2)
408
                   }
413
                   }
409
                 }
414
                 }
410
               })
415
               })