瀏覽代碼

fix:导出接口,淮北version为1.1,其余为1.0

vian 5 年之前
父節點
當前提交
9abd5360e6
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      web/building_saas/standard_interface/export/anhui_maanshan.js

+ 3 - 2
web/building_saas/standard_interface/export/anhui_maanshan.js

@@ -47,6 +47,8 @@ INTERFACE_EXPORT = (() => {
 
     // 节点定义--------------------------------
 
+    const subArea = areaKey.split('@')[1];
+
     // 建设项目基本信息
     function JingJiBiao(projectName, information) {
       const taxModeMap = {
@@ -67,12 +69,11 @@ INTERFACE_EXPORT = (() => {
         { name: 'Jsdw', value: getValueByKey(information, 'constructingUnits') }, // 建设单位
         { name: 'Czzt', value: czzt[exportKind] }, // 操作状态:招标、投标、招标控制,即导出接口时,所选的文件类型
         { name: 'Jsfs', value: taxModeMap[getValueByKey(information, 'taxMode')] || '1', type: TYPE.INT }, // 计税方式,默认1。1=一般计税 2=简易计税
-        { name: 'Version', value: '1.1' },
+        { name: 'Version', value: subArea === '淮北' ? '1.1' : '1.0' },
       ];
       Element.call(this, 'JingJiBiao', attrs);
     }
 
-    const subArea = areaKey.split('@')[1];
 
     // 招标信息
     function ZhaoBiaoXx(information) {