Browse Source

中间计量,编辑草图,计算式丢失问题

MaiXinRong 4 years ago
parent
commit
2ec59dcec4
1 changed files with 2 additions and 7 deletions
  1. 2 7
      app/public/js/stage_im.js

+ 2 - 7
app/public/js/stage_im.js

@@ -510,7 +510,6 @@ const stageIm = (function () {
                 im.bw = getZlNormalBw(node, peg);
                 im.xm = node.name;
             }
-            checkCustomDetail(im);
             //if (!stage.im_gather || !node.check) {
                 generateTzGclBillsData(node, im);
             //}
@@ -561,7 +560,6 @@ const stageIm = (function () {
                 custom_define: [],
                 source: [{id: node.ledger_id, code: node.code, b_code: node.b_code}],
             };
-            checkCustomDetail(imDefault);
             for (const p of posterity) {
                 if (p.children && p.children.length > 0) continue;
                 if (!p.b_code || p.b_code === '') continue;
@@ -586,7 +584,6 @@ const stageIm = (function () {
                                 source: [],
                             };
                             nodeImData.push(im);
-                            checkCustomDetail(im);
                         }
                         im.source.push({id: p.ledger_id, code: p.code, b_code: p.b_code});
 
@@ -738,7 +735,6 @@ const stageIm = (function () {
                     im.drawing_code = getDrawingCode(p);
                 }
                 nodeImData.push(im);
-                checkCustomDetail(im);
                 ImData.push(im);
             }
             im.source.push({id: p.ledger_id, code: p.code, b_code: p.b_code});
@@ -779,7 +775,6 @@ const stageIm = (function () {
                         source: [{id: p.ledger_id, code: p.code, b_code: p.b_code}],
                     };
                     im.calc_memo = '本期计量:' + (checkZero(im.jl) ? 0 : im.jl) + ' ' + im.unit;
-                    checkCustomDetail(im);
                     ImData.push(im);
                     if (pp.qc_qty && pp.qc_qty !== 0) {
                         for (const c of changes) {
@@ -807,7 +802,6 @@ const stageIm = (function () {
                     source: [{id: p.ledger_id, code: p.code, b_code: p.b_code}],
                 };
                 im.calc_memo = '本期计量:' + (checkZero(im.jl) ? 0 : im.jl) + ' ' + im.unit;
-                checkCustomDetail(im);
                 ImData.push(im);
                 if (p.qc_qty && p.qc_qty !== 0) {
                     for (const c of changes) {
@@ -870,7 +864,8 @@ const stageIm = (function () {
             }
             getCalcMemo(im);
             getChangeInfo(im);
-            im.im_code = pre + getNumberFormat(stage.order, 2) + splitChar + getNumberFormat(i + 1, 3)
+            im.im_code = pre + getNumberFormat(stage.order, 2) + splitChar + getNumberFormat(i + 1, 3);
+            checkCustomDetail(im);
         }
         return ImData;
     }