|
@@ -81,6 +81,7 @@ let divideObj = {
|
|
|
}else {
|
|
}else {
|
|
|
disableSpread(this.divideSpread);
|
|
disableSpread(this.divideSpread);
|
|
|
disableSpread(this.billsSpread);
|
|
disableSpread(this.billsSpread);
|
|
|
|
|
+ disableSpread(this.divideSubSpread);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
initExecSpread:function(){
|
|
initExecSpread:function(){
|
|
@@ -1390,7 +1391,8 @@ $('#tab_divide').on('shown.bs.tab', function (e) {
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
$('.divide-nav-link').bind('click', function () {//$('.side-tabs ul li a').bind 2018-11-23 使用更多标签,所以不能这样绑定事件了
|
|
$('.divide-nav-link').bind('click', function () {//$('.side-tabs ul li a').bind 2018-11-23 使用更多标签,所以不能这样绑定事件了
|
|
|
- var tab = $(this), tabPanel = $(tab.attr('relaPanel'));
|
|
|
|
|
|
|
+ if(projectReadOnly) return;
|
|
|
|
|
+ var tab = $(this), tabPanel = $(tab.attr('relaPanel'));
|
|
|
if(tab.hasClass('disabled')){
|
|
if(tab.hasClass('disabled')){
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -1508,6 +1510,7 @@ function showDivideSide(tabPanel, show, id){
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$('#divide_stdRationTab').bind('click', function () {
|
|
$('#divide_stdRationTab').bind('click', function () {
|
|
|
|
|
+ if(projectReadOnly) return;
|
|
|
var select = $('#divide_stdRationLibSelect');
|
|
var select = $('#divide_stdRationLibSelect');
|
|
|
rationLibObj.checkSpread('divide');
|
|
rationLibObj.checkSpread('divide');
|
|
|
if (select[0].options.length === 0) {
|
|
if (select[0].options.length === 0) {
|