Browse Source

山东接口投标报价公式导入调整

Tony Kang 1 năm trước cách đây
mục cha
commit
94d7032301

+ 5 - 0
web/building_saas/standard_interface/import/shandong_common.js

@@ -125,6 +125,10 @@ INTERFACE_IMPORT = (() => {
             }
             bill.calcFlag = 1;
           }
+          if (bill.name == '投标报价') {
+            let formula = getValue(i, ['CostComposition', 'Formula', '_Formulas']);
+            bill.exCalcStr = formula || '';
+          }
           tender.bills.push(bill);
         }
         // 山东的 formula 还得调整
@@ -256,6 +260,7 @@ INTERFACE_IMPORT = (() => {
             cacheObj[bill.formulaCode] = bill;
           }
           if (typeof bill.calcBase === 'string' && bill.calcBase.length > 0) {
+            if (bill.exCalcStr) bill.calcBase = bill.exCalcStr;
             calcBills.push(bill);
           }
         }