浏览代码

台账修订,清单对比,加载签约清单问题

MaiXinRong 4 年之前
父节点
当前提交
5b60bb7004
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      app/public/js/shares/gcl_gather_compare.js

+ 4 - 4
app/public/js/shares/gcl_gather_compare.js

@@ -366,17 +366,17 @@ const gclCompareModel = (function () {
             for (const node of data) {
                 node.b_code = node.code;
                 const gcl = getGclNode(node);
-                if (!d.quantity || !d.unit_price) continue;
+                if (!node.quantity || !node.unit_price) continue;
                 gcl.deal_bills_qty = node.quantity || 0;
                 gcl.deal_bills_tp = node.total_price || 0;
 
                 for (const c of otherChapter) {
                     if (c.cType === 41 || c.cType === 11) {
-                        c.deal_bills_tp = ZhCalc.add(c.deal_bills_tp, d.total_price);
+                        c.deal_bills_tp = ZhCalc.add(c.deal_bills_tp, node.total_price);
                     }
                 }
-                const c = _getGclChapter(gclChapter, d);
-                c.deal_bills_tp = ZhCalc.add(c.deal_bills_tp, d.total_price);
+                const c = _getGclChapter(gclChapter, node);
+                c.deal_bills_tp = ZhCalc.add(c.deal_bills_tp, node.total_price);
             }
         }
     }