|
@@ -582,15 +582,33 @@ var projectObj = {
|
|
|
}
|
|
|
if(node.sourceType == ModuleNames.ration){ //在定额编码中双击,如果右侧定额库没有展开,则自动展开。
|
|
|
if(!rationLibObj.tree){
|
|
|
+ sessionStorage.setItem('stdRationLib', node.data.libID);
|
|
|
rationLibObj.doAfterGetRationTree = function () {
|
|
|
- this.locateAtRation(code);
|
|
|
+ this.locateAtRation(node.data.libID, code);
|
|
|
this.doAfterGetRationTree = null;
|
|
|
};
|
|
|
}
|
|
|
else {
|
|
|
- rationLibObj.locateAtRation(code);
|
|
|
+ if($('#stdRationLibSelect').select().val() != node.data.libID){
|
|
|
+ let libOpts = $('#stdRationLibSelect').find('option');
|
|
|
+ for(let libOpt of libOpts){
|
|
|
+ if($(libOpt).val() == node.data.libID){
|
|
|
+ $(libOpt).prop('selected', 'selected');
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $('#stdRationLibSelect').change();
|
|
|
+ rationLibObj.doAfterGetRationTree = function () {
|
|
|
+ this.locateAtRation(node.data.libID, code);
|
|
|
+ this.doAfterGetRationTree = null;
|
|
|
+ };
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ rationLibObj.locateAtRation(node.data.libID, code);
|
|
|
+ }
|
|
|
}
|
|
|
if(!$("#de").is(":visible")) $('#stdRationTab').click();
|
|
|
+ console.log($('#stdRationLibSelect').select().val());
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -2827,6 +2845,9 @@ function changeCalcBaseFeeRate(toggle) {
|
|
|
$('#calcBaseFeeRate').find('.modal-title').text('计算基数选择').show();
|
|
|
$('#calcBaseFeeRate').find('.modal-body').find('button:first').hide();
|
|
|
$('#calcBaseFeeRate').find('.modal-body').find('ul:first').hide();
|
|
|
+ $('#calcBaseExp').remove();
|
|
|
+ let $input = $('<input>').attr('id', 'calcBaseExp').addClass('form-control');
|
|
|
+ $('#expArea').prepend($input);
|
|
|
}
|
|
|
else if(toggle === 'feeRate'){
|
|
|
$('#calcBaseFeeRate').find('.modal-header').show();
|
|
@@ -2838,6 +2859,9 @@ function changeCalcBaseFeeRate(toggle) {
|
|
|
$('#calcBaseFeeRate').find('.modal-header').hide();
|
|
|
$('#calcBaseFeeRate').find('.modal-body').find('button:first').show();
|
|
|
$('#calcBaseFeeRate').find('.modal-body').find('ul:first').show();
|
|
|
+ $('#calcBaseExp').remove();
|
|
|
+ let $textarea = $('<textarea>').attr('id', 'calcBaseExp').prop('rows', 3).addClass('form-control').css('resize', 'none');
|
|
|
+ $('#expArea').prepend($textarea);
|
|
|
}
|
|
|
}
|
|
|
//综合合价弹出计算基数费率确认
|