MaiXinRong 2 years ago
parent
commit
ba3694ed4d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/lib/rm/material.js

+ 2 - 2
app/lib/rm/material.js

@@ -332,12 +332,12 @@ class ReportMemoryMaterial {
             if (!g.contract_qty && !g.qc_qty) continue;
             g.sid = stage_id;
             g.sorder = stage_order;
-            s.s_index = stageIndex;
+            g.s_index = stageIndex;
             g.jiacha = 0;
             for (const x of g.leafXmjs) {
                 x.sid = stage_id;
                 x.sorder = stage_order;
-                s.s_index = stageIndex;
+                x.s_index = stageIndex;
                 x.jiacha = 0;
                 const mnj = materialNotJoin.find(m => {
                     return m.gcl_id === x.org_gcl_id && m.xmj_id === x.id && (x.mx_id && x.mx_id !== x.id  ? x.mx_id === m.mx_id : true);