|
|
@@ -568,6 +568,7 @@ var gljOprObj = {
|
|
|
this.detailSheet.getRange(-1, 0, -1, this.detailSetting.header.length).locked(true);//锁住工程量明细的所有列
|
|
|
},
|
|
|
showRationGLJData: function (node) {
|
|
|
+ let startTime = +new Date();
|
|
|
let gljList = [];
|
|
|
let ration_glj = projectObj.project.ration_glj;
|
|
|
node = node ? node : projectObj.project.mainTree.selected;
|
|
|
@@ -584,24 +585,26 @@ var gljOprObj = {
|
|
|
}
|
|
|
},
|
|
|
showRationGLJSheetData: function (init) {
|
|
|
+ let me = this;
|
|
|
let selected = this.sheet.getSelections();
|
|
|
this.combineWithProjectGlj(this.sheetData);
|
|
|
this.sheet.setRowCount(0);
|
|
|
this.sheetData = gljUtil.sortRationGLJ(this.sheetData);
|
|
|
this.sumQuantity();//计算总消耗量
|
|
|
this.addMixRatioToShow();//显示组成物信息
|
|
|
+ let itreeTime = +new Date();
|
|
|
this.initRationTree(init,this.getUnitPriceCodeMap());
|
|
|
- sheetCommonObj.showData(this.sheet, this.setting, this.sheetData);
|
|
|
- if(this.mainTreeSelectedChange == true){
|
|
|
- this.sheet.setSelection(0,1,1,1);//默认选中第一行,第二列(名称列)
|
|
|
- this.mainTreeSelectedChange = false;
|
|
|
- }else if(selected){//定位光标到之前的位置
|
|
|
- this.sheet.setSelection(selected[0].row,selected[0].col,selected[0].rowCount,selected[0].colCount);
|
|
|
- }
|
|
|
- //初始选择
|
|
|
- this.preGljSelection = null;
|
|
|
- this.sheetInitSelection({row: this.sheet.getActiveRowIndex(), col: this.sheet.getActiveColumnIndex()});
|
|
|
-
|
|
|
+ sheetCommonObj.showData(this.sheet, this.setting, this.sheetData,null,function () {
|
|
|
+ if(me.mainTreeSelectedChange == true){
|
|
|
+ me.sheet.setSelection(0,1,1,1);//默认选中第一行,第二列(名称列)
|
|
|
+ me.mainTreeSelectedChange = false;
|
|
|
+ }else if(selected){//定位光标到之前的位置
|
|
|
+ me.sheet.setSelection(selected[0].row,selected[0].col,selected[0].rowCount,selected[0].colCount);
|
|
|
+ }
|
|
|
+ //初始选择
|
|
|
+ me.preGljSelection = null;
|
|
|
+ me.sheetInitSelection({row: me.sheet.getActiveRowIndex(), col: me.sheet.getActiveColumnIndex()});
|
|
|
+ });
|
|
|
},
|
|
|
getSelectedRationGlj:function () {
|
|
|
let selected = this.sheet.getSelections()[0];
|