<template>
  <view class="ComCss">
    <cardMoudule :cardData="population" :required="false" title="总体概况"></cardMoudule>
    <cardMoudule :cardData="urbanDevelopment" :required="true" title="城市总体发展规划"></cardMoudule>
    <cardMoudule :cardData="natureOfBusiness" :required="false" title="经营区域及人口_经营区域(四至边界)"></cardMoudule>
    <cardMoudule :cardData="regionalPopulation" :required="false" title="经营区域及人口_经营区域人口"></cardMoudule>
    <!-- <cardMoudule :cardData="gasCompetition1" :required="true" title="管道燃气竞争对手及发展现状"></cardMoudule>
    <cardMoudule :cardData="gasCompetition2" :required="false" title="管道燃气竞争对手及发展现状"></cardMoudule> -->
    <cardMoudule :cardData="guarantee" :required="true" title="气源保障与管网规划"></cardMoudule>
    <cardMoudule :cardData="builtUpArea" :required="false" title="建成区: 经营区域城市建成区"></cardMoudule>
    <cardMoudule :cardData="ruralAreas" :required="false" title="乡镇及农村:乡镇及农村区域"></cardMoudule>
    <cardMoudule :cardData="completionStatus" :required="false" title="历史近4年和当前预算完成情况"></cardMoudule>
    <cardMoudule :cardData="naturalGas" :required="false" title="能源市场分析_天燃气与各燃气经济价格对比表"></cardMoudule>
    <cardMoudule :cardData="energyAnalysis" :required="false" title="能源市场分析_不同类型的客户选用燃料分析"></cardMoudule>
    <cardMoudule :cardData="teamStatus" :required="false" title="市场开发团队建设状况"></cardMoudule>
  </view>
</template>

<script>
  import cardMoudule from "./cardMoudule.vue"
  export default {
    components: {
      cardMoudule
    },
    props: {
      reportData: {
        type: Object
      },
      attachment: {
        type: Object
      },
      fiscalYear: {
        type: String
      }
    },
    data() {
      return {
        population: [{
            cardType: 1,
            required: true,
            title: '预算主体名称',
            value: "",
            icon: "arrow-down",
            key: "mainName"
          },
          {
            cardType: 1,
            required: false,
            title: '成立时间(年/月)',
            value: "",
            icon: "calendar",
            key: "establishmentTime"
          },
          {
            cardType: 1,
            required: false,
            title: '与中燃合资时间(年/月)',
            value: "",
            icon: "calendar",
            key: "mergeTime"
          },
          {
            cardType: 1,
            required: false,
            title: '过渡气源通气时间(年/月)',
            value: "",
            icon: "calendar",
            key: "transitionTime"
          },
          {
            cardType: 1,
            required: false,
            title: '管输气通气时间(年/月)',
            value: "",
            icon: "calendar",
            key: "conduitTime"
          },
          {
            cardType: 5,
            required: true,
            title: '特许经营区域范围的行政区划(或与政府约定的经营区域范围)',
            value: "",
            key: "privilegeRegion"
          },
          {
            cardType: 1,
            required: true,
            title: '经营区域面积(平方公里)',
            value: "",
            key: "manageArea"
          },
          {
            cardType: 5,
            required: true,
            title: '经营区域城市建成区行政区划',
            value: "",
            key: "manageRegion"
          },
          {
            cardType: 1,
            required: true,
            title: '居民管道燃气安装确认户数(万户)',
            value: "",
            key: "confirmHousehold"
          },
          {
            cardType: 1,
            required: true,
            title: '经营区域城市建成区中压管网已覆盖户',
            value: "",
            key: "builtCoveredHousehold"
          },
          {
            cardType: 1,
            required: true,
            title: '气化率%',
            value: "",
            key: "gasRate"
          },
          {
            cardType: 1,
            required: true,
            title: '管网覆盖率%',
            value: "",
            key: "coverageRate"
          },
          {
            cardType: 1,
            required: true,
            title: '经营区域范围内，城市建成区以外的管网已覆盖的乡镇明细清单(填乡镇名字)',
            value: "",
            key: "coveredTowns"
          },
          {
            cardType: 1,
            required: true,
            title: '经营区域范国内，城市建成区以外的管网已覆盖的乡镇人口户数(户)',
            value: "",
            key: "outsideCoveredHousehold"
          },
          {
            cardType: 1,
            required: true,
            title: '经营区域范围内，管网未盖、但符合集团投资标准乡镇清单(填乡镇名字)',
            value: "",
            key: "uncoveredTowns"
          },
          {
            cardType: 1,
            required: true,
            title: '经营区域范围内，管网未覆盖、但符合集团投资标准乡镇人口(户)',
            value: "",
            key: "uncoveredHousehold"
          },
        ],
        urbanDevelopment: [{
          cardType: 2,
          required: true,
          title: '预算主体名称',
          value: "",
          icon: "arrow-down",
          key: "developmentPlan"
        }],
        natureOfBusiness: [{
            cardType: 1,
            required: true,
            title: '东至',
            value: "",
            key: "manageRegionEast"
          },
          {
            cardType: 1,
            required: true,
            title: '西至',
            value: "",
            key: "manageRegionWest"
          },
          {
            cardType: 1,
            required: true,
            title: '南至',
            value: "",
            key: "manageRegionSouth"
          },
          {
            cardType: 1,
            required: true,
            title: '北至',
            value: "",
            key: "manageRegionNorth"
          }
        ],
        regionalPopulation: [{
            cardType: 1,
            required: true,
            title: '经营区域范围内总人口(万人)',
            value: "",
            key: "manageTotalNumber"
          },
          {
            cardType: 1,
            required: true,
            title: '建成区常住人口(万人)',
            value: "",
            key: "builtResidentNumber"
          },
          {
            cardType: 1,
            required: true,
            title: '建成区常住人口(万户)',
            value: "",
            key: "builtResidentHousehold"
          },
          {
            cardType: 1,
            required: true,
            title: '建成区户均人口(人/户)',
            value: "",
            key: "builtAverage"
          },
          {
            cardType: 1,
            required: true,
            title: '乡镇常住人口(万人)',
            value: "",
            key: "townsResidentNumber"
          },
          {
            cardType: 1,
            required: true,
            title: '乡镇常住人口(万户)',
            value: "",
            key: "townsResidentHousehold"
          },
          {
            cardType: 1,
            required: true,
            title: '乡镇户均人口(人/户)',
            value: "",
            key: "townsAverage"
          }
        ],
        gasCompetition1: [{
          cardType: 2,
          required: true,
          value: "",
          key: "competitorDevelopmentSituation"
        }],
        gasCompetition2: [{
            cardType: 3,
            required: true,
            title: '新户',
            value: "",
          },
          {
            cardType: 2,
            required: true,
            value: "",
            key: "newDevelopmentSituation"
          },
          {
            cardType: 3,
            required: true,
            title: '老户',
            value: "",
          },
          {
            cardType: 2,
            required: true,
            value: "",
            key: "oldDevelopmentSituation"
          },
          {
            cardType: 3,
            required: true,
            title: '农村居民市场',
            value: "",
          },
          {
            cardType: 2,
            required: true,
            value: "",
            key: "villageDevelopmentSituation"
          },
          {
            cardType: 3,
            required: true,
            title: '工商户',
            value: "",
          },
          {
            cardType: 2,
            required: true,
            value: "",
            key: "commerceDevelopmentSituation"
          }
        ],
        guarantee: [{
          cardType: 2,
          required: true,
          value: "",
          icon: "arrow-down",
          key: "pipelinePlan"
        }],
        builtUpArea: [{
            cardType: 3,
            required: true,
            title: '新居民',
            value: "",
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "cityNewUser",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "cityNewUser",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "cityNewUser",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '现有点火通气户数',
            value: "",
            key: "cityNewUser",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "cityNewUser",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可开发户数',
            value: "",
            key: "cityNewUser",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: '老居民',
            value: "2023年玉林市城市总体规划",
            key: ""
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "cityOldUser",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "cityOldUser",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "cityOldUser",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '现有点火通气户数',
            value: "",
            key: "cityOldUser",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "cityOldUser",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可开发户数',
            value: "",
            key: "cityOldUser",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: '商业(含公福)',
            value: "2023年玉林市城市总体规划",
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "cityCommerceUser",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "cityCommerceUser",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "cityCommerceUser",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '现有点火通气户数',
            value: "",
            key: "cityCommerceUser",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "cityCommerceUser",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可开发户数',
            value: "",
            key: "cityCommerceUser",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: '工业',
            value: "2023年玉林市城市总体规划",
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "cityIndustryUser",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "cityIndustryUser",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "cityIndustryUser",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '现有点火通气户数',
            value: "",
            key: "cityIndustryUser",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "cityIndustryUser",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可开发户数',
            value: "",
            key: "cityIndustryUser",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: '合计',
            value: "2023年玉林市城市总体规划",
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "cityTotalUser",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "cityTotalUser",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "cityTotalUser",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '现有点火通气户数',
            value: "",
            key: "cityTotalUser",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "cityTotalUser",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可开发户数',
            value: "",
            key: "cityTotalUser",
            id: "5"
          }
        ],
        ruralAreas: [{
            cardType: 3,
            required: true,
            title: '新居民',
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "townsNewUser",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "townsNewUser",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "townsNewUser",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '现有点火通气户数',
            value: "",
            key: "townsNewUser",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "townsNewUser",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可开发户数',
            value: "",
            key: "townsNewUser",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: '老居民',
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "townsOldUser",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "townsOldUser",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "townsOldUser",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '现有点火通气户数',
            value: "",
            key: "townsOldUser",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "townsOldUser",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可开发户数',
            value: "",
            key: "townsOldUser",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: '商业(含公福)',
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "townsCommerceUser",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "townsCommerceUser",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "townsCommerceUser",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '现有点火通气户数',
            value: "",
            key: "townsCommerceUser",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "townsCommerceUser",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可开发户数',
            value: "",
            key: "townsCommerceUser",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: '工业',
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "townsIndustryUser",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "townsIndustryUser",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "townsIndustryUser",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '现有点火通气户数',
            value: "",
            key: "townsIndustryUser",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "townsIndustryUser",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可开发户数',
            value: "",
            key: "townsIndustryUser",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: '合计',
            value: "2023年玉林市城市总体规划",
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "townsTotalUser",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "townsTotalUser",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "townsTotalUser",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '现有点火通气户数',
            value: "",
            key: "townsTotalUser",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "townsTotalUser",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可开发户数',
            value: "",
            key: "townsTotalUser",
            id: "5"
          }
        ],
        completionStatus: [
          //新建居民用户历史完成情况
          {
            cardType: 3,
            required: true,
            title: `新建居民用户(含乡镇新房)_${this.fiscalYear}财年(预计)`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "newUserSituation",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "newUserSituation",
            id: "1"
          },
          {
            cardType: 3,
            required: true,
            title: `新建居民用户(含乡镇新房)_${this.fiscalYear - 1}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "newUserSituation",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "newUserSituation",
            id: "3"
          },
          {
            cardType: 3,
            required: true,
            title: `新建居民用户(含乡镇新房)_${this.fiscalYear - 2}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "newUserSituation",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "newUserSituation",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: `新建居民用户(含乡镇新房)_${this.fiscalYear - 3}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "newUserSituation",
            id: "6"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "newUserSituation",
            id: "7"
          },
          {
            cardType: 3,
            required: true,
            title: `新建居民用户(含乡镇新房)_${this.fiscalYear - 4}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "newUserSituation",
            id: "8"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "newUserSituation",
            id: "9"
          },
          //城市老居民用户历史完成情况
          {
            cardType: 3,
            required: true,
            title: `城市老居民用户_${this.fiscalYear}财年(预计)`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "oldUserSituation",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "oldUserSituation",
            id: "1"
          },
          {
            cardType: 3,
            required: true,
            title: `城市老居民用户_${this.fiscalYear - 1}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "oldUserSituation",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "oldUserSituation",
            id: "3"
          },
          {
            cardType: 3,
            required: true,
            title: `城市老居民用户_${this.fiscalYear - 2}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "oldUserSituation",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "oldUserSituation",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: `城市老居民用户_${this.fiscalYear - 3}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "oldUserSituation",
            id: "6"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "oldUserSituation",
            id: "7"
          },
          {
            cardType: 3,
            required: true,
            title: `城市老居民用户_${this.fiscalYear - 4}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "oldUserSituation",
            id: "8"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "oldUserSituation",
            id: "9"
          },
          //农村气代媒
          {
            cardType: 3,
            required: true,
            title: `农村气代媒(含气代柴薪)_${this.fiscalYear}财年(预计)`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "gasCoalSituation",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "gasCoalSituation",
            id: "1"
          },
          {
            cardType: 3,
            required: true,
            title: `农村气代媒(含气代柴薪)_${this.fiscalYear - 1}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "gasCoalSituation",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "gasCoalSituation",
            id: "3"
          },
          {
            cardType: 3,
            required: true,
            title: `农村气代媒(含气代柴薪)_${this.fiscalYear - 2}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "gasCoalSituation",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "gasCoalSituation",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: `农村气代媒(含气代柴薪)_${this.fiscalYear - 3}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "gasCoalSituation",
            id: "6"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "gasCoalSituation",
            id: "7"
          },
          {
            cardType: 3,
            required: true,
            title: `农村气代媒(含气代柴薪)_${this.fiscalYear - 4}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "gasCoalSituation",
            id: "8"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "gasCoalSituation",
            id: "9"
          },
          //乡村燃气居民历史完成情况
          {
            cardType: 3,
            required: true,
            title: `乡村燃气居民_${this.fiscalYear}财年(预计)`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "villageGasSituation",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "villageGasSituation",
            id: "1"
          },
          {
            cardType: 3,
            required: true,
            title: `乡村燃气居民_${this.fiscalYear - 1}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "villageGasSituation",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "villageGasSituation",
            id: "3"
          },
          {
            cardType: 3,
            required: true,
            title: `乡村燃气居民_${this.fiscalYear - 2}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "villageGasSituation",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "villageGasSituation",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: `乡村燃气居民_${this.fiscalYear - 3}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "villageGasSituation",
            id: "6"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "villageGasSituation",
            id: "7"
          },
          {
            cardType: 3,
            required: true,
            title: `乡村燃气居民_${this.fiscalYear - 4}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "villageGasSituation",
            id: "8"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "villageGasSituation",
            id: "9"
          },
          //商业用户历史完成情况
          {
            cardType: 3,
            required: true,
            title: `商业用户_${this.fiscalYear}财年(预计)`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "commerceUserSituation",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "commerceUserSituation",
            id: "1"
          },
          {
            cardType: 3,
            required: true,
            title: `商业用户_${this.fiscalYear - 1}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "commerceUserSituation",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "commerceUserSituation",
            id: "3"
          },
          {
            cardType: 3,
            required: true,
            title: `商业用户_${this.fiscalYear - 2}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "commerceUserSituation",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "commerceUserSituation",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: `商业用户_${this.fiscalYear - 3}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "commerceUserSituation",
            id: "6"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "commerceUserSituation",
            id: "7"
          },
          {
            cardType: 3,
            required: true,
            title: `商业用户_${this.fiscalYear - 4}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "commerceUserSituation",
            id: "8"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "commerceUserSituation",
            id: "9"
          },
          //工业用户历史完成情况
          {
            cardType: 3,
            required: true,
            title: `工业用户_${this.fiscalYear}财年(预计)`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "industryUserSituation",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "industryUserSituation",
            id: "1"
          },
          {
            cardType: 3,
            required: true,
            title: `工业用户_${this.fiscalYear - 1}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "industryUserSituation",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "industryUserSituation",
            id: "3"
          },
          {
            cardType: 3,
            required: true,
            title: `工业用户_${this.fiscalYear - 2}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "industryUserSituation",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "industryUserSituation",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: `工业用户_${this.fiscalYear - 3}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "industryUserSituation",
            id: "6"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "industryUserSituation",
            id: "7"
          },
          {
            cardType: 3,
            required: true,
            title: `工业用户_${this.fiscalYear - 4}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "industryUserSituation",
            id: "8"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "industryUserSituation",
            id: "9"
          },
          //历史完成情况合计
          {
            cardType: 3,
            required: true,
            title: `合计_${this.fiscalYear}财年(预计)`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "completeTotal",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "completeTotal",
            id: "1"
          },
          {
            cardType: 3,
            required: true,
            title: `合计_${this.fiscalYear - 1}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "completeTotal",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "completeTotal",
            id: "3"
          },
          {
            cardType: 3,
            required: true,
            title: `合计_${this.fiscalYear - 2}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "completeTotal",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "completeTotal",
            id: "5"
          },
          {
            cardType: 3,
            required: true,
            title: `合计_${this.fiscalYear - 3}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "completeTotal",
            id: "6"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "completeTotal",
            id: "7"
          },
          {
            cardType: 3,
            required: true,
            title: `合计_${this.fiscalYear - 4}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '总预算任务数',
            value: "",
            key: "completeTotal",
            id: "8"
          },
          {
            cardType: 1,
            required: true,
            title: '实际完成数',
            value: "",
            key: "completeTotal",
            id: "9"
          },
        ],
        naturalGas: [
          //民用天然气
          {
            cardType: 3,
            required: true,
            title: '民用天燃气(Nm3)',
          },
          {
            cardType: 1,
            required: true,
            title: '平台热值(Kcal)',
            value: "",
            key: "domesticNaturalGas",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '市场价(元)',
            value: "",
            key: "domesticNaturalGas",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '折合1Nm3天燃气价格(元)',
            value: "",
            key: "domesticNaturalGas",
            id: "2"
          },
          //商用天然气
          {
            cardType: 3,
            required: true,
            title: '商用天然气(Nm3)',
          },
          {
            cardType: 1,
            required: true,
            title: '平台热值(Kcal)',
            value: "",
            key: "commerceNaturalGas",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '市场价(元)',
            value: "",
            key: "commerceNaturalGas",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '折合1Nm3天燃气价格(元)',
            value: "",
            key: "commerceNaturalGas",
            id: "2"
          },
          //液化气
          {
            cardType: 3,
            required: true,
            title: '液化气(kg)',
          },
          {
            cardType: 1,
            required: true,
            title: '平台热值(Kcal)',
            value: "",
            key: "liquefiedGas",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '市场价(元)',
            value: "",
            key: "liquefiedGas",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '折合1Nm3天燃气价格(元)',
            value: "",
            key: "liquefiedGas",
            id: "2"
          },
          //环保油
          {
            cardType: 3,
            required: true,
            title: '环保油(kg)',
          },
          {
            cardType: 1,
            required: true,
            title: '平台热值(Kcal)',
            value: "",
            key: "environmentallyFriendlyOil",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '市场价(元)',
            value: "",
            key: "environmentallyFriendlyOil",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '折合1Nm3天燃气价格(元)',
            value: "",
            key: "environmentallyFriendlyOil",
            id: "2"
          },
          //煤炭
          {
            cardType: 3,
            required: true,
            title: '媒(kg)',
          },
          {
            cardType: 1,
            required: true,
            title: '平台热值(Kcal)',
            value: "",
            key: "coal",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '市场价(元)',
            value: "",
            key: "coal",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '折合1Nm3天燃气价格(元)',
            value: "",
            key: "coal",
            id: "2"
          },
          //商业用电
          {
            cardType: 3,
            required: true,
            title: '商业用电(度)',
          },
          {
            cardType: 1,
            required: true,
            title: '平台热值(Kcal)',
            value: "",
            key: "commerceElectricity",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '市场价(元)',
            value: "",
            key: "commerceElectricity",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '折合1Nm3天燃气价格(元)',
            value: "",
            key: "commerceElectricity",
            id: "2"
          }
        ],
        energyAnalysis: [{
          cardType: 2,
          required: true,
          title: '预算主体名称',
          key: "selectAnalyze",
          value: "",
        }],
        teamStatus: [{
            cardType: 1,
            required: true,
            title: '现有部门经理(人)',
            value: "",
            key: "departmentManagerNumber"
          },
          {
            cardType: 1,
            required: true,
            title: '现有副经理(人)',
            value: "",
            key: "assistantManagerNumber"
          },
          {
            cardType: 1,
            required: true,
            title: '现有主管(人)',
            value: "",
            key: "directorNumber"
          },
          {
            cardType: 1,
            required: true,
            title: '现有业务员(人)',
            value: "",
            key: "salesmanNumber"
          },
          {
            cardType: 1,
            required: true,
            title: '现有内勤(人)',
            value: "",
            key: "officeStaffNumber"
          },
          {
            cardType: 1,
            required: true,
            title: '现有其他人员(人)',
            value: "",
            key: "otherNumber"
          },
          {
            cardType: 1,
            required: true,
            title: '现有合计(人)',
            value: "",
            key: "totalNumber"
          },
        ],
      }
    },
    computed: {

    },
    mounted() {
      this.initData()
      // this.fiscalYear = this.fiscalYear;
    },
    methods: {
      initData() {

        // 逗号分隔分配
        const updateData = (dataArray, reportData) => {
          dataArray.forEach(data => {
            if (data.key in reportData) {
              let Arr = reportData[data.key].split(",");
              data.value = Arr[data.id];
            }
          });
        };

        // key直接分配
        const updateDataByKey = (dataArray, reportData) => {
          dataArray.forEach(data => {
            if (data.key in reportData) {
              data.value = reportData[data.key];
            }
          });
        };

        updateData(this.builtUpArea, this.attachment);
        updateData(this.ruralAreas, this.attachment);
        updateData(this.completionStatus, this.attachment);
        updateData(this.naturalGas, this.attachment);

        updateDataByKey(this.population, this.reportData);
        updateDataByKey(this.urbanDevelopment, this.reportData);
        updateDataByKey(this.natureOfBusiness, this.reportData);
        updateDataByKey(this.regionalPopulation, this.reportData);
        updateDataByKey(this.guarantee, this.reportData);
        updateDataByKey(this.energyAnalysis, this.attachment);
        updateDataByKey(this.teamStatus, this.attachment);

        // this.population.forEach(data => {
        //   if (data.key in this.reportData) {
        //     data.value = this.reportData[data.key];
        //   }
        // });
        // this.urbanDevelopment.forEach(data => {
        //   if (data.key in this.reportData) {
        //     data.value = this.reportData[data.key];
        //   }
        // });
        // this.natureOfBusiness.forEach(data => {
        //   if (data.key in this.reportData) {
        //     data.value = this.reportData[data.key];
        //   }
        // });
        // this.regionalPopulation.forEach(data => {
        //   if (data.key in this.reportData) {
        //     data.value = this.reportData[data.key];
        //   }
        // });
        //移除
        // this.gasCompetition1.forEach(data => {
        //   if (data.key in this.reportData) {
        //     data.value = this.reportData[data.key];
        //   }
        // });
        //移除
        // this.gasCompetition2.forEach(data => {
        //   if (data.key in this.reportData) {
        //     data.value = this.reportData[data.key];
        //   }
        // });
        // this.guarantee.forEach(data => {
        //   if (data.key in this.reportData) {
        //     data.value = this.reportData[data.key];
        //   }
        // });
        // //城市新用户发展规模
        // this.builtUpArea.forEach(data => {
        //   if (data.key in this.attachment) {
        //     let Arr = this.attachment[data.key].split(",");
        //     data.value = Arr[data.id];
        //   }
        // });
        // this.ruralAreas.forEach(data => {
        //   if (data.key in this.attachment) {
        //     let Arr = this.attachment[data.key].split(",");
        //     data.value = Arr[data.id];
        //   }
        // });
        // this.completionStatus.forEach(data => {
        //   if (data.key in this.attachment) {
        //     let Arr = this.attachment[data.key].split(",");
        //     data.value = Arr[data.id];
        //   }
        // });
        // this.naturalGas.forEach(data => {
        //   if (data.key in this.attachment) {
        //     let Arr = this.attachment[data.key].split(",");
        //     data.value = Arr[data.id];
        //   }
        // });
        // this.energyAnalysis.forEach(data => {
        //   if (data.key in this.attachment) {
        //     data.value = this.attachment[data.key];
        //   }
        // });
        // this.teamStatus.forEach(data => {
        //   if (data.key in this.attachment) {
        //     data.value = this.attachment[data.key];
        //   }
        // });
      }
    }
  }
</script>

<style lang="scss" scoped>

</style>
