浏览代码

Merge branch 'budget' of http://192.168.1.41:3000/SmartCost/ConstructionCost into budget

vian 4 年之前
父节点
当前提交
82daf00dd1
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      web/building_saas/main/js/models/calc_program.js

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

@@ -2010,7 +2010,9 @@ class CalcProgram {
         if (calcTools.isVP_or_GLJR(treeNode)){
           let u = treeNode.data.marketUnitFee ? treeNode.data.marketUnitFee : 0;
           let t = (u * nQ).toDecimal(decimalObj.ration.totalPrice);
-          if (treeNode.data.marketTotalFee != t){
+          if ((treeNode.data.marketTotalFee != t) ||
+              (!treeNode.data.feesIndex || !treeNode.data.feesIndex.common || (treeNode.data.feesIndex.common.totalFee != t))
+          ){
               treeNode.data.marketTotalFee = t;
               let obj = {};
               obj.fieldName = 'common';