MaiXinRong 3 years ago
parent
commit
9d490f9dfb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/public/js/stage.js

+ 1 - 1
app/public/js/stage.js

@@ -3832,7 +3832,7 @@ $(document).ready(() => {
                 b.pos = _.filter(change.detail.curUsedBills, { rela_cbid: b.id });
                 b.pos = _.filter(change.detail.curUsedBills, { rela_cbid: b.id });
                 b.cur_qty = 0;
                 b.cur_qty = 0;
                 for (const p of b.pos) {
                 for (const p of b.pos) {
-                    b.qty = b.rela_qty;
+                    p.qty = p.rela_qty;
                     const node = stageTree.datas.find(x => { return x.id === p.lid; });
                     const node = stageTree.datas.find(x => { return x.id === p.lid; });
                     p.ledger_id = node.ledger_id;
                     p.ledger_id = node.ledger_id;
                     p.f_qty = node.quantity;
                     p.f_qty = node.quantity;