|
@@ -56,6 +56,7 @@ let divideObj = {
|
|
|
showDatas:function(){
|
|
showDatas:function(){
|
|
|
this.showDivideDatas();
|
|
this.showDivideDatas();
|
|
|
this.showBillsDatas();
|
|
this.showBillsDatas();
|
|
|
|
|
+ this.showRationGLJDatas();
|
|
|
},
|
|
},
|
|
|
refreshViews:function(){
|
|
refreshViews:function(){
|
|
|
if(!$('#divide_main').is(':visible')) return;
|
|
if(!$('#divide_main').is(':visible')) return;
|
|
@@ -95,6 +96,24 @@ let divideObj = {
|
|
|
return datas;
|
|
return datas;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ showRationGLJDatas:function(){
|
|
|
|
|
+ if(!$('#divide_glj_nav').hasClass('active')) return;
|
|
|
|
|
+ this.divideSubSpread.setActiveSheetIndex(0);
|
|
|
|
|
+ this.rationGLJDatas = getRationGLJDatas();
|
|
|
|
|
+ let rationGLJSheet = this.divideSubSpread.getSheet(0)
|
|
|
|
|
+ rationGLJSheet.setRowCount(this.rationGLJDatas.length);
|
|
|
|
|
+ sheetCommonObj.showTreeData(rationGLJSheet, gljCol.ration_glj_setting,this.rationGLJDatas);
|
|
|
|
|
+ function getRationGLJDatas(){
|
|
|
|
|
+ let datas = [];
|
|
|
|
|
+ let selected = divideObj.getSelectedItem();
|
|
|
|
|
+ let divideSetting = projectObj.project.divide_setting.datas;
|
|
|
|
|
+ if(selected){
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ return datas;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
getProgramOptions:function(){
|
|
getProgramOptions:function(){
|
|
|
let names = projectObj.project.calcProgram.compiledTemplateNames;
|
|
let names = projectObj.project.calcProgram.compiledTemplateNames;
|
|
|
let map = projectObj.project.calcProgram.compiledTemplateMaps;
|
|
let map = projectObj.project.calcProgram.compiledTemplateMaps;
|
|
@@ -478,6 +497,18 @@ let divideObj = {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ "calcRation": {
|
|
|
|
|
+ name: "计算定额/量价",
|
|
|
|
|
+ icon: 'fa-sign-in',
|
|
|
|
|
+ disabled: function () {
|
|
|
|
|
+ return me.rightClickTarget.row === undefined
|
|
|
|
|
+ },
|
|
|
|
|
+ callback: function (key, opt) {
|
|
|
|
|
+ let selected = me.getSelectedItem();
|
|
|
|
|
+ projectObj.project.calcProgram.innerCalcForFTRation({data:selected,sourceType:"ration"});
|
|
|
|
|
+ console.log(selected)
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
"removeItem": {
|
|
"removeItem": {
|
|
|
name: "删除",
|
|
name: "删除",
|
|
|
icon: 'fa-trash-o',
|
|
icon: 'fa-trash-o',
|
|
@@ -499,9 +530,10 @@ let divideObj = {
|
|
|
resize: $('#divide_rgResize'),
|
|
resize: $('#divide_rgResize'),
|
|
|
top: $('#divide_top'),
|
|
top: $('#divide_top'),
|
|
|
topSpread: $('#divide_main_sheet'),
|
|
topSpread: $('#divide_main_sheet'),
|
|
|
- bottom: $('#divideBottom'),
|
|
|
|
|
|
|
+ bottom: $('#divideBottom').children().find('.main-data-bottom'),
|
|
|
bottomSpread: [$('#divide_subSpread')]
|
|
bottomSpread: [$('#divide_subSpread')]
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
divideResizeEles.limit = {
|
|
divideResizeEles.limit = {
|
|
|
min: 150,
|
|
min: 150,
|
|
|
max: `$(window).height()-$('.header').height()-$('#divideToolsBar').height()-150-5`,//5: resize.height()
|
|
max: `$(window).height()-$('.header').height()-$('#divideToolsBar').height()-150-5`,//5: resize.height()
|