Tony Kang před 3 roky
rodič
revize
791bd6f1ce

+ 8 - 1
web/building_saas/standard_interface/import/shandong_common.js

@@ -121,7 +121,7 @@ INTERFACE_IMPORT = (() => {
             bill.fees = [{ fieldName: "common",tenderTotalFee:ProvisionalSums, tenderUnitFee: "0", totalFee: ProvisionalSums, unitFee: "0" }];
             bill.calcBase = ProvisionalSums;
             bill.calcFlag = 1;
-          } 
+          }
           tender.bills.push(bill);
         }
         const BidEvaluationMainMaterial = arrayValue(EprjInfo, ['BidEvaluationMainMaterial']);
@@ -147,6 +147,13 @@ INTERFACE_IMPORT = (() => {
         if (item._ProvisionalType == '0') bill.specialProvisional = '材料暂估';
         if (item._ProvisionalType == '1') bill.specialProvisional = '工程设备';
         if (item._ProvisionalType == '2') bill.specialProvisional = '专业工程';
+        if (item._ProvisionalType == '2') {
+          let sumVal = getValue(item, ['_Sum']);
+          bill.fees = [{ fieldName: "common",tenderTotalFee:sumVal, tenderUnitFee: "0", totalFee: sumVal, unitFee: "0" }];
+          bill.calcBase = sumVal;
+          bill.calcFlag = 1;
+        }
+
         let subItems = arrayValue(item, ['Item']);
         if (subItems && subItems.length > 0) { 
           for (let i of subItems) {