<template>
  <view class="ComCss">
    <cardMoudule :cardData="data1" :required="false" title="城市居民用户_新建居民用户"></cardMoudule>
    <cardMoudule :cardData="data2" :required="false" title="城市居民用户_新建居民用户"></cardMoudule>
    <cardMoudule :cardData="data3" :required="false" title="城市居民用户_新建居民用户"></cardMoudule>
    <cardMoudule :cardData="data4" :required="false" title="城市居民用户_老居民用户"></cardMoudule>
    <cardMoudule :cardData="data5" :required="false" title="城市居民用户_老居民用户"></cardMoudule>
    <cardMoudule :cardData="data6" :required="false" title="城市居民用户_老居民用户"></cardMoudule>
    <cardMoudule :cardData="data7" :required="false" title="城市居民用户_老居民用户"></cardMoudule>
    <cardMoudule :cardData="data8" :required="false" title="城市居民用户_老居民用户"></cardMoudule>
    <cardMoudule :cardData="data9" :required="false" title="城市居民用户_老居民用户"></cardMoudule>
    <cardMoudule :cardData="data10" :required="false" title="农村燃气居民用户_乡村燃气居民"></cardMoudule>
    <cardMoudule :cardData="data11" :required="false" title="农村燃气居民用户_乡村燃气居民"></cardMoudule>
    <cardMoudule :cardData="data12" :required="false" title="工商业用户"></cardMoudule>
    <cardMoudule :cardData="data13" :required="true" title="安装费单价情况"></cardMoudule>
    <cardMoudule :cardData="data14" :required="false" title="天燃气销售业务"></cardMoudule>
    <cardMoudule :cardData="data15" :required="false" title="天燃气销售业务"></cardMoudule>
    <cardMoudule :cardData="data16" :required="true" title="“天燃气贸易”业务"></cardMoudule>
    <cardMoudule :cardData="data17" :required="true" title="气源及燃气购销价格调研"></cardMoudule>
    <cardMoudule :cardData="data18" :required="true" title="财务确认安装且未回款户数"></cardMoudule>
  </view>
</template>

<script>
  import cardMoudule from "./cardMoudule.vue"
  export default {
    components: {
      cardMoudule
    },
    props: {
      reportData: {
        type: Object
      },
      newBuildingInfo: {
        type: Object
      },
      newBuildingItem: {
        type: Object
      },
      fiscalYear:{
        type:String
      }
    },
    data() {
      return {
        data1: [{
            cardType: 4,
            required: true,
            title: '当地近四年新建居民累计确认安装户数及政府拍卖土地、新开工/新竣工住宅房地产情况:',
          },
          //新户财务确认安装数
          {
            cardType: 3,
            required: true,
            title: '新户财务确认安装数(户)',
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 4}年`,
            value: "",
            key: "cityNewInstalled",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 3}年`,
            value: "",
            key: "cityNewInstalled",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 2}年`,
            value: "",
            key: "cityNewInstalled",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 1}年(预计)`,
            value: "",
            key: "cityNewInstalled",
            id: "3"
          },
          //政府拍卖/转让/拆迁土地面积合计
          {
            cardType: 3,
            required: true,
            title: '政府拍卖/转让/拆迁土地面积合计',
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 4}年`,
            value: "",
            key: "auctionArea",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 3}年`,
            value: "",
            key: "auctionArea",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 2}年`,
            value: "",
            key: "auctionArea",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 1}年(预计)`,
            value: "",
            key: "auctionArea",
            id: "3"
          },
          //新开工住宅房地面积
          {
            cardType: 3,
            required: true,
            title: '新开工住宅房地面积',
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 4}年`,
            value: "",
            key: "newStartArea",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 3}年`,
            value: "",
            key: "newStartArea",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 2}年`,
            value: "",
            key: "newStartArea",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 1}年(预计)`,
            value: "",
            key: "newStartArea",
            id: "3"
          },
          //新竣工住宅房地产面积
          {
            cardType: 3,
            required: true,
            title: '新竣工住宅房地产面积',
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 4}年`,
            value: "",
            key: "newCompletedArea",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 3}年`,
            value: "",
            key: "newCompletedArea",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 2}年`,
            value: "",
            key: "newCompletedArea",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: `${this.fiscalYear == "" ? "" : this.fiscalYear - 1}年(预计)`,
            value: "",
            key: "newCompletedArea",
            id: "3"
          },
        ],
        data2: [{
            cardType: 4,
            required: true,
            title: `${this.fiscalYear}年楼盘户数预计在未来三年安装确认的新建楼盘信息:预计${this.fiscalYear - 2}财年-${this.fiscalYear - 1}财年已签约且在${this.fiscalYear}财年安装确认项目`,
            value: "2023年玉林市城市总体规划",
          },
          {
            cardType: 3,
            required: true,
            title: `${this.fiscalYear - 2}财年及之前签约且在${this.fiscalYear}财年安装`,
          },
          {
            cardType: 1,
            required: true,
            title: '小区名称',
            value: "",
            key: "communityName",
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "householdNumber",
          },
          {
            cardType: 1,
            required: true,
            title: '预计安装户数',
            value: "",
            key: "predictInstallNumber",
          },

        ],
        data3: [{
            cardType: 4,
            required: true,
            title: `预计${this.fiscalYear}-${parseInt(this.fiscalYear)+2}财年安装确认项目
            (预计${parseInt(this.fiscalYear)}财年签约，
            ${this.fiscalYear}财年、${parseInt(this.fiscalYear)+1}财年、${parseInt(this.fiscalYear)+2}财年安装)`,
          },
          // 23财年
          {
            cardType: 3,
            required: true,
            title: `${parseInt(this.fiscalYear)}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '楼盘名称',
            value: "",
            key: "buildingItemDetail1",
            id: "name"
          },
          {
            cardType: 1,
            required: true,
            title: '楼盘类型',
            value: "",
            key: "buildingItemDetail1",
            id: "type"
          },
          {
            cardType: 1,
            required: true,
            title: '开发商名称',
            value: "",
            key: "buildingItemDetail1",
            id: "devName"
          },
          {
            cardType: 1,
            required: true,
            title: '预计管道天燃气安装户数',
            value: "",
            key: "buildingItemDetail1",
            id: "number"
          },
          {
            cardType: 1,
            required: true,
            title: '签约时间(含计划签约)',
            value: "",
            key: "buildingItemDetail1",
            id: "time"
          },
          {
            cardType: 1,
            required: true,
            title: '预计燃气安装',
            value: "",
            key: "buildingItemDetail1",
            id: "installTime"
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear)}财年小计`,
            value: "",
            key: "currentInstallSubtotal"
          },

          // 24财年
          {
            cardType: 3,
            required: true,
            title: `${parseInt(this.fiscalYear)+1}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '楼盘名称',
            value: "",
            key: "buildingItemDetail2",
            id: "name"
          },
          {
            cardType: 1,
            required: true,
            title: '楼盘类型',
            value: "",
            key: "buildingItemDetail2",
            id: "type"
          },
          {
            cardType: 1,
            required: true,
            title: '开发商名称',
            value: "",
            key: "buildingItemDetail2",
            id: "devName"
          },
          {
            cardType: 1,
            required: true,
            title: '预计管道天燃气安装户数',
            value: "",
            key: "buildingItemDetail2",
            id: "number"
          },
          {
            cardType: 1,
            required: true,
            title: '签约时间(含计划签约)',
            value: "",
            key: "buildingItemDetail2",
            id: "time"
          },
          {
            cardType: 1,
            required: true,
            title: '预计燃气安装',
            value: "",
            key: "buildingItemDetail2",
            id: "installTime"
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear)+1}财年小计`,
            value: "",
            key: "afterInstallSubtotal"
          },
          // 25财年
          {
            cardType: 3,
            required: true,
            title: `${parseInt(this.fiscalYear)+2}财年`,
          },
          {
            cardType: 1,
            required: true,
            title: '楼盘名称',
            value: "",
            key: "buildingItemDetail3",
            id: "name"
          },
          {
            cardType: 1,
            required: true,
            title: '楼盘类型',
            value: "",
            key: "buildingItemDetail3",
            id: "type"
          },
          {
            cardType: 1,
            required: true,
            title: '开发商名称',
            value: "",
            key: "buildingItemDetail3",
            id: "devName"
          },
          {
            cardType: 1,
            required: true,
            title: '预计管道天燃气安装户数',
            value: "",
            key: "buildingItemDetail3",
            id: "number"
          },
          {
            cardType: 1,
            required: true,
            title: '签约时间(含计划签约)',
            value: "",
            key: "buildingItemDetail3",
            id: "time"
          },
          {
            cardType: 1,
            required: true,
            title: '预计燃气安装',
            value: "",
            key: "buildingItemDetail3",
            id: "installTime"
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear)+2}财年小计`,
            value: "",
            key: "lastInstallSubtotal"
          },
          {
            cardType: 3,
            required: true,
            title: `合计`,
          },
          {
            cardType: 1,
            required: true,
            title: `预计管道天燃气安装户数`,
            key: "installTotal"
          },
        ],
        data4: [{
            cardType: 4,
            required: true,
            title: '老居民用户(按小区个数换算 )',
          },
          {
            cardType: 3,
            required: true,
            title: '户数情况',
          },
          {
            cardType: 1,
            required: true,
            title: '总老户小区个数',
            value: "100"
          }
        ],
        data5: [{
            cardType: 4,
            required: true,
            title: '老居民用户(按常住人口换算 )',
          },
          {
            cardType: 3,
            required: true,
            title: '城区常驻人口数(人)',
          },
          {
            cardType: 1,
            required: true,
            title: '数量',
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: '异常情况说明',
            value: ""
          },
          {
            cardType: 3,
            required: true,
            title: '城区常驻人口户数(A)',
          },
          {
            cardType: 1,
            required: true,
            title: '数量',
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: '异常情况说明',
            value: ""
          },
          {
            cardType: 3,
            required: true,
            title: '城区累计点火通气的居民户数',
          },
          {
            cardType: 1,
            required: true,
            title: '数量',
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: '异常情况说明',
            value: ""
          },
          {
            cardType: 3,
            required: true,
            title: '城区连续六个月均有用气的居民数(B)',
          },
          {
            cardType: 1,
            required: true,
            title: '数量',
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: '异常情况说明',
            value: ""
          },
          {
            cardType: 3,
            required: true,
            title: '城区所有“老户”小区中有人居住但无法安装管道天燃气用户数(C)',
          },
          {
            cardType: 1,
            required: true,
            title: '数量',
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: '异常情况说明',
            value: ""
          },
          {
            cardType: 3,
            required: true,
            title: '城区“老户”小区中应收账款户数(D)',
          },
          {
            cardType: 1,
            required: true,
            title: '数量',
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: '异常情况说明',
            value: ""
          },
          {
            cardType: 3,
            required: true,
            title: '区剩余有效可安装确认户数(=A-B-C-D)',
          },
          {
            cardType: 1,
            required: true,
            title: '数量',
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: '异常情况说明',
            value: ""
          }
        ],
        data6: [{
            cardType: 4,
            required: true,
            title: '过去及未来三年城区老居民用户财务确认安装户数及回款户数、金额情况',
          },
          {
            cardType: 3,
            required: true,
            title: '年度财务确认安装数',
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear) - 4}财年`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear) - 3}财年`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear) - 2}财年`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear) - 1}财年`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear)}财年(预计)`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear)+1}财年(预计)`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear)+2}财年(预计)`,
            value: ""
          },

          {
            cardType: 3,
            required: true,
            title: '实际新增报装回款户数(含应收款户)',
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear) - 4}财年`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear) - 3}财年`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear) - 2}财年`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear) - 1}财年`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear)}财年(预计)`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear)+1}财年(预计)`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear)+2}财年(预计)`,
            value: ""
          },

          {
            cardType: 3,
            required: true,
            title: '年老户安装费回款金额(万元)',
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear) - 4}财年`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear) - 3}财年`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear) - 2}财年`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear) - 1}财年`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear)}财年(预计)`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear)+1}财年(预计)`,
            value: ""
          },
          {
            cardType: 1,
            required: true,
            title: `${parseInt(this.fiscalYear)+2}财年(预计)`,
            value: ""
          },
        ],
        data7: [{
            cardType: 3,
            required: true,
            title: '过去及未来三年城区老居民用户情况说明',
          },
          {
            cardType: 2,
            required: true,
            title: '年度财务确认安装数',
            key: "cityOldUserSituation",
            value: ""
          },
        ],
        data8: [{
            cardType: 3,
            required: true,
            title: '目前管网已经覆盖的区域老户开发情况',
          },
          {
            cardType: 1,
            required: true,
            title: '老户规模(户)',
            value: "",
            key: "coveredOldHousehold"
          },
          {
            cardType: 1,
            required: true,
            title: '已签约户数(户)',
            value: "",
            key: "coveredSignedHousehold"
          },
          {
            cardType: 1,
            required: true,
            title: '已确认户数(户)',
            value: "",
            key: "coveredConfirmHousehold"
          },
          {
            cardType: 1,
            required: true,
            title: '不可开发户数(户)',
            value: "",
            key: "coveredUnexploitableHousehold"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可开发户数(户)',
            value: "",
            key: "coveredExploitableHousehold"
          },
        ],
        data9: [{
            cardType: 3,
            required: true,
            title: '管网未覆盖区域老户开发情况',
          },
          {
            cardType: 1,
            required: true,
            title: '老户规模(户)',
            value: "",
            key: "uncoveredOldHousehold"
          },
          {
            cardType: 1,
            required: true,
            title: '已签约户数(户)',
            value: "",
            key: "uncoveredSignedHousehold"
          },
          {
            cardType: 1,
            required: true,
            title: '已确认户数(户)',
            value: "",
            key: "uncoveredConfirmHousehold"
          },
        ],
        data10: [{
            cardType: 4,
            required: false,
            title: '乡村燃气居民',
          },
          // 管网已覆盖_镇区
          {
            cardType: 3,
            required: true,
            title: '管网已覆盖_镇区',
          },
          {
            cardType: 1,
            required: true,
            title: '个数',
            value: "",
            key: "coveredTownsSituation",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "coveredTownsSituation",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计可开发户数',
            value: "",
            key: "coveredTownsSituation",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "coveredTownsSituation",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "coveredTownsSituation",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '累计点火通气户数',
            value: "",
            key: "coveredTownsSituation",
            id: "5"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "coveredTownsSituation",
            id: "6"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可安装确认户数',
            value: "",
            key: "coveredTownsSituation",
            id: "7"
          },
          // 管网已覆盖_自然村
          {
            cardType: 3,
            required: true,
            title: '管网已覆盖_自然村',
          },
          {
            cardType: 1,
            required: true,
            title: '个数',
            value: "",
            key: "coveredVillageSituation",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "coveredVillageSituation",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计可开发户数',
            value: "",
            key: "coveredVillageSituation",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "coveredVillageSituation",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "coveredVillageSituation",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '累计点火通气户数',
            value: "",
            key: "coveredVillageSituation",
            id: "5"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "coveredVillageSituation",
            id: "6"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可安装确认户数',
            value: "",
            key: "coveredVillageSituation",
            id: "7"
          },
          // 管网未覆盖、但符合农村燃气投资标准_镇区
          {
            cardType: 3,
            required: true,
            title: '管网未覆盖、但符合农村燃气投资标准_镇区',
          },
          {
            cardType: 1,
            required: true,
            title: '个数',
            value: "",
            key: "uncoveredTownsSituation",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "uncoveredTownsSituation",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计可开发户数',
            value: "",
            key: "uncoveredTownsSituation",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "uncoveredTownsSituation",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "uncoveredTownsSituation",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '累计点火通气户数',
            value: "",
            key: "uncoveredTownsSituation",
            id: "5"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "uncoveredTownsSituation",
            id: "6"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可安装确认户数',
            value: "",
            key: "uncoveredTownsSituation",
            id: "7"
          },
          //管网未覆盖、但符合农村燃气投资标准_自然村
          {
            cardType: 3,
            required: true,
            title: '管网未覆盖、但符合农村燃气投资标准_自然村',
          },
          {
            cardType: 1,
            required: true,
            title: '个数',
            value: "",
            key: "uncoveredVillageSituation",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "uncoveredVillageSituation",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计可开发户数',
            value: "",
            key: "uncoveredVillageSituation",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "uncoveredVillageSituation",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "uncoveredVillageSituation",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '累计点火通气户数',
            value: "",
            key: "uncoveredVillageSituation",
            id: "5"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "uncoveredVillageSituation",
            id: "6"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可安装确认户数',
            value: "",
            key: "uncoveredVillageSituation",
            id: "7"
          },
          // 合计
          {
            cardType: 3,
            required: true,
            title: '合计',
          },
          {
            cardType: 1,
            required: true,
            title: '个数',
            value: "",
            key: "totalSituation",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: '总规模户数',
            value: "",
            key: "totalSituation",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: '累计可开发户数',
            value: "",
            key: "totalSituation",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: '累计财务确认安装户数',
            value: "",
            key: "totalSituation",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: '累计报装户数',
            value: "",
            key: "totalSituation",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: '累计点火通气户数',
            value: "",
            key: "totalSituation",
            id: "5"
          },
          {
            cardType: 1,
            required: true,
            title: '累计不可开发户数',
            value: "",
            key: "totalSituation",
            id: "6"
          },
          {
            cardType: 1,
            required: true,
            title: '剩余可安装确认户数',
            value: "",
            key: "totalSituation",
            id: "7"
          },
        ],
        data11: [{
            cardType: 3,
            required: true,
            title: '乡村燃气居民情况说明',
          },
          {
            cardType: 2,
            required: true,
            value: "",
            key: "villageGasInfo"
          },
          {
            cardType: 3,
            required: true,
            title: '乡镇新户',
          },
          {
            cardType: 2,
            required: true,
            value: "",
            key: "townsNewUserInfo"
          },
          {
            cardType: 3,
            required: true,
            title: '农村气代媒 (气代柴薪)',
          },
          {
            cardType: 2,
            required: true,
            value: "",
            key: "townsGasCoal"
          },
        ],
        data12: [{
            cardType: 3,
            required: true,
            title: '工业用户',
          },
          {
            cardType: 2,
            required: true,
            value: "",
            key: "industryUser"
          },
          {
            cardType: 3,
            required: true,
            title: '商业公福用户',
          },
          {
            cardType: 2,
            required: true,
            value: "",
            key: "industryCommerceUser"
          },
          {
            cardType: 3,
            required: true,
            title: '工商业煤改气用户',
          },
          {
            cardType: 2,
            required: true,
            value: "",
            key: "commerceCoalGas"
          },
        ],
        data13: [{
          cardType: 2,
          required: true,
          value: "",
          key: "installPrice"
        }],
        data14: [{
            cardType: 4,
            required: true,
            title: `分析现有居民、工商业用户、加气站及批发、管输等用气情况，预测${this.fiscalYear}财年销气量`,
          },
          {
            cardType: 3,
            required: true,
            title: `截至目前已通气用户在${this.fiscalYear}财年的基础用气量`,
          },
          {
            cardType: 1,
            required: true,
            title: "居民",
            value: "",
            key: "baseSales",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: "商业",
            value: "",
            key: "baseSales",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: "工业",
            value: "",
            key: "baseSales",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: "加气站",
            value: "",
            key: "baseSales",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: "批发及其它",
            value: "",
            key: "baseSales",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: "管输",
            value: "",
            key: "baseSales",
            id: "5"
          },
          {
            cardType: 1,
            required: true,
            title: "合计",
            value: "",
            key: "baseSales",
            id: "6"
          },

          {
            cardType: 3,
            required: true,
            title: `预计到${parseInt(this.fiscalYear)-1}财年底通气/点火的用户在${parseInt(this.fiscalYear)}财年带来气量增长`,
          },
          {
            cardType: 1,
            required: true,
            title: "居民",
            value: "",
            key: "useSalesGrowth",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: "商业",
            value: "",
            key: "useSalesGrowth",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: "工业",
            value: "",
            key: "useSalesGrowth",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: "加气站",
            value: "",
            key: "useSalesGrowth",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: "批发及其它",
            value: "",
            key: "useSalesGrowth",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: "管输",
            value: "",
            key: "useSalesGrowth",
            id: "5"
          },
          {
            cardType: 1,
            required: true,
            title: "合计",
            value: "",
            key: "useSalesGrowth",
            id: "6"
          },


          {
            cardType: 3,
            required: true,
            title: `${parseInt(this.fiscalYear)-1}财年签约但在${parseInt(this.fiscalYear)}财年
            点火通气的用户在${parseInt(this.fiscalYear)}财年带来气量增长`,
          },
          {
            cardType: 1,
            required: true,
            title: "居民",
            value: "",
            key: "signSalesGrowth",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: "商业",
            value: "",
            key: "signSalesGrowth",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: "工业",
            value: "",
            key: "signSalesGrowth",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: "加气站",
            value: "",
            key: "signSalesGrowth",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: "批发及其它",
            value: "",
            key: "signSalesGrowth",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: "管输",
            value: "",
            key: "signSalesGrowth",
            id: "5"
          },
          {
            cardType: 1,
            required: true,
            title: "合计",
            value: "",
            key: "signSalesGrowth",
            id: "6"
          },

          {
            cardType: 3,
            required: true,
            title: `预计${parseInt(this.fiscalYear)}财年新签约点火通气的用户在${parseInt(this.fiscalYear)}财年带来气量增长`,
          },
          {
            cardType: 1,
            required: true,
            title: "居民",
            value: "",
            key: "predictSalesGrowth",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: "商业",
            value: "",
            key: "predictSalesGrowth",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: "工业",
            value: "",
            key: "predictSalesGrowth",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: "加气站",
            value: "",
            key: "predictSalesGrowth",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: "批发及其它",
            value: "",
            key: "predictSalesGrowth",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: "管输",
            value: "",
            key: "predictSalesGrowth",
            id: "5"
          },
          {
            cardType: 1,
            required: true,
            title: "合计",
            value: "",
            key: "predictSalesGrowth",
            id: "6"
          },

          {
            cardType: 3,
            required: true,
            title: `${parseInt(this.fiscalYear)}财年销气预测合计`,
          },
          {
            cardType: 1,
            required: true,
            title: "居民",
            value: "",
            key: "predictSalesTotal",
            id: "0"
          },
          {
            cardType: 1,
            required: true,
            title: "商业",
            value: "",
            key: "predictSalesTotal",
            id: "1"
          },
          {
            cardType: 1,
            required: true,
            title: "工业",
            value: "",
            key: "predictSalesTotal",
            id: "2"
          },
          {
            cardType: 1,
            required: true,
            title: "加气站",
            value: "",
            key: "predictSalesTotal",
            id: "3"
          },
          {
            cardType: 1,
            required: true,
            title: "批发及其它",
            value: "",
            key: "predictSalesTotal",
            id: "4"
          },
          {
            cardType: 1,
            required: true,
            title: "管输",
            value: "",
            key: "predictSalesTotal",
            id: "5"
          },
          {
            cardType: 1,
            required: true,
            title: "合计",
            value: "",
            key: "predictSalesTotal",
            id: "6"
          },
        ],
        data15: [{
            cardType: 3,
            required: true,
            title: "其他说明",
          },
          {
            cardType: 2,
            required: true,
            value:"",
            key:"otherInfo"
          },
          {
              cardType: 3,
              required: true,
              title: "汽车加气量无新增原因说明",
            },
            {
              cardType: 2,
              required: true,
              value:"",
              key:"carGasInfo"
            }
        ],
        data16:[{
          cardType: 2,
          required: true,
          value:"",
          key:"gasTrade"
        }],
        data17:[{
          cardType: 2,
          required: true,
          value:"",
          key:"priceSurvey"
        }],
        data18:[{
          cardType: 2,
          required: true,
          value:"",
          key:"outstandingPaymentNumber"
        }]

      }
    },
    computed: {

    },
    mounted() {
      this.initData()
    },
    methods: {
      initData() {
        this.data1.forEach(data => {
          if (data.key in this.reportData) {
            let Arr = this.reportData[data.key].split(",");
            data.value = Arr[data.id];
          }
        });
        this.data2.forEach(data => {
          if (data.key in this.newBuildingInfo) {
            data.value = this.newBuildingInfo[data.key];
          }
        });
        // console.log(this.data3);
        this.data3.forEach(data => {
          if (data.key in this.newBuildingItem) {
            // console.log(this.newBuildingItem[data.key]);
            if (this.newBuildingItem[data.key].length > 0) {
              data.value = this.newBuildingItem[data.key][0][data.id];
            } else {
              data.value = this.newBuildingItem[data.key]
            }
          }
        });
        // this.data4
        this.data7.forEach(data => {
          if (data.key in this.reportData) {
            data.value = this.reportData[data.key];
          }
        });
        this.data8.forEach(data => {
          if (data.key in this.reportData) {
            data.value = this.reportData[data.key];
          }
        });
        this.data9.forEach(data => {
          if (data.key in this.reportData) {
            data.value = this.reportData[data.key];
          }
        });
        this.data10.forEach(data => {
          if (data.key in this.reportData) {
            let Arr = this.reportData[data.key].split(",");
            data.value = Arr[data.id];
          }
        });
        this.data11.forEach(data => {
          if (data.key in this.reportData) {
            data.value = this.reportData[data.key];
          }
        });
        this.data12.forEach(data => {
          if (data.key in this.reportData) {
            data.value = this.reportData[data.key];
          }
        });
        this.data13.forEach(data => {
          if (data.key in this.reportData) {
            data.value = this.reportData[data.key];
          }
        });
        this.data14.forEach(data => {
          if (data.key in this.reportData) {
            let Arr = this.reportData[data.key].split(",");
            data.value = Arr[data.id];
          }
        });
        this.data15.forEach(data => {
          if (data.key in this.reportData) {
            data.value = this.reportData[data.key];
          }
        });
        this.data16.forEach(data => {
          if (data.key in this.reportData) {
            data.value = this.reportData[data.key];
          }
        });
        this.data17.forEach(data => {
          if (data.key in this.reportData) {
            data.value = this.reportData[data.key];
          }
        });
        this.data18.forEach(data => {
          if (data.key in this.reportData) {
            data.value = this.reportData[data.key];
          }
        });
      }
    }
  }
</script>

<style lang="scss" scoped>

</style>
