소스 검색

add quantity

zhangweicheng 7 년 전
부모
커밋
a21942cf54
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      web/users/js/main_tree_col.js

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

@@ -14,6 +14,13 @@ let MainTreeCol = {
             } else if (node.sourceType === projectObj.project.ration_glj.getSourceType()) {
                 return '主';
             }
+        },
+        quantity:function (node) {
+            if(node.sourceType === projectObj.project.ration_glj.getSourceType()){
+                return gljOprObj.getTotalQuantity(node.data);
+            }else {
+                return node.data["quantity"];
+            }
         }
     },
     readOnly: {