Browse Source

山东接口再调整

Tony Kang 1 year ago
parent
commit
3f9e607308
1 changed files with 5 additions and 1 deletions
  1. 5 1
      web/building_saas/standard_interface/export/shandong_common.js

+ 5 - 1
web/building_saas/standard_interface/export/shandong_common.js

@@ -1076,6 +1076,7 @@ INTERFACE_EXPORT = (() => {
       let topNode100To700, nodeZXZDJ, nodeQDKCZXZDJ, nodeJRG, nodeZLJE, nodeTBBJ, newAddedBill;
       let chapterNodes = [];
       let fixedSum = _getFixedSum(tenderProject); //山东有固定费用,此费用不参与到此项中去
+      let nextBillID = '';
       tenderProject.Bills.datas.forEach((bill) => {
         if (bill.flags && bill.flags.length > 0) {
           for (let flag of bill.flags) {
@@ -1094,6 +1095,7 @@ INTERFACE_EXPORT = (() => {
                 break;
               case 26:
                 nodeZLJE = bill;
+                nextBillID = bill.NextSiblingID
                 break;
               case 9:
                 nodeTBBJ = bill;
@@ -1106,7 +1108,9 @@ INTERFACE_EXPORT = (() => {
             }
           }
         }
-        if (bill.type === 1 && bill.name === '其他新增费用') {
+      });
+      tenderProject.Bills.datas.forEach((bill) => {
+        if (bill.type === 1 && bill.ID === nextBillID) {
           newAddedBill = bill;
         }
       });