Explorar el Código

台账分解,选择问题

MaiXinRong hace 6 días
padre
commit
fcc680f0d6
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      app/public/js/ledger.js

+ 9 - 0
app/public/js/ledger.js

@@ -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'));