see999 4 年前
父节点
当前提交
6716bc4443
共有 1 个文件被更改,包括 13 次插入9 次删除
  1. 13 9
      src/xt_pages/outpatientCharges/newStatementPrintTwo.vue

+ 13 - 9
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue 查看文件

389
                       }
389
                       }
390
                     })
390
                     })
391
                     that.num = num
391
                     that.num = num
392
-                    console.log('this.num222',that.num)
393
                     let newTotal = 0
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
                         console.log('0707007')
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
                         console.log('191919')
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
                     console.log('2323324324234')
406
                     console.log('2323324324234')
409
                       bka058:newTotal
409
                       bka058:newTotal
410
                     }
410
                     }
411
                     console.log('aka111obj',aka111obj)
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
                     console.log('that.info.transBody.outputlist2',that.info.transBody.outputlist2)
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
               })