Browse Source

unit readonly setting

zhangweicheng 7 years ago
parent
commit
f37cc2fbd2
1 changed files with 7 additions and 0 deletions
  1. 7 0
      web/users/js/main_tree_col.js

+ 7 - 0
web/users/js/main_tree_col.js

@@ -78,6 +78,13 @@ let MainTreeCol = {
         },
         forCode:function (node) {
             return MainTreeCol.readOnly.glj(node)|| (node.sourceType === projectObj.project.Ration.getSourceType()&&node.data.type===rationType.gljRation);
+        },
+        forUnit:function (node) {
+            if(MainTreeCol.readOnly.bills(node)&&(node.data.type==billType.DXFY||node.data.type==billType.FB)){//在大项费用、分部行,计量单位只读。
+                return true;
+            }else {
+                return treeNodeTools.isRation(node);
+            }
         }
     },
     cellType: {