Explorar o código

广西导出招标文件及SUM问题

Tony Kang %!s(int64=2) %!d(string=hai) anos
pai
achega
cd452df0ab
Modificáronse 1 ficheiros con 18 adicións e 14 borrados
  1. 18 14
      web/building_saas/standard_interface/export/guangxi_common.js

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

@@ -259,6 +259,10 @@ INTERFACE_EXPORT = (() => {
       this.children = [];
     }
 
+    if (projectData.keyIDData === null || projectData.keyIDData === undefined) {
+      projectData.keyIDData = {};
+    }
+
     // 建设项目根节点信息
     function CprjInfo(projectName) {
       let baseInfo = _.find(projectData.property.basicInformation, {
@@ -1400,20 +1404,20 @@ 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;
-          }
+          // 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);