|
|
@@ -1168,9 +1168,9 @@ var gljOprObj = {
|
|
|
//gljOprObj.sheetData = gljOprObj.sheetData.concat(result.showData);
|
|
|
project.projectGLJ.loadData(function () {
|
|
|
project.ration_glj.addToMainTree(result.showData);//组成物不会显示到造价书页面
|
|
|
- gljOprObj.refreshView();
|
|
|
project.calcProgram.calcAndSave(selected);
|
|
|
projectObj.mainController.refreshTreeNode([selected]);
|
|
|
+ gljOprObj.refreshView();
|
|
|
$.bootstrapLoading.end();
|
|
|
});
|
|
|
}
|
|
|
@@ -1215,7 +1215,6 @@ var gljOprObj = {
|
|
|
let data = result.data;
|
|
|
let nodes = [selected];
|
|
|
project.projectGLJ.loadData(function () {//加载完项目工料机再计算
|
|
|
- gljOprObj.refreshView();
|
|
|
let node = project.ration_glj.updateGLJNodeAfterReplace(data);
|
|
|
if(node) nodes.push(node);
|
|
|
/*if (project.ration_glj.needShowToTree(data)) {//当替换的是主材或设备时,刷新对应的树节点
|
|
|
@@ -1232,6 +1231,7 @@ var gljOprObj = {
|
|
|
selected.data.name = result.name;
|
|
|
projectObj.mainController.refreshTreeNode(nodes);
|
|
|
project.calcProgram.calcAndSave(selected);
|
|
|
+ gljOprObj.refreshView();
|
|
|
$.bootstrapLoading.end();
|
|
|
});
|
|
|
}
|
|
|
@@ -1272,9 +1272,9 @@ var gljOprObj = {
|
|
|
}
|
|
|
})
|
|
|
project.projectGLJ.loadData(function () {
|
|
|
- me.refreshView();
|
|
|
var rationNodes = me.refreshStateAfterMreplace(stateList, nodes);
|
|
|
project.calcProgram.calcNodesAndSave(rationNodes);
|
|
|
+ me.refreshView();
|
|
|
$.bootstrapLoading.end();
|
|
|
});
|
|
|
})
|