Kaynağa Gözat

广西调整

Tony Kang 3 yıl önce
ebeveyn
işleme
f2850d1c6f

+ 26 - 5
web/building_saas/standard_interface/export/guangxi_common.js

@@ -315,7 +315,7 @@ INTERFACE_EXPORT = (() => {
         let [cpuId, diskId, macId] = hardID.split(";");
         const attrs = [{
             name: "Name",
-            value: "公路工程造价数据标准",
+            value: "广西公路工程造价文件数据交换标准化规定",
           },
           {
             name: "Version",
@@ -338,15 +338,15 @@ INTERFACE_EXPORT = (() => {
             value: makeData?makeData.value:"",
           },
           {
-            name: "Key1",
+            name: "SoftwareNumber",
             value: window.btoa(userID),
           },
           {
-            name: "Key2",
+            name: "HardNumber",
             value: window.btoa(diskId),
           },
           {
-            name: "Key3",
+            name: "MacAddress",
             value: window.btoa(macId),
           },
           {
@@ -968,6 +968,26 @@ INTERFACE_EXPORT = (() => {
         if(bidEvaluationMainMaterials.length > 0) this.children.push(...bidEvaluationMainMaterials);
       }
   
+      function _getNumValueByExportKind(orgSum) {
+        let rst = orgSum;
+        // const isBidInvitation = exportKind === BID_INVITATION; // 是否是招标
+        // const isBidSubmission = exportKind === BID_SUBMISSION; // 是否是投标
+        // const isControl = exportKind === CONTROL; // 是否是控制价
+        //根据导出类型(上面3个),输出实际合计或price
+        if (isBidInvitation) {
+          rst = 0;
+        }
+        return rst;
+      }
+
+      function _getStrValueByExportKind(orgStr) {
+        let rst = orgStr;
+        if (isBidInvitation) {
+          rst = '';
+        }
+        return rst;
+      }
+
       function getBidEvaluationMainMaterial(tenderProject) { 
         let bidMaterials = [];
         let i = 1;
@@ -1189,7 +1209,8 @@ INTERFACE_EXPORT = (() => {
               },
               {
                 name: "QtyFormula",
-                value: data.feesIndex && data.feesIndex.common ? data.feesIndex.common.tenderTotalFee : "",//data.calcBase //data.calcBase ? cbParser.toFExpr(data.calcBase, tenderProject.mainTree.items) : "",
+                // value: data.feesIndex && data.feesIndex.common ? data.feesIndex.common.tenderTotalFee : "",//data.calcBase //data.calcBase ? cbParser.toFExpr(data.calcBase, tenderProject.mainTree.items) : "",
+                value: _getStrValueByExportKind(data.feesIndex && data.feesIndex.common ? data.feesIndex.common.tenderTotalFee : ""),
                 type: TYPE.DECIMAL,
                 toFix:2
               },