Quellcode durchsuchen

fix: 专项汇总问题

zhangweicheng vor 4 Jahren
Ursprung
Commit
cdb2b9b944
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      modules/main/facade/project_facade.js

+ 1 - 1
modules/main/facade/project_facade.js

@@ -366,7 +366,7 @@ function getReportData(nameList, items, prjTypeNames, compilationScopes, decimal
       let tbill = getBillDatas(c, level, rootFlag);
       arr.push(tbill);
       let sumChildren = setChildrenDatas(c.children, arr, level + 1, rootFlag);
-      if (isProgressiveType && progressiveInterval && rootFlag == fixedFlag.MAINTENANCE_EXPENSES) { //如果要累进的,父节点要重新汇总
+      if (isProgressiveType && progressiveInterval) { //如果要累进的,父节点要重新汇总
         if (c.children.length > 0) {
           tbill.billsTtlPrice = sumChildren;
           tbill['技术经济综合指标'] = (tbill.billsTtlAmt && parseFloat(tbill.billsTtlAmt) !== 0) ? scMathUtil.roundForObj(tbill.billsTtlPrice / tbill.billsTtlAmt, 2) : scMathUtil.roundForObj(tbill.billsTtlPrice, 2);