see999 4 年 前
コミット
80e478f29a
共有1 個のファイルを変更した8 個の追加3 個の削除を含む
  1. 8 3
      src/xt_pages/outpatientCharges/newStatementPrintTwo.vue

+ 8 - 3
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue ファイルの表示

@@ -394,12 +394,10 @@
394 394
                       if(that.info.transBody.outputlist2[i].aka111 == '07') {
395 395
                         console.log('0707007')
396 396
                         newTotal += that.info.transBody.outputlist2[i].bka058
397
-                        that.info.transBody.outputlist2.splice(i, 1);
398 397
                       }
399 398
                       if(that.info.transBody.outputlist2[i].aka111 == '19'){
400 399
                         console.log('191919')
401 400
                         newTotal += that.info.transBody.outputlist2[i].bka058
402
-                        that.info.transBody.outputlist2.splice(i, 1);
403 401
                       }
404 402
                       console.log(8888888,that.info.transBody.outputlist2)
405 403
                     }
@@ -409,7 +407,14 @@
409 407
                       bka058:newTotal
410 408
                     }
411 409
                     console.log('aka111obj',aka111obj)
412
-                    that.info.transBody.outputlist2.push(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
413 418
                     console.log('that.info.transBody.outputlist2',that.info.transBody.outputlist2)
414 419
                     console.log('this.num222',that.num)
415 420