|
@@ -233,6 +233,18 @@ var projectObj = {
|
|
|
}
|
|
|
return rst;
|
|
|
},
|
|
|
+ //根据列标段设置焦点单元格
|
|
|
+ setActiveCell(field, moveScroll){
|
|
|
+ projectObj.mainSpread.focus(true);
|
|
|
+ let mainSheet = projectObj.mainSpread.getActiveSheet();
|
|
|
+ let fieldCol = colSettingObj.getColByField(field);
|
|
|
+ if(fieldCol){
|
|
|
+ if(moveScroll){
|
|
|
+ mainSheet.showColumn(fieldCol, GC.Spread.Sheets.HorizontalPosition.left);
|
|
|
+ }
|
|
|
+ mainSheet.setActiveCell(projectObj.project.mainTree.selected.serialNo(), fieldCol);
|
|
|
+ }
|
|
|
+ },
|
|
|
//获取粘贴更改的单元格(粘贴时,跳过隐藏行)
|
|
|
checkSpreadChangedCells: function (info) {
|
|
|
let rst = {refreshRows: [], changedCells: []};
|
|
@@ -1680,11 +1692,15 @@ $('#property_ok').click(function () {
|
|
|
|
|
|
//基本信息
|
|
|
if(basicInfoView.toUpdate(basicInfoView.orgDatas, basicInfoView.datas)){
|
|
|
- properties['property.basicInformation'] = basicInfoView.toSaveDatas(basicInfoView.datas);
|
|
|
+ let saveData = basicInfoView.toSaveDatas(basicInfoView.datas);
|
|
|
+ projectObj.project.property.basicInformation = saveData;
|
|
|
+ properties['property.basicInformation'] = saveData;
|
|
|
}
|
|
|
//工程特征
|
|
|
if(projFeatureView.toUpdate(projFeatureView.orgDatas, projFeatureView.datas)){
|
|
|
- properties['property.projectFeature'] = projFeatureView.toSaveDatas(projFeatureView.datas);
|
|
|
+ let saveData = projFeatureView.toSaveDatas(projFeatureView.datas);
|
|
|
+ projectObj.project.property.projectFeature = saveData;
|
|
|
+ properties['property.projectFeature'] = saveData;
|
|
|
}
|
|
|
//清单工程量精度
|
|
|
let newBillsDecimalDatas = billsDecimalView.toBillsDecimalDatas(billsDecimalView.cache);
|
|
@@ -2039,7 +2055,6 @@ $('#customFile').change(function () {
|
|
|
console.log('enter');
|
|
|
try {
|
|
|
let data = ev.target.result;
|
|
|
- console.log(data);
|
|
|
// 以二进制流方式读取得到整份excel表格对象
|
|
|
let workbook = XLSX.read(data, {type: 'binary'});
|
|
|
// 遍历每张表读取
|