zhangweicheng 4 سال پیش
والد
کامیت
e82be42393
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 1
      public/web/scMathUtil.js
  2. 0 1
      web/building_saas/main/js/views/config_material_view.js

+ 1 - 1
public/web/scMathUtil.js

@@ -173,7 +173,7 @@ let scMathUtil = {
     roundForObj:function(obj,decimal){
         let me = this;
         let value;
-        if(obj === undefined || obj === null) return 0;
+        if(obj === undefined || obj === null || isNaN(obj)) return 0;
         let n = Math.pow(10,decimal);
         if(me.isNumber(obj)){
           value = Math.round(obj * n) / n;

+ 0 - 1
web/building_saas/main/js/views/config_material_view.js

@@ -867,7 +867,6 @@ let pgljSelObj={
         let projectGLJ = projectObj.project.projectGLJ;
         let materialIdList = projectGLJ.datas.constData.materialIdList;
         let data = materialAdjustObj.getCommonObject(glj);
-        console.log(projectGljObject.displayType);
         data.select = projectGljObject.displayType == filterType.ZGCL?glj.is_evaluate:glj.is_eval_material;
         data.from = glj;
         data.short_name = projectGLJ.getShortNameByID(glj.type);