Browse Source

Safeguard

chenshilong 7 years ago
parent
commit
28fafd96c4
1 changed files with 5 additions and 1 deletions
  1. 5 1
      web/building_saas/main/js/models/calc_program.js

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

@@ -1408,7 +1408,11 @@ class CalcProgram {
                     delete treeNode.data.gljList;
                     let muf = treeNode.data.marketUnitFee ? treeNode.data.marketUnitFee : 0;
                     let q = calcTools.uiNodeQty(treeNode) ? calcTools.uiNodeQty(treeNode) : 0;
-                    treeNode.data.marketTotalFee = (muf * q).toDecimal(decimalObj.ration.totalPrice);
+                    let mtf = (muf * q).toDecimal(decimalObj.ration.totalPrice);
+                    if (treeNode.data.marketTotalFee != mtf){
+                        treeNode.data.marketTotalFee = mtf;
+                        treeNode.changed = true;
+                    } ;
                 }
                 else{
                     treeNode.data.gljList = me.project.ration_glj.getGljArrByRation(treeNode.data.ID);