|
@@ -226,7 +226,7 @@ $(function () {
|
|
|
huizongSelect.end_sj_gcl = huizongSelect.end_sj_gcl ? ZhCalc.add(ZhCalc.sub(huizongSelect.end_sj_gcl, orgValue), validText) : validText;
|
|
|
huizongSelect.end_sj_tp = huizongSelect.dgn_price && huizongSelect.dgn_price !== 0 ? ZhCalc.round(ZhCalc.mul(huizongSelect.end_sj_gcl, huizongSelect.dgn_price), 0) : 0;
|
|
|
}
|
|
|
- const nodes = treeCalc.calculateParent(huizongSpread.getActiveSheet().zh_tree, huizongSelect);
|
|
|
+ const nodes = treeCalc.calculateParent(huizongSpread.getActiveSheet().zh_tree, huizongSelect, 1);
|
|
|
const refreshNode = huizongTree.loadPostData({update: nodes});
|
|
|
huizongObj.refreshTree(huizongSpread.getActiveSheet(), refreshNode);
|
|
|
},
|
|
@@ -266,13 +266,13 @@ $(function () {
|
|
|
console.log(updateData);
|
|
|
postData(window.location.pathname + '/save', {type: 'ledger_edit', postData: updateData}, function (result) {
|
|
|
select[yearmonth + '_sj_tp'] = sj_tp;
|
|
|
- const nodes = treeCalc.calculateParent(info.sheet.zh_tree, select);
|
|
|
+ const nodes = treeCalc.calculateParent(info.sheet.zh_tree, select, 1);
|
|
|
const refreshNode = ledgerTree.loadPostData({update: nodes});
|
|
|
ledgerSpreadObj.refreshTree(info.sheet, refreshNode);
|
|
|
ledgerSpreadObj.reCalcHuizong(info.row, yearmonth, orgValue, validText);
|
|
|
},function () {
|
|
|
select[col.field] = orgValue;
|
|
|
- const nodes = treeCalc.calculateParent(info.sheet.zh_tree, select);
|
|
|
+ const nodes = treeCalc.calculateParent(info.sheet.zh_tree, select, 1);
|
|
|
const refreshNode = ledgerTree.loadPostData({update: nodes});
|
|
|
ledgerSpreadObj.refreshTree(info.sheet, refreshNode);
|
|
|
})
|
|
@@ -313,7 +313,7 @@ $(function () {
|
|
|
if (datas.length > 0) {
|
|
|
postData(window.location.pathname + '/save', {type: 'ledger_paste', postData: datas}, function (result) {
|
|
|
for (const uul of filterNodes) {
|
|
|
- const nodes = treeCalc.calculateParent(sheet.zh_tree, uul);
|
|
|
+ const nodes = treeCalc.calculateParent(sheet.zh_tree, uul, 1);
|
|
|
const refreshNode = ledgerTree.loadPostData({update: nodes});
|
|
|
ledgerSpreadObj.refreshTree(sheet, refreshNode);
|
|
|
}
|
|
@@ -382,7 +382,7 @@ $(function () {
|
|
|
if (datas.length > 0) {
|
|
|
postData(window.location.pathname + '/save', {type: 'ledger_paste', postData: datas}, function (result) {
|
|
|
for (const uul of filterNodes) {
|
|
|
- const nodes = treeCalc.calculateParent(info.sheet.zh_tree, uul);
|
|
|
+ const nodes = treeCalc.calculateParent(info.sheet.zh_tree, uul, 1);
|
|
|
const refreshNode = ledgerTree.loadPostData({update: nodes});
|
|
|
ledgerSpreadObj.refreshTree(info.sheet, refreshNode);
|
|
|
}
|