ソースを参照

调整导出广西接口

Tony Kang 2 年 前
コミット
9fdfd04ebc
1 ファイル変更17 行追加14 行削除
  1. 17 14
      web/building_saas/standard_interface/export/guangxi_common.js

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

@@ -1404,20 +1404,23 @@ INTERFACE_EXPORT = (() => {
             attrs[5].value = data.feesIndex && data.feesIndex.common ? data.feesIndex.common.tenderTotalFee : "";
           }
           //特殊清单
-          // const specialBills = ['计日工合计', '已包含在清单合计中的材料、工程设备、专业工程暂估价合计'];
-          // 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;
-          // }
+          if (isBidInvitation) {
+            // 招标工程量清单 读计日工和已包含在清单合计中的材料、工程设备、专业工程暂估价合计。
+            const specialBills = ['计日工合计', '已包含在清单合计中的材料、工程设备、专业工程暂估价合计'];
+            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);