zhangweicheng %!s(int64=5) %!d(string=hai) anos
pai
achega
6b6377fdca
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web/building_saas/main/js/models/ration.js

+ 1 - 1
web/building_saas/main/js/models/ration.js

@@ -523,11 +523,11 @@ var Ration = {
                         newSource = data.ration;
                         newNode = project.mainTree.insert(billItemID, nextID, newSource.ID);
                         newNodes.push(newNode);
-                        nextID = project.mainTree.selected.getNextSiblingID();
                         newNode.source = newSource;
                         newNode.sourceType = project.Ration.getSourceType();
                         newNode.data = newSource;
                         ProjectController.syncDisplayNewNode(sheetController, newNode);
+                        nextID =  project.mainTree.selected.getNextSiblingID();
                     }
                     project.projectGLJ.calcQuantity();
                     for(let data of rstData){