Przeglądaj źródła

fix: 山东接口调整

Tony Kang 8 miesięcy temu
rodzic
commit
631eef00d7

+ 2 - 0
web/building_saas/standard_interface/export/shandong_common.js

@@ -1038,6 +1038,7 @@ INTERFACE_EXPORT = (() => {
 
     function _getNumValueByExportKind(orgSum) {
       let rst = orgSum;
+      if (orgSum === Infinity) rst = 0; // 无穷大得给0
       // const isBidInvitation = exportKind === BID_INVITATION; // 是否是招标
       // const isBidSubmission = exportKind === BID_SUBMISSION; // 是否是投标
       // const isControl = exportKind === CONTROL; // 是否是控制价
@@ -1644,6 +1645,7 @@ INTERFACE_EXPORT = (() => {
           if (bill.data.hasOwnProperty('quantity')) {
             bQtn = parseFloat(bill.data.quantity);
             if (isNaN(bQtn)) bQtn = 1;
+            // if (bQtn)
           }
           let billMainMaterialTtl = cacheObj[billIdKey].mainMaterialFee / bQtn;
           let billAuxiliaryMaterialTtl = cacheObj[billIdKey].auxiliaryMaterialFee / bQtn;