소스 검색

修复bug

ellisran 1 주 전
부모
커밋
7fedc086ab
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/public/js/cost_gather.js

+ 2 - 2
app/public/js/cost_gather.js

@@ -79,7 +79,7 @@ $(document).ready(() => {
                     this.tree.nodes.forEach(x => { x[col.field] = 0; });
                     this.tree.nodes.forEach(x => { x[col.field] = 0; });
                 }
                 }
                 for (const s of gp.stages) {
                 for (const s of gp.stages) {
-                    for (b of s.detail.bills) {
+                    for (const b of s.detail.bills) {
                         const node = this.tree.nodes.find(x => { return x.cost_id === b.cost_id; });
                         const node = this.tree.nodes.find(x => { return x.cost_id === b.cost_id; });
                         if (!node) continue;
                         if (!node) continue;
                         for (const lf of loadFields) {
                         for (const lf of loadFields) {
@@ -183,4 +183,4 @@ $(document).ready(() => {
             ledgerGatherSpread.refresh();
             ledgerGatherSpread.refresh();
         }
         }
     });
     });
-});
+});