zhangweicheng 6 vuotta sitten
vanhempi
commit
b35ec24cfe
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      public/web/gljUtil.js

+ 1 - 1
public/web/gljUtil.js

@@ -49,7 +49,7 @@ let gljUtil = {
         //计算经过场外运输损耗后的总消耗量
         for(let pglj of project_gljs ){
             let offSiteTransportLossRate = this.getOffSiteTransportLossRate(pglj);
-            pglj.offSiteTransportLossRate = scMathUtil.roundForObj(offSiteTransportLossRate,getDecimal("glj.unitPrice")) ;
+            pglj.offSiteTransportLossRate = parseFloat(offSiteTransportLossRate);//scMathUtil.roundForObj(offSiteTransportLossRate,getDecimal("glj.unitPrice")) ;这里再取小数位数太麻烦了,暂时用保存的吧
             offSiteTransportLossRate = offSiteTransportLossRate/100;
             pglj.transportLossQuantity =  scMathUtil.roundForObj(pglj.quantity*offSiteTransportLossRate,q_decimal);
             pglj.quantity = scMathUtil.roundForObj(pglj.quantity +  pglj.transportLossQuantity ,q_decimal);