|
@@ -195,7 +195,7 @@ var projectObj = {
|
|
|
}
|
|
}
|
|
|
if (value!=undefined||value!=null) {
|
|
if (value!=undefined||value!=null) {
|
|
|
if (colSetting.data.decimal) {
|
|
if (colSetting.data.decimal) {
|
|
|
- value = value.toDecimal(colSetting.data.decimal);
|
|
|
|
|
|
|
+ value = value.toDecimal(colSetting.data.decimal);
|
|
|
}
|
|
}
|
|
|
} else if (editingText && editingText !== '') {
|
|
} else if (editingText && editingText !== '') {
|
|
|
value = null;
|
|
value = null;
|
|
@@ -523,8 +523,10 @@ var projectObj = {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
//计算基数赋值要经过解析和标准化,已在calculate里赋值
|
|
//计算基数赋值要经过解析和标准化,已在calculate里赋值
|
|
|
- if(fieldName !== 'calcBase')
|
|
|
|
|
- calcTools.setFieldValue(node, fieldName, value);
|
|
|
|
|
|
|
+ if(fieldName !== 'calcBase'){
|
|
|
|
|
+ calcTools.setFieldValue(node, fieldName, value);
|
|
|
|
|
+ projectObj.mainController.refreshTreeNode([node]); // 量价,输入单价x,反算单价x1,第二次输入单价x,单价不再反算。(实际反算了,没刷新)
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
project.calcProgram.calcAndSave(node);
|
|
project.calcProgram.calcAndSave(node);
|
|
|
gljOprObj.showRationGLJSheetData();
|
|
gljOprObj.showRationGLJSheetData();
|
|
@@ -559,7 +561,7 @@ var projectObj = {
|
|
|
projectObj.lastCell = {row: info.row, col: info.col};
|
|
projectObj.lastCell = {row: info.row, col: info.col};
|
|
|
if(colSetting.data.field === 'quantity'){
|
|
if(colSetting.data.field === 'quantity'){
|
|
|
SheetDataHelper.hideMoreButton()
|
|
SheetDataHelper.hideMoreButton()
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
//repaint 动态下拉框
|
|
//repaint 动态下拉框
|
|
|
mainSpreadEnterCell: function (sender, info) {
|
|
mainSpreadEnterCell: function (sender, info) {
|
|
@@ -581,7 +583,7 @@ var projectObj = {
|
|
|
let colSetting = projectObj.mainController.setting.cols[info.sheet.getActiveColumnIndex()];
|
|
let colSetting = projectObj.mainController.setting.cols[info.sheet.getActiveColumnIndex()];
|
|
|
if(colSetting.data.field === 'quantity'){
|
|
if(colSetting.data.field === 'quantity'){
|
|
|
SheetDataHelper.moveMoreButton(info.sheet)
|
|
SheetDataHelper.moveMoreButton(info.sheet)
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
mainSpreadEditStarting: function (sender, info) {
|
|
mainSpreadEditStarting: function (sender, info) {
|
|
|
let project = projectObj.project;
|
|
let project = projectObj.project;
|
|
@@ -634,7 +636,7 @@ var projectObj = {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if(node.sourceType == ModuleNames.ration){ //在定额编码中双击,如果右侧定额库没有展开,则自动展开。
|
|
if(node.sourceType == ModuleNames.ration){ //在定额编码中双击,如果右侧定额库没有展开,则自动展开。
|
|
|
- if(node.data.type != rationType.ration) return ;//只有定额类型才需要自动展开,其它都不用
|
|
|
|
|
|
|
+ if(node.data.type != rationType.ration) return ;//只有定额类型才需要自动展开,其它都不用
|
|
|
let libID = node.data.libID;
|
|
let libID = node.data.libID;
|
|
|
if (node.data.from === 'cpt') {
|
|
if (node.data.from === 'cpt') {
|
|
|
libID = node.data.fromUser ? `${rationLibObj.compleRationLibId}*${node.data.fromUser}` : rationLibObj.compleRationLibId;
|
|
libID = node.data.fromUser ? `${rationLibObj.compleRationLibId}*${node.data.fromUser}` : rationLibObj.compleRationLibId;
|
|
@@ -961,8 +963,8 @@ var projectObj = {
|
|
|
col.data.formatter = MainTreeCol.getNumberFormatter(decimalObj.ration.unitPrice, true);
|
|
col.data.formatter = MainTreeCol.getNumberFormatter(decimalObj.ration.unitPrice, true);
|
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
- });
|
|
|
|
|
- that.mainController = TREE_SHEET_CONTROLLER.createNew(that.project.mainTree, that.mainSpread.getActiveSheet(), that.project.projSetting.mainGridSetting);
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ that.mainController = TREE_SHEET_CONTROLLER.createNew(that.project.mainTree, that.mainSpread.getActiveSheet(), that.project.projSetting.mainGridSetting);
|
|
|
that.mainController.bind('refreshBaseActn', that.refreshBaseActn);
|
|
that.mainController.bind('refreshBaseActn', that.refreshBaseActn);
|
|
|
that.mainController.bind(TREE_SHEET_CONTROLLER.eventName.beforeTreeSelectedChange, that.beforeMainTreeSelectedChange);
|
|
that.mainController.bind(TREE_SHEET_CONTROLLER.eventName.beforeTreeSelectedChange, that.beforeMainTreeSelectedChange);
|
|
|
that.mainController.bind(TREE_SHEET_CONTROLLER.eventName.treeSelectedChanged, that.treeSelectedChanged);
|
|
that.mainController.bind(TREE_SHEET_CONTROLLER.eventName.treeSelectedChanged, that.treeSelectedChanged);
|
|
@@ -994,7 +996,7 @@ var projectObj = {
|
|
|
|
|
|
|
|
|
|
|
|
|
//工程量悬浮窗移动事件
|
|
//工程量悬浮窗移动事件
|
|
|
- that.mainSpread.bind(GC.Spread.Sheets.Events.TopRowChanged, that.TopRowChanged);
|
|
|
|
|
|
|
+ that.mainSpread.bind(GC.Spread.Sheets.Events.TopRowChanged, that.TopRowChanged);
|
|
|
//let loadOtherStartTime = +new Date();
|
|
//let loadOtherStartTime = +new Date();
|
|
|
//if(!projectReadOnly){
|
|
//if(!projectReadOnly){
|
|
|
that.loadMainSpreadContextMenu();
|
|
that.loadMainSpreadContextMenu();
|
|
@@ -1178,15 +1180,15 @@ var projectObj = {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
isInsertEquipmentVisable:function(selected){
|
|
isInsertEquipmentVisable:function(selected){
|
|
|
- //浙江不管是预算或者工程量清单,都是隐藏,overwrite文件重写
|
|
|
|
|
|
|
+ //浙江不管是预算或者工程量清单,都是隐藏,overwrite文件重写
|
|
|
if(this.project.property.valuationType !=='ration' ){//属于预算项目的情况下,在固定清单可见
|
|
if(this.project.property.valuationType !=='ration' ){//属于预算项目的情况下,在固定清单可见
|
|
|
//属于的固定清单
|
|
//属于的固定清单
|
|
|
let belongFlag = cbTools.getBelongFlag(selected);
|
|
let belongFlag = cbTools.getBelongFlag(selected);
|
|
|
if (belongFlag && belongFlag === fixedFlag.EQUIPMENT_ACQUISITION_FEE) {
|
|
if (belongFlag && belongFlag === fixedFlag.EQUIPMENT_ACQUISITION_FEE) {
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
return true
|
|
return true
|
|
|
},
|
|
},
|
|
|
// 注册自定义插入清单数量
|
|
// 注册自定义插入清单数量
|
|
@@ -1850,7 +1852,7 @@ var projectObj = {
|
|
|
for (let row = selectedArea.row; row < (selectedArea.rowCount + selectedArea.row); row++) {
|
|
for (let row = selectedArea.row; row < (selectedArea.rowCount + selectedArea.row); row++) {
|
|
|
const value = sheet.getCell(row, col).text();
|
|
const value = sheet.getCell(row, col).text();
|
|
|
if (!regular.test(value)) {
|
|
if (!regular.test(value)) {
|
|
|
- if(value) notNumber = true;
|
|
|
|
|
|
|
+ if(value) notNumber = true;
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
counter++;
|
|
counter++;
|
|
@@ -2462,7 +2464,7 @@ $('#poj-set').on('show.bs.modal', function () {
|
|
|
setCalcFlag($('#billsPrice'), leafBillGetFeeType.billsPrice, ft);
|
|
setCalcFlag($('#billsPrice'), leafBillGetFeeType.billsPrice, ft);
|
|
|
setCalcFlag($('#zangu_common'), zanguCalcType.common, zg);
|
|
setCalcFlag($('#zangu_common'), zanguCalcType.common, zg);
|
|
|
setCalcFlag($('#zangu_gatherMaterial'), zanguCalcType.gatherMaterial, zg);
|
|
setCalcFlag($('#zangu_gatherMaterial'), zanguCalcType.gatherMaterial, zg);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
let showAdjustPrice = projectObj.project.projSetting.glj_col?projectObj.project.projSetting.glj_col.showAdjustPrice:false;
|
|
let showAdjustPrice = projectObj.project.projSetting.glj_col?projectObj.project.projSetting.glj_col.showAdjustPrice:false;
|
|
|
showAdjustPrice === true ? $("#tab_poj-settings-6").show():$("#tab_poj-settings-6").hide();
|
|
showAdjustPrice === true ? $("#tab_poj-settings-6").show():$("#tab_poj-settings-6").hide();
|
|
|
projDisplayView.init();
|
|
projDisplayView.init();
|
|
@@ -3550,4 +3552,4 @@ $('.limit-price-input').bind('input', function () {
|
|
|
alert(err);
|
|
alert(err);
|
|
|
$(this).val(orgVal);
|
|
$(this).val(orgVal);
|
|
|
}
|
|
}
|
|
|
-});
|
|
|
|
|
|
|
+});
|