see999 3 jaren geleden
bovenliggende
commit
96dc7e9b40
1 gewijzigde bestanden met toevoegingen van 25 en 23 verwijderingen
  1. 25 23
      src/xt_pages/outpatientCharges/newStatementPrintTwo.vue

+ 25 - 23
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Bestand weergeven

@@ -389,32 +389,34 @@
389 389
                       }
390 390
                     })
391 391
                     that.num = num
392
-                    let newTotal = 0
393
-                    for (var i = that.info.transBody.outputlist2.length - 1; i >= 0; i--) {
394
-                      if(that.info.transBody.outputlist2[i].aka111 == '07') {
395
-                        console.log('0707007')
396
-                        newTotal += that.info.transBody.outputlist2[i].bka058
392
+                    if(this.org_id == 10138){
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
+                          newTotal += that.info.transBody.outputlist2[i].bka058
398
+                        }
399
+                        if(that.info.transBody.outputlist2[i].aka111 == '19'){
400
+                          console.log('191919')
401
+                          newTotal += that.info.transBody.outputlist2[i].bka058
402
+                        }
403
+                        console.log(8888888,that.info.transBody.outputlist2)
397 404
                       }
398
-                      if(that.info.transBody.outputlist2[i].aka111 == '19'){
399
-                        console.log('191919')
400
-                        newTotal += that.info.transBody.outputlist2[i].bka058
405
+                      console.log(1111111111111)
406
+                      let aka111obj = {
407
+                        aka111:'99',
408
+                        bka058:newTotal
401 409
                       }
402
-                      console.log(8888888,that.info.transBody.outputlist2)
403
-                    }
404
-                    console.log(1111111111111)
405
-                    let aka111obj = {
406
-                      aka111:'99',
407
-                      bka058:newTotal
410
+                      console.log('aka111obj',aka111obj)
411
+                      let newOutputlist2 = []
412
+                      newOutputlist2.push(aka111obj)
413
+                      that.info.transBody.outputlist2.map(item => {
414
+                        if(item.aka111 != '07' && item.aka111 != '19'){
415
+                          newOutputlist2.push(item)
416
+                        }
417
+                      })
418
+                      that.info.transBody.outputlist2 = newOutputlist2
408 419
                     }
409
-                    console.log('aka111obj',aka111obj)
410
-                    let newOutputlist2 = []
411
-                    newOutputlist2.push(aka111obj)
412
-                    that.info.transBody.outputlist2.map(item => {
413
-                      if(item.aka111 != '07' && item.aka111 != '19'){
414
-                        newOutputlist2.push(item)
415
-                      }
416
-                    })
417
-                    that.info.transBody.outputlist2 = newOutputlist2
418 420
                     console.log('that.info.transBody.outputlist2',that.info.transBody.outputlist2)
419 421
                     console.log('this.num222',that.num)
420 422