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

导入其他标段计量数据,计算问题

MaiXinRong 1 hónapja
szülő
commit
246aff838a
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      app/lib/sum_load.js

+ 3 - 1
app/lib/sum_load.js

@@ -367,7 +367,9 @@ class gatherStageGclTree extends loadGclBaseTree {
                 b_code: d.b_code,
                 name: d.name,
                 unit: d.unit,
-                unit_price: d.unit_price,
+                unit_price: d.unit_price || 0,
+                quantity: d.quantity || 0,
+                total_price: d.total_price || 0,
                 org_contract_qty: d.contract_qty || 0,
                 org_contract_tp: d.contract_tp || 0,
                 org_qc_qty: d.qc_qty || 0,