Pārlūkot izejas kodu

fix: (接口)导入接口文件,“第100章至700章清单”模糊匹配调整,要能识别“第100章~700章清单

BUG #3058
vian 5 gadi atpakaļ
vecāks
revīzija
685ff4517e
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      web/building_saas/standard_interface/import/base.js

+ 2 - 2
web/building_saas/standard_interface/import/base.js

@@ -240,7 +240,7 @@ const INTERFACE_EXPORT_BASE = (() => {
       const simpleName = bills.name ? bills.name.replace(/\s/g, '') : '';
       let matched;
       if (!parent) {
-        if (/100章至第700章|100章至700章|100章至第900章|100章至900章/.test(simpleName)) {
+        if (/100章.*700章|100章.*900章/.test(simpleName)) {
           matched = target.find(bills => getFlag(bills) === fixedFlag.ONE_SEVEN_BILLS);
         } else if (/包含在清单合计中的材料、工程设备、专业工程暂估/.test(simpleName)) {
           matched = target.find(bills => getFlag(bills) === fixedFlag.PROVISIONAL_TOTAL);
@@ -255,7 +255,7 @@ const INTERFACE_EXPORT_BASE = (() => {
         }
       } else {
         const parentSimpleName = parent.name ? parent.name.replace(/\s/g, '') : '';
-        if (/100章至第700章|100章至700章|100章至第900章|100章至900章/.test(parentSimpleName) && /100章总则/.test(simpleName)) {
+        if (/100章.*700章|100章.*900章/.test(parentSimpleName) && /100章总则/.test(simpleName)) {
           matched = target.find(bills => getFlag(bills) === fixedFlag.ONE_HUNDRED_BILLS);
         } else if (/计日工合计/.test(parentSimpleName) && /劳务/.test(simpleName)) {
           matched = target.find(bills => getFlag(bills) === fixedFlag.LABOUR_SERVICE);