//计算需求用量
function xuqiulian() {
var value = document.getElementById("neednums").value;
var treegrid= mini.get("tree1");
var root = treegrid.getRootNode();
var nodes = treegrid.getAllChildNodes(root);
for(var i=0;i<nodes.length;i++){
var node = nodes[i];
value=value*getValue(treegrid['wlnums']);
treegrid.updateNode(node,{neednums:value});
}
}
//计算需求用量