zhangweicheng 5 éve
szülő
commit
00fc6cf4b6
1 módosított fájl, 1 hozzáadás és 1 törlés
  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);