Browse Source

组成物bug

zhangweicheng 5 years atrás
parent
commit
00fc6cf4b6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/ration_glj/facade/ration_glj_facade.js

+ 1 - 1
modules/ration_glj/facade/ration_glj_facade.js

@@ -825,7 +825,7 @@ async function replaceMixRatio(g,result,unitFileId){
             projectGLJMap[r.projectGLJID] = r;
             if(gljUtil.isConcreteType(r.type)&&r.ID!=g.ID) concreteList.push(r) //除了本身,记录一下其它混凝土类型
         }
-        if (result.hasOwnProperty('subList') && result.subList.length > 0){
+        if (result.subList && result.subList.length > 0){
             newMap =  addMixRatioToRationGLJ(g,result.subList,newRecodes,projectGLJMap);//先生成要添加的工料机
         }
         let oldMixList = await projectGljModel.getCompositionGLJByData(IDMap[g.ID],unitFileId);