|
|
@@ -575,6 +575,7 @@ var gljOprObj = {
|
|
|
}
|
|
|
},
|
|
|
showRationGLJSheetData: function (init) {
|
|
|
+ let me = this;
|
|
|
let selected = this.sheet.getSelections();
|
|
|
this.combineWithProjectGlj(this.sheetData);
|
|
|
this.sheet.setRowCount(0);
|
|
|
@@ -582,16 +583,17 @@ var gljOprObj = {
|
|
|
this.sumQuantity();//计算总消耗量
|
|
|
this.addMixRatioToShow();//显示组成物信息
|
|
|
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 () {
|