Tony Kang пре 1 година
родитељ
комит
d5bb5eebde
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      web/building_saas/standard_interface/export/zhejiang_hangzhou.js

+ 6 - 2
web/building_saas/standard_interface/export/zhejiang_hangzhou.js

@@ -519,7 +519,9 @@ INTERFACE_EXPORT = (() => {
           // chaptNo = (node.data.name || '').replace(/[^0-9]/g, '')
           chaptNo = `${(index + 1) * 100}`;
           for (const proKey in chapterMap) {
-            if (node.data.name && node.data.name.indexOf(proKey) >= 0) {
+            let bName = node.data.name || '';
+            bName = bName.replace(/''/g, '');
+            if (bName.indexOf(proKey) >= 0) {
               chaptNo = `${chapterMap[proKey]}`;
               break;
             }
@@ -665,7 +667,9 @@ INTERFACE_EXPORT = (() => {
               lnStr = `${(index + 1) * 100}`;
               // lnStr = getBillSection(node);
               for (const proKey in chapterMap) {
-                if (node.data.name && node.data.name.indexOf(proKey) >= 0) {
+                let bName = node.data.name || '';
+                bName = bName.replace(/''/g, '');
+                if (bName.indexOf(proKey) >= 0) {
                   lnStr = `${chapterMap[proKey]}`;
                   break;
                 }