Forráskód Böngészése

变更令,定位至台账问题

MaiXinRong 4 éve
szülő
commit
df0067c168
1 módosított fájl, 5 hozzáadás és 4 törlés
  1. 5 4
      app/public/js/stage.js

+ 5 - 4
app/public/js/stage.js

@@ -3169,6 +3169,7 @@ $(document).ready(() => {
                             if (changeBills.gcl_id) {
                                 const node = stageTree.nodes.find(x => {return x.id === changeBills.gcl_id});
                                 SpreadJsObj.locateTreeNode(slSpread.getActiveSheet(), node.ledger_id);
+                                stagePosSpreadObj.loadCurPosData();
                             } else {
                                 const cb = {
                                     b_code: changeBills.code || '',
@@ -3180,10 +3181,10 @@ $(document).ready(() => {
                                     if (node.children && node.children.length > 0) continue;
 
                                     const b = {
-                                        b_code: bills.b_code || '',
-                                        name: bills.name || '',
-                                        unit: bills.unit || '',
-                                        unit_price: bills.unit_price || 0,
+                                        b_code: node.b_code || '',
+                                        name: node.name || '',
+                                        unit: node.unit || '',
+                                        unit_price: node.unit_price || 0,
                                     };
                                     if (_.isMatch(cb, b)) {
                                         SpreadJsObj.locateTreeNode(slSpread.getActiveSheet(), node.ledger_id);