|
@@ -368,21 +368,30 @@ let installationFeeObj={
|
|
}else {
|
|
}else {
|
|
this.feeDetailData = []
|
|
this.feeDetailData = []
|
|
}
|
|
}
|
|
|
|
+ //这里由于combobax 自动行高有问题,还没找到好的解决方法,所以用先添加一行普通列用于自动行高的计算
|
|
|
|
+ //显示完了再把添加的多余列给删除了
|
|
|
|
+ let tcol = this.feeDetailSetting.header.length;
|
|
|
|
+ let theader = {headerName: "",headerWidth: 220, dataCode: "ruleName", hAlign: "left", dataType: "String",getText:'forRule'};
|
|
|
|
+ this.feeDetailSheet.addColumns(tcol,1);
|
|
|
|
+ this.feeDetailSheet.setColumnWidth(tcol, theader.headerWidth);
|
|
|
|
+ this.feeDetailSetting.header.push(theader);
|
|
|
|
+
|
|
sheetCommonObj.showData(this.feeDetailSheet, this.feeDetailSetting, this.feeDetailData);
|
|
sheetCommonObj.showData(this.feeDetailSheet, this.feeDetailSetting, this.feeDetailData);
|
|
- this.feeDetailSheet.setRowCount(this.feeDetailData.length);
|
|
|
|
if(this.feeDetailData.length>0){
|
|
if(this.feeDetailData.length>0){
|
|
this.feeDetailSheet.suspendPaint();
|
|
this.feeDetailSheet.suspendPaint();
|
|
this.feeDetailSheet.suspendEvent();
|
|
this.feeDetailSheet.suspendEvent();
|
|
- this.feeDetailSheet.getRange(0, -1, this.feeDetailData.length, -1, GC.Spread.Sheets.SheetArea.viewport).wordWrap(true);
|
|
|
|
|
|
+ this.feeDetailSheet.getRange(0, -1, this.feeDetailData.length, -1, GC.Spread.Sheets.SheetArea.viewport).wordWrap(true);
|
|
let feeItem = this.feeItemData[this.feeItemSheet.getSelections()[0].row];
|
|
let feeItem = this.feeItemData[this.feeItemSheet.getSelections()[0].row];
|
|
for(let i =0;i<this.feeDetailData.length;i++){
|
|
for(let i =0;i<this.feeDetailData.length;i++){
|
|
- this.feeDetailSheet.autoFitRow(i);
|
|
|
|
this.setComboRuleCell(i,1,this.feeDetailData[i],this.feeDetailSheet);//设置费用规则下拉选项
|
|
this.setComboRuleCell(i,1,this.feeDetailData[i],this.feeDetailSheet);//设置费用规则下拉选项
|
|
this.lockDetailSheet(i,this.feeDetailData[i],feeItem);
|
|
this.lockDetailSheet(i,this.feeDetailData[i],feeItem);
|
|
|
|
+ this.feeDetailSheet.autoFitRow(i);
|
|
}
|
|
}
|
|
this.feeDetailSheet.resumeEvent();
|
|
this.feeDetailSheet.resumeEvent();
|
|
this.feeDetailSheet.resumePaint();
|
|
this.feeDetailSheet.resumePaint();
|
|
}
|
|
}
|
|
|
|
+ this.feeDetailSheet.deleteColumns(tcol,1);
|
|
|
|
+ _.remove(this.feeDetailSetting.header,{dataCode:"ruleName"});
|
|
},
|
|
},
|
|
showMoreFeeRule:function () {
|
|
showMoreFeeRule:function () {
|
|
this.moreFeeRuleData = this.getMoreFeeRuleData();
|
|
this.moreFeeRuleData = this.getMoreFeeRuleData();
|
|
@@ -466,12 +475,14 @@ let installationFeeObj={
|
|
let options=[{text:"无",value:""}];
|
|
let options=[{text:"无",value:""}];
|
|
for(let ir of detail.impactRules){
|
|
for(let ir of detail.impactRules){
|
|
options.push({text:ir.rule,value:ir.ID});
|
|
options.push({text:ir.rule,value:ir.ID});
|
|
|
|
+ options.push(ir.rule);
|
|
}
|
|
}
|
|
options.push({text:"更多",value:'more'});
|
|
options.push({text:"更多",value:'more'});
|
|
let dynamicCombo = sheetCommonObj.getDynamicCombo();//new GC.Spread.Sheets.CellTypes.ComboBox();
|
|
let dynamicCombo = sheetCommonObj.getDynamicCombo();//new GC.Spread.Sheets.CellTypes.ComboBox();
|
|
dynamicCombo.items(options);
|
|
dynamicCombo.items(options);
|
|
dynamicCombo.editorValueType(GC.Spread.Sheets.CellTypes.EditorValueType.value);
|
|
dynamicCombo.editorValueType(GC.Spread.Sheets.CellTypes.EditorValueType.value);
|
|
sheet.setCellType(row, col, dynamicCombo, GC.Spread.Sheets.SheetArea.viewport);
|
|
sheet.setCellType(row, col, dynamicCombo, GC.Spread.Sheets.SheetArea.viewport);
|
|
|
|
+ sheet.getCell(row,col).wordWrap(true);
|
|
},
|
|
},
|
|
getFeeItemData:function (datas) {
|
|
getFeeItemData:function (datas) {
|
|
let feeItemShowArray = [];
|
|
let feeItemShowArray = [];
|