Explorar el Código

导入项目人材机时,若规格型号为假值,设置成null

zhongzewei hace 7 años
padre
commit
8d7a7b0fe0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      modules/pm/facade/pm_facade.js

+ 3 - 0
modules/pm/facade/pm_facade.js

@@ -1547,6 +1547,9 @@ async function setupStdData(tenderData) {
     });
     //更新人材机汇总数据
     tenderData.projectGLJ.forEach(pGLJ => {
+        if (!pGLJ.specs) {
+            pGLJ.specs = null;
+        }
         let stdGLJ = stdGLJCodeMap[pGLJ.original_code];
         if (stdGLJ) {
             pGLJ.glj_id = stdGLJ.ID;