Parcourir la source

feat: 费用行“分部分项工程”、“措施项目”、“其他项目”,这3行的项目编码、项目名称由只读改为可编辑

zhangweicheng il y a 4 ans
Parent
commit
379181775c
1 fichiers modifiés avec 9 ajouts et 4 suppressions
  1. 9 4
      web/building_saas/main/js/views/main_tree_col.js

+ 9 - 4
web/building_saas/main/js/views/main_tree_col.js

@@ -261,20 +261,25 @@ let MainTreeCol = {
             if(MainTreeCol.readOnly.glj(node)|| (node.sourceType === projectObj.project.Ration.getSourceType()&&node.data.type===rationType.gljRation)){//是主材或者设备、或者是工料机类型的定额
                 return true;
             }
-            if(Bills.isTopThreeNode(node)){//是大项1、2、3项的编号设置为只读
+            
+            //2020-11-30 为了多行复制时,遇到只读的大项费,spreadjs 粘贴事件能触发,放开这里的只读限制
+           /*  if(Bills.isTopThreeNode(node)){//是大项1、2、3项的编号设置为只读
                 return true;
-            }
+            } */
             return false;
         },
         forName:function (node) {
             // 属于标题清单,只读
+            /* 2020-11-30 为了多行复制时,遇到只读的大项费,spreadjs 粘贴事件能触发,放开这里的只读限制
             if (node.sourceType == ModuleNames.bills &&
                 calcTools.isTitleBills(node)) {
                 return true;
             }
-            if(projectObj.project.Bills.isTopThreeNode(node)){//是大项1、2、3项的编号设置为只读
+             */
+            /*  2020-11-30 为了多行复制时,遇到只读的大项费,spreadjs 粘贴事件能触发,放开这里的只读限制
+              if(projectObj.project.Bills.isTopThreeNode(node)){//是大项1、2、3项的编号设置为只读
                 return true;
-            }
+            } */
             return false;
         },
         forUnit:function (node) {