/*
 * @Descripttion: 地区配置
 * @Author: vian
 * @Date: 2020-08-20 16:03:23
 */

const INTERFACE_CONFIG = (() => {
  const {
    EXPORT_KIND: {
      BID_INVITATION,
      BID_SUBMISSION,
      CONTROL
    }
  } = window.commonConstants;

  // 注意：相同地区的导入导出接口js文件名称应相同。eg: 安徽马鞍山导出：在export目录下：anhui_maanshan.js; 在import目录下：anhui_maanshan.js;
  return {
    '安徽@马鞍山': {
      scriptName: 'anhui_maanshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.MASGLZB',
        [BID_SUBMISSION]: '.MASGLTB',
        [CONTROL]: '.MASGLKZJ',
      },
    },
    '安徽@淮北': {
      scriptName: 'anhui_maanshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.AHHBGLZB',
        [BID_SUBMISSION]: '.AHHBGLTB',
        [CONTROL]: '.AHHBGLKZJ',
      },
    },
    '安徽@铜陵': {
      scriptName: 'anhui_maanshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.TLGLZB',
        [BID_SUBMISSION]: '.TLGLTB',
        [CONTROL]: '.TLGLKZJ',
      },
    },
    '安徽@芜湖': {
      scriptName: 'anhui_maanshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.WHGLZB',
        [BID_SUBMISSION]: '.WHGLTB',
        [CONTROL]: '.WHGLKZJ',
      },
    },
    '安徽@黄山': {
      scriptName: 'anhui_maanshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.GLZ',
        [BID_SUBMISSION]: '.GLT',
        [CONTROL]: '.GLX',
      },
    },
    '安徽@宣城': {
      scriptName: 'anhui_maanshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.XCGLZB',
        [BID_SUBMISSION]: '.XCGLTB',
        [CONTROL]: '.XCGLKZJ',
      },
    },
    '安徽@亳州': {
      scriptName: 'anhui_maanshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.BZGLZB',
        [BID_SUBMISSION]: '.BZGLTB',
        [CONTROL]: '.BZGLKZJ',
      },
    },
    '安徽@六安': {
      scriptName: 'anhui_maanshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.LAGLZB',
        [BID_SUBMISSION]: '.LAGLTB',
        [CONTROL]: '.LAGLKZJ',
      },
    },
    '安徽@池州': {
      scriptName: 'anhui_chizhou.js',
      fileSuffix: {
        [BID_INVITATION]: '.czglzb',
        [BID_SUBMISSION]: '.czgltb',
        [CONTROL]: '.czglzbkzj',
      }
    },
    '安徽@安庆': {
      scriptName: 'anhui_maanshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.AHAQGLZB',
        [BID_SUBMISSION]: '.AHAQGLTB',
        [CONTROL]: '.AHAQGLKZJ',
      },
    },
    '安徽@淮南': {
      scriptName: 'anhui_maanshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.AHHNGLZB',
        [BID_SUBMISSION]: '.AHHNGLTB',
        [CONTROL]: '.AHHNGLKZJ',
      },
    },
    '广东@中山': {
      scriptName: 'guangdong_zhongshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.XML',
        [BID_SUBMISSION]: '.XML',
        [CONTROL]: '.XML',
      },
    },
    '山东@山东': {
      scriptName: 'shandong_common.js',
      fileSuffix: {
        [BID_INVITATION]: '.sdjtzb',
        [BID_SUBMISSION]: '.sdjttb',
        [CONTROL]: '.sdjtkzj',
      },
    },
    '新疆@新疆': {
      scriptName: 'anhui_maanshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.xjglzbx',
        [BID_SUBMISSION]: '.xjgltbx',
        [CONTROL]: '.xjglkzjx',
      },
    },
    '甘肃@张掖': {
      scriptName: 'anhui_maanshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.ZYEGLZB',
        [BID_SUBMISSION]: '.ZYEGLTB',
        [CONTROL]: '.ZYEGLKZJ',
      },
    },
    '浙江@宁海': {
      scriptName: 'zhejiang_ninghai.js',
      fileSuffix: {
        [BID_INVITATION]: '.zjglzb',
        [BID_SUBMISSION]: '.zjgltb',
        [CONTROL]: '.zjglzbkzj',
      },
    },
    '浙江@象山': {
      scriptName: 'zhejiang_xiangshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.zjglzb',
        [BID_SUBMISSION]: '.zjgltb',
        [CONTROL]: '.zjglzbkzj',
      },
    },
    '浙江@海曙区': {
      scriptName: 'zhejiang_ninghai.js',
      fileSuffix: {
        [BID_INVITATION]: '.zjglzb',
        [BID_SUBMISSION]: '.zjgltb',
        [CONTROL]: '.zjglzbkzj',
      },
    },
    '浙江@宁波慈溪': {
      scriptName: 'zhejiang_xiangshan.js',
      fileSuffix: {
        [BID_INVITATION]: '.zjglzb',
        [BID_SUBMISSION]: '.zjgltb',
        [CONTROL]: '.zjglzbkzj',
      },
    },
  };
})()