see999 3 년 전
부모
커밋
6716bc4443
1개의 변경된 파일13개의 추가작업 그리고 9개의 파일을 삭제
  1. 13 9
      src/xt_pages/outpatientCharges/newStatementPrintTwo.vue

+ 13 - 9
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue 파일 보기

@@ -389,18 +389,18 @@
389 389
                       }
390 390
                     })
391 391
                     that.num = num
392
-                    console.log('this.num222',that.num)
393 392
                     let newTotal = 0
394
-                    for (var i = that.info.transBody.outputlist2.length - 1; i >= 0; i--) {
395
-                      if(that.info.transBody.outputlist2[i].aka111.indexOf('07') > -1) {
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) {
396 396
                         console.log('0707007')
397
-                        that.info.transBody.outputlist2.splice(i, 1);
398
-                        newTotal += that.info.transBody.outputlist2[i].bka058
397
+                        newOutputlist2.splice(i, 1);
398
+                        newTotal += newOutputlist2[i].bka058
399 399
                       }
400
-                      if(that.info.transBody.outputlist2[i].aka111 == '19'){
400
+                      if(newOutputlist2[i].aka111 == '19'){
401 401
                         console.log('191919')
402
-                        that.info.transBody.outputlist2.splice(i, 1);
403
-                        newTotal += that.info.transBody.outputlist2[i].bka058
402
+                        newOutputlist2.splice(i, 1);
403
+                        newTotal += newOutputlist2[i].bka058
404 404
                       }
405 405
                     }
406 406
                     console.log('2323324324234')
@@ -409,8 +409,12 @@
409 409
                       bka058:newTotal
410 410
                     }
411 411
                     console.log('aka111obj',aka111obj)
412
-                    that.info.transBody.outputlist2.push(aka111obj)
412
+                    newOutputlist2.push(aka111obj)
413
+                    that.info.transBody.outputlist2 = newOutputlist2
414
+                    console.log('newOutputlist2',newOutputlist2)
413 415
                     console.log('that.info.transBody.outputlist2',that.info.transBody.outputlist2)
416
+                    console.log('this.num222',that.num)
417
+                    
414 418
                   }
415 419
                 }
416 420
               })