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

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

@@ -390,18 +390,21 @@
390 390
                     })
391 391
                     that.num = num
392 392
                     console.log('this.num222',that.num)
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
-                    //     that.info.transBody.outputlist2.splice(i, 1);
397
-                    //     newTotal += that.info.transBody.outputlist2[i].bka058
398
-                    //   }
399
-                    //   if(that.info.transBody.outputlist2[i].aka111 == '19'){
400
-                    //     that.info.transBody.outputlist2.splice(i, 1);
401
-                    //     newTotal += that.info.transBody.outputlist2[i].bka058
402
-                    //   }
403
-                    // }
404
-                    // that.info.transBody.outputlist2.push({aka111:'99',bka058:newTotal})
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
+                        that.info.transBody.outputlist2.splice(i, 1);
398
+                        newTotal += that.info.transBody.outputlist2[i].bka058
399
+                      }
400
+                      if(that.info.transBody.outputlist2[i].aka111 == '19'){
401
+                        console.log('191919')
402
+                        that.info.transBody.outputlist2.splice(i, 1);
403
+                        newTotal += that.info.transBody.outputlist2[i].bka058
404
+                      }
405
+                    }
406
+                    that.info.transBody.outputlist2.push({aka111:'99',bka058:newTotal})
407
+                    console.log('that.info.transBody.outputlist2.',that.info.transBody.outputlist2)
405 408
                   }
406 409
                 }
407 410
               })