see999 vor 3 Jahren
Ursprung
Commit
a661e79e9a
1 geänderte Dateien mit 8 neuen und 3 gelöschten Zeilen
  1. 8 3
      src/xt_pages/outpatientCharges/newStatementPrintTwo.vue

+ 8 - 3
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Datei anzeigen

@@ -392,7 +392,7 @@
392 392
                     console.log('this.num222',that.num)
393 393
                     let newTotal = 0
394 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 396
                         console.log('0707007')
397 397
                         that.info.transBody.outputlist2.splice(i, 1);
398 398
                         newTotal += that.info.transBody.outputlist2[i].bka058
@@ -403,8 +403,13 @@
403 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
               })