|
|
@@ -1986,7 +1986,12 @@ $(document).ready(function() {
|
|
|
posCalcDetail.loadCurDetailData();
|
|
|
});
|
|
|
},
|
|
|
+ focusIn: function() {
|
|
|
+ const curNode = SpreadJsObj.getSelectObject(ledgerSheet);
|
|
|
+ aiTrans.setRelaInfo('bills', curNode, curNode);
|
|
|
+ }
|
|
|
};
|
|
|
+ $('#ledger-spread').focusin(treeOperationObj.focusIn);
|
|
|
const ledgerTemplate = $.ledger_template({
|
|
|
selector: '#ledger-template',
|
|
|
id: 'ledger-template',
|
|
|
@@ -3582,9 +3587,13 @@ $(document).ready(function() {
|
|
|
removeLocalCache(copyBlockTag);
|
|
|
posOperationObj.loadCurPosData();
|
|
|
});
|
|
|
+ },
|
|
|
+ focusIn: function() {
|
|
|
+ aiTrans.setRelaInfo('pos', SpreadJsObj.getSelectObject(posSheet), SpreadJsObj.getSelectObject(ledgerSheet));
|
|
|
}
|
|
|
};
|
|
|
posSpread.bind(spreadNS.Events.SelectionChanged, posOperationObj.selectionChanged);
|
|
|
+ $('#pos-spread').focusin(posOperationObj.focusIn);
|
|
|
if (!posSpreadSetting.readOnly) {
|
|
|
$('a[name="pos-opr"]').click(function () {
|
|
|
posOperationObj.baseOpr(posSpread.getActiveSheet(), this.getAttribute('type'));
|