Explorar o código

材料计算bug

zhangweicheng %!s(int64=5) %!d(string=hai) anos
pai
achega
897fb23c05
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web/building_saas/main/js/models/project_glj.js

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

@@ -980,7 +980,7 @@ ProjectGLJ.prototype.calcEachFreightOrPrice = function (temp,type,priceMap,needU
             let rationQuantity = scMathUtil.roundForObj(ration.quantity,getDecimal("ration.quantity"));
             for(let g of gljs){
                 gljOprObj.setGLJPrice(g,pMap[gljUtil.getIndex(g)]);
-                if(priceMap && priceMap[g.projectGLJID]) g.marketPrice = scMathUtil.roundForObj(priceMap[g.projectGLJID]);
+                if(priceMap && priceMap[g.projectGLJID]) g.marketPrice = scMathUtil.roundForObj(priceMap[g.projectGLJID],getDecimal("glj.unitPrice"));
                 let quantity = scMathUtil.roundForObj(g.quantity,getDecimal("glj.quantity"));
                 let t = scMathUtil.roundForObj(quantity * g.marketPrice * rationQuantity,processDecimal);//市场价
                 let r_price = gljUtil.getAssUsedPrice(g);//浙江定额时特殊处理,这里取市场价