zhangweicheng 5 年之前
父节点
当前提交
bce7fecd93
共有 2 个文件被更改,包括 13 次插入4 次删除
  1. 12 4
      modules/glj/models/glj_list_model.js
  2. 1 0
      web/building_saas/pm/js/pm_newMain.js

+ 12 - 4
modules/glj/models/glj_list_model.js

@@ -318,13 +318,21 @@ class GLJListModel extends BaseModel {
             }
             let condition={
                 code: data.code,
-                project_id: data.project_id,
-                name:data.name,
+                project_id: data.project_id
+               /*  name:data.name,
                 specs:data.specs,
                 type:data.type,
-                unit:data.unit
+                unit:data.unit */
             };
-            let projectGljData = await this.findDataByCondition(condition);
+            let projectGljData = null;
+            let pList = await this.findDataByCondition(condition,null,false);
+            //规格 型号 null undefind "" 问题
+            for(let p of pList){
+                if(this.getIndex(data) == this.getIndex(p)){
+                  projectGljData = p;
+                  break;
+                }
+            }
             let isAddProjectGLJ = false;
 
             // 获取标段对应的单价文件id

+ 1 - 0
web/building_saas/pm/js/pm_newMain.js

@@ -868,6 +868,7 @@ const projTreeObj = {
             return lineNum * defaultHeight;
         };
         TreeNodeCellType.prototype.paint = function (ctx, value, x, y, w, h, style, options) {
+            if(style.backColor == undefined) style.backColor = "white"
             if (style.backColor) {
                 ctx.save();
                 ctx.fillStyle = style.backColor;