Explorar el Código

预算项目清单父项也应计算经济指标。

chenshilong hace 6 años
padre
commit
6ea35d3148
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      web/building_saas/main/js/models/calc_program.js

+ 5 - 1
web/building_saas/main/js/models/calc_program.js

@@ -1645,7 +1645,11 @@ class CalcProgram {
 
                 if (treeNode.calcType == treeNodeCalcType.ctGatherBillsFees){
                     for (let node of nodes) {
-                        if (node.data.feesIndex && node.data.feesIndex[ft.type]) { // 父清单不要汇总综合单价。
+                        if (node.data.feesIndex && node.data.feesIndex[ft.type]) {
+                            if (projectObj.project.property.valuationType === 'bill') { // 预算
+                                buf = (buf + parseFloatPlus(node.data.feesIndex[ft.type].unitFee)).toDecimal(decimalObj.process);
+                                btuf = (btuf + parseFloatPlus(node.data.feesIndex[ft.type].tenderUnitFee)).toDecimal(decimalObj.process);
+                            };
                             btf = (btf + parseFloatPlus(node.data.feesIndex[ft.type].totalFee)).toDecimal(decimalObj.process);
                             bttf = (bttf + parseFloatPlus(node.data.feesIndex[ft.type].tenderTotalFee)).toDecimal(decimalObj.process);
                         };