chenshilong 7 年之前
父节点
当前提交
915f37b954
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/building_saas/main/js/models/calc_program.js

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

@@ -1001,7 +1001,7 @@ class CalcProgram {
                 calcEstimateFee(treeNode);
                 treeNodeTools.initSummaryFee(treeNode);
                 treeNode.data.summaryFees.totalFee = tf;
-                treeNode.data.summaryFees.estimateFee = treeNode.data.feesIndex.estimate.totalFee;
+                treeNode.data.summaryFees.estimateFee = (treeNode.data.feesIndex && treeNode.data.feesIndex.estimate) ? treeNode.data.feesIndex.estimate.totalFee:0;
                 let bill_safe = cbTools.findBill(fixedFlag.SAFETY_CONSTRUCTION);
                 treeNode.data.summaryFees.safetyFee = (bill_safe && bill_safe.feesIndex && bill_safe.feesIndex.common)?bill_safe.feesIndex.common.totalFee:0;
                 let bill_charge = cbTools.findBill(fixedFlag.CHARGE);