zhangweicheng 6 years atrás
parent
commit
9c3ed138a0

+ 1 - 1
modules/fee_rates/facade/fee_rates_facade.js

@@ -335,7 +335,7 @@ function setRatesByMap(newFeeRate,subMap,decimal){
                             }
                         }
                         if(ltRate!=null&&gtRate!=null){//已经找到前后的值了
-                            let step = scMathUtil.roundForObj(gtRate.value - ltRate.value,getDecimal("process"))
+                            let step = scMathUtil.roundForObj(gtRate.value - ltRate.value,6);
                             let total =  parseFloat(gtRate.ID) - parseFloat(ltRate.ID);
                             r.rate  =getRateByStep(ltRate.value,total,parseFloat(t_p.value) - parseFloat(ltRate.ID),step,decimal);
                         }else if(ltRate!=null&&gtRate == null){//说明是超出了选项的最大值

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

@@ -749,7 +749,7 @@ var quantity_detail = {
                                 times = 1;
                             }
                             rationNode.updateData.quantity = scMathUtil.roundForObj(ration_value / times,getDecimal("quantity",rationNode));
-                            rationNode.updateData.contain = scMathUtil.roundForObj(rationNode.data.quantity/value,getDecimal("process"));
+                            rationNode.updateData.contain = value?scMathUtil.roundForObj(rationNode.data.quantity/value,getDecimal("process")):0;
                             rationNode.changed = true;
                             needUpdateChildren.push(rationNode);
                             if (rationNode.children.length>0){//如果有子工料机