Sfoglia il codice sorgente

修改毛重小数位数

zhangweicheng 5 anni fa
parent
commit
192cb83610
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      web/building_saas/main/js/views/material_calc_view.js

+ 3 - 1
web/building_saas/main/js/views/material_calc_view.js

@@ -425,7 +425,9 @@ materialCalcObj = {
                 return me.showDatas();
             }
             if(dataCode != 'supplyLocation'){
-                value = value?scMathUtil.roundForObj(value,getDecimal("glj.unitPrice"))+'':'0'//4舍五入加默认为0
+               let decimal = getDecimal("glj.unitPrice");
+               if(dataCode == "grossWeightCoe_n")  decimal = 6;
+                value = value?scMathUtil.roundForObj(value,decimal)+'':'0'//4舍五入加默认为0
             }
             if(recode[dataCode] == value) continue;
             doc[dataCode] = value;