|
@@ -53,7 +53,7 @@ $(function () {
|
|
|
const ledgerCol = {
|
|
|
readOnly: {
|
|
|
can_select: function (data) {
|
|
|
- return !data.can_select;
|
|
|
+ return !(data.can_select && !revising);
|
|
|
},
|
|
|
},
|
|
|
};
|
|
@@ -304,6 +304,9 @@ function updateParentCanSelect(datas, ledger_pid) {
|
|
|
}
|
|
|
|
|
|
function updateChildrenSelect(datas, is_select) {
|
|
|
+ if(revising) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
for (const data of datas) {
|
|
|
if (data.can_select) {
|
|
|
data.is_select = is_select;
|
|
@@ -316,6 +319,9 @@ function updateChildrenSelect(datas, is_select) {
|
|
|
}
|
|
|
|
|
|
function updateSiblingsSelect(tree, pid, is_select, select_msg) {
|
|
|
+ if(revising) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
const parent = pid !== -1 ? _.find(tree.nodes, { 'ledger_id': pid }) : tree;
|
|
|
if (parent) {
|
|
|
for(const d of parent.children) {
|
|
@@ -332,6 +338,9 @@ function updateSiblingsSelect(tree, pid, is_select, select_msg) {
|
|
|
}
|
|
|
|
|
|
function updateOtherSiblingsSelect(tree, pid, is_select, select_msg) {
|
|
|
+ if(revising) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
if(pid === -1) {
|
|
|
return;
|
|
|
}
|
|
@@ -367,6 +376,9 @@ function updateOtherSiblingsSelect(tree, pid, is_select, select_msg) {
|
|
|
}
|
|
|
|
|
|
function updateParentSelect(tree, pid, is_select) {
|
|
|
+ if(revising) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (pid !== -1) {
|
|
|
const parent = _.find(tree.nodes, { 'ledger_id': pid });
|
|
|
if (parent) {
|