Explorar o código

广东接口,不清空父项工程量

vian %!s(int64=5) %!d(string=hai) anos
pai
achega
c31aabd75b
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      web/over_write/js/guangdong_2018_import.js

+ 2 - 3
web/over_write/js/guangdong_2018_import.js

@@ -1053,7 +1053,7 @@ const importXML = (() => {
         mergeOther(tenderData.other);
         mergeTax(tenderData.tax);
         // 需要清空各种原因导入的父项的工程量
-        const parentMap = {};
+        /* const parentMap = {};
         mergedBills.forEach(bills => {
             if (bills.ParentID !== -1) {
                 parentMap[bills.ParentID] = 1;
@@ -1063,8 +1063,7 @@ const importXML = (() => {
             if (parentMap[bills.ID] && commonUtil.isDef(bills.quantity)) {
                 delete bills.quantity;
             }
-        })
-        console.log(mergedBills);
+        }) */
         return mergedBills;
 
         // 合并清单数据