瀏覽代碼

反馈调整

Tony Kang 2 年之前
父節點
當前提交
7862ed1cd1
共有 1 個文件被更改,包括 17 次插入0 次删除
  1. 17 0
      web/building_saas/standard_interface/export/guangxi_common.js

+ 17 - 0
web/building_saas/standard_interface/export/guangxi_common.js

@@ -1310,6 +1310,16 @@ INTERFACE_EXPORT = (() => {
             if (bNode.children && bNode.children.length > 0 && _chkIfJRGHJ(bNode, specialBills)) {
               attrs[5].value = data.feesIndex && data.feesIndex.common ? data.feesIndex.common.tenderTotalFee : "";
             }
+            if (bNode.data.name === '投标报价') {
+              let rootNodes = tenderProject.mainTree.roots;
+              let ttlSum = 0;
+              for (let r of rootNodes) {                
+                if (specialBills.includes(r.data.name)) {
+                  ttlSum += _getFee(r);
+                }
+              }
+              attrs[5].value = '' + ttlSum;
+            }
   
             Element.call(this, "Item", attrs);
             let cc = CostComposition(bNode);
@@ -1379,6 +1389,13 @@ INTERFACE_EXPORT = (() => {
               }
               if (Costs.length === 0 && _chkIfJRGHJ(bNode, ['计日工合计'])) {
                 Costs.push(new Cost(bNode.data));
+                for (let idx = 0; idx < Costs[Costs.length - 1].attrs.length; idx++) {
+                  if (Costs[Costs.length - 1].attrs[idx].name === 'Num') {
+                    Costs[Costs.length - 1].attrs[idx].value = '' + bNode.data.quantity;
+                  } else if (Costs[Costs.length - 1].attrs[idx].name === 'BasePrice') {
+                    Costs[Costs.length - 1].attrs[idx].value = '' + _getFee(bNode, 'common', 'tenderUnitFee');
+                  }
+                }
               }
               if (Norms.length > 0) CostComposition.children.push(...Norms);
               if (Costs.length > 0) CostComposition.children.push(...Costs);