Browse Source

feat: 安徽导入接口,兼容同望的计算基数行引用

vian 5 years ago
parent
commit
3c831c05fb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      web/building_saas/standard_interface/import/base.js

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

@@ -307,7 +307,8 @@ const INTERFACE_EXPORT_BASE = (() => {
           preChild.NextSiblingID = child.ID;
           preChild.NextSiblingID = child.ID;
         }
         }
         if (child.rowCode) {
         if (child.rowCode) {
-          rowCodeData.push({ reg: new RegExp(`\\b${child.rowCode}\\b`, 'g'), ID: child.ID });
+          const regStr = /{[^{}]+}/.test(child.rowCode) ? child.rowCode : `\\b${child.rowCode}\\b`;
+          rowCodeData.push({ reg: new RegExp(regStr, 'g'), ID: child.ID });
         }
         }
         if (child.calcBase) {
         if (child.calcBase) {
           toBeTransformBills.push(child);
           toBeTransformBills.push(child);