Browse Source

浙江杭州接口调整

Tony Kang 1 year ago
parent
commit
eaf1bc2167
1 changed files with 5 additions and 3 deletions
  1. 5 3
      web/building_saas/standard_interface/export/zhejiang_hangzhou.js

+ 5 - 3
web/building_saas/standard_interface/export/zhejiang_hangzhou.js

@@ -76,7 +76,7 @@ INTERFACE_EXPORT = (() => {
         '一般计税': '1',
         '简易计税': '2',
       }
-  
+
       // 是否是材料
       const isMaterial = (type) => {
         return /^2/.test(type);
@@ -493,7 +493,8 @@ INTERFACE_EXPORT = (() => {
         let chaptNo = getSection(node);
         let lb = getLB(node);
         if (isOneSeven) {
-          chaptNo = `${(index + 1) * 100}`;
+          // chaptNo = `${(index + 1) * 100}`;
+          chaptNo = (node.data.name || '').replace(/[^0-9]/g, '')
           lb = chaptNo;
         }
         // isBidSubmission //这是投标判断
@@ -632,7 +633,8 @@ INTERFACE_EXPORT = (() => {
           nodes.forEach((node, index) => {
             let lnStr = longNoStr;
             if (longNoStr === '') {
-              lnStr = `${(index + 1) * 100}`;
+              // lnStr = `${(index + 1) * 100}`;
+              lnStr = getBillSection(node);
             }
             const glcqdmx = new GongCLQDMX(node, lnStr);
             rst.push(glcqdmx);