Browse Source

add quantity

zhangweicheng 7 years ago
parent
commit
a21942cf54
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

@@ -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: {