Jelajahi Sumber

fixed: bug3411 补漏

Tony Kang 3 tahun lalu
induk
melakukan
77bfb2213e
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      modules/main/facade/project_facade.js

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

@@ -372,9 +372,9 @@ function getReportData(nameList, items, prjTypeNames, compilationScopes, decimal
         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);
-        } else if (c.calcBase && c.calcBase.indexOf('@') >= 0) {
+        } else if (tbill.calcBase && tbill.calcBase.indexOf('@') >= 0 && tbill.calcBase.indexOf('{') < 0) {
           // 说明:在实际中,发现清单‘第一、二、三部分费用合计’没有再计算,这样会造成问题(实际情况比较复杂,需要多方测试)
-          // recalcTotalItem(tbill, arr, isProgressiveType, progressiveInterval);
+          recalcTotalItem(tbill, arr, isProgressiveType, progressiveInterval);
         }
         if (level > 0) temTotalPrice = scMathUtil.roundForObj(tbill.billsTtlPrice + temTotalPrice, decimal.bills.totalPrice);
       }