فهرست منبع

象山接口导入移除定额信息表限制

Tony Kang 3 سال پیش
والد
کامیت
35f6162690
1فایلهای تغییر یافته به همراه14 افزوده شده و 35 حذف شده
  1. 14 35
      web/building_saas/standard_interface/import/zhejiang_xiangshan.js

+ 14 - 35
web/building_saas/standard_interface/import/zhejiang_xiangshan.js

@@ -136,41 +136,20 @@ INTERFACE_IMPORT = (() => {
             const rBillItems = arrayValue(src, ['定额信息表']); // 导入后作为清单处理
             if (rBillItems.length > 0) {
               rBillItems.forEach((rationXml, index) => {
-                let srcSpecialProvisional = getValue(src, ['_数据类型']);
-                // let specialProvisional = '';
-                // switch (srcSpecialProvisional) {
-                //   case '1':
-                //     specialProvisional = '材料暂估';
-                //     break;
-                //   case '2':
-                //     specialProvisional = '工程设备';
-                //     break;
-                //   case '4':
-                //     // 不取费定额
-                //     specialProvisional = '专业工程';
-                //     break;
-                //   case '3':
-                //       // 表示普通定额
-                //   default:
-                //     specialProvisional = '';
-                //     break;
-                // }
-                if (srcSpecialProvisional === '1' || srcSpecialProvisional === '2') {
-                  const item = {
-                    // seq: index + 1,
-                    // fees,
-                    GUID: getValue(rationXml, ['_GUID']),
-                    code: getValue(rationXml, ['_定额编号']),
-                    name: getValue(rationXml, ['_定额名称']),
-                    unit: getValue(rationXml, ['_单位']),
-                    tenderQuantity: getValue(rationXml, ['_数量']),
-                    quantity: getValue(rationXml, ['_数量']),
-                    remark: getValue(rationXml, ['_备注']),
-                    // specialProvisional,
-                  };
-                  bill.children.push(item);
-                }
-              });
+                const item = {
+                  // seq: index + 1,
+                  // fees,
+                  GUID: getValue(rationXml, ['_GUID']),
+                  code: getValue(rationXml, ['_定额编号']),
+                  name: getValue(rationXml, ['_定额名称']),
+                  unit: getValue(rationXml, ['_单位']),
+                  tenderQuantity: getValue(rationXml, ['_数量']),
+                  quantity: getValue(rationXml, ['_数量']),
+                  remark: getValue(rationXml, ['_备注']),
+                  // specialProvisional,
+                };
+                bill.children.push(item);
+            });
             }
             return bill;
           });