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

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

@@ -390,28 +390,25 @@
390 390
                     })
391 391
                     that.num = num
392 392
                     let newTotal = 0
393
-                    let newOutputlist2 = [...that.info.transBody.outputlist2]
394
-                    for (var i = newOutputlist2.length - 1; i >= 0; i--) {
395
-                      if(newOutputlist2[i].aka111.indexOf('07') > -1) {
393
+                    for (var i = that.info.transBody.outputlist2.length - 1; i >= 0; i--) {
394
+                      if(that.info.transBody.outputlist2[i].aka111.indexOf('07') > -1) {
396 395
                         console.log('0707007')
397
-                        newOutputlist2.splice(i, 1);
398
-                        newTotal += newOutputlist2[i].bka058
396
+                        that.info.transBody.outputlist2.splice(i, 1);
397
+                        newTotal += that.info.transBody.outputlist2[i].bka058
399 398
                       }
400
-                      if(newOutputlist2[i].aka111 == '19'){
399
+                      if(that.info.transBody.outputlist2[i].aka111 == '19'){
401 400
                         console.log('191919')
402
-                        newOutputlist2.splice(i, 1);
403
-                        newTotal += newOutputlist2[i].bka058
401
+                        that.info.transBody.outputlist2.splice(i, 1);
402
+                        newTotal += that.info.transBody.outputlist2[i].bka058
404 403
                       }
405 404
                     }
406
-                    console.log('2323324324234')
405
+                    console.log(1111111111111)
407 406
                     let aka111obj = {
408 407
                       aka111:'99',
409 408
                       bka058:newTotal
410 409
                     }
411 410
                     console.log('aka111obj',aka111obj)
412
-                    newOutputlist2.push(aka111obj)
413
-                    that.info.transBody.outputlist2 = newOutputlist2
414
-                    console.log('newOutputlist2',newOutputlist2)
411
+                    that.info.transBody.outputlist2.push(aka111obj)
415 412
                     console.log('that.info.transBody.outputlist2',that.info.transBody.outputlist2)
416 413
                     console.log('this.num222',that.num)
417 414