<!--单位信息填报-->
<template>
  <div class="content-div">
    <a-card class="info-submit" :bordered="false">
        <a-radio-group v-model="defaultValue" button-style="solid" @change="changeContent">
          <a-radio-button v-for="(item, index) in menus" :key="item.action" :value="item.value" :name="item.value">
            {{ item.describe }}
          </a-radio-button>
        </a-radio-group>
    </a-card>
    <a-card :bordered="false">
      <!--省属企业信息填报-->
      <!--      <enter-info-submit v-show="'qcsb/qyxx/QcQyxxList' == defaultValue" :is-company="true"></enter-info-submit>-->
      <yddwxxtb v-show="'ssqyxxtb' == defaultValue"></yddwxxtb>
<!--      <yddwxxtb v-show="'qcsb/qyxx/QcQyxxList' == defaultValue"></yddwxxtb>-->
      <!--省直单位信息填报-->
<!--      <enter-info-submit v-show="'sydwqcsb/sydwxx/QcQyxxList' == defaultValue" :is-company="false"></enter-info-submit>-->
      <dwxxtb v-show="'szdwxxtb' == defaultValue"></dwxxtb>
      <!--退回省属企业信息填报-->
      <thssqyxx v-show="'thssqyxx' == defaultValue"></thssqyxx>
      <!--退回省直单位信息填报-->
      <thszdwxx v-show="'thszdwxx' == defaultValue"></thszdwxx>

    </a-card>
  </div>
</template>


<script>
import dwxxtb from '../sydwqcsb/sydwxx/QcQyxxList.vue'
import yddwxxtb from '../qcsb/qyxx/QcQyxxList.vue'
import thssqyxx from '../qcsb/qyxx/QcQyxxList4.vue'
import thszdwxx from '../sydwqcsb/sydwxx/QcQyxxList4.vue'

// import enterInfoSubmit from './components/enterInfoSubmit.vue'


export default {
  name: 'infoSubmit',
  components: {
    dwxxtb,
    yddwxxtb,
    thssqyxx,
    thszdwxx,

    // enterInfoSubmit,

  },
  data() {
    return {
      defaultValue: '',
      menus: [],

    }
  },
  created() {
    this.menus = this.$store.state.menu.menuList['dwxx'];
    this.defaultValue = this.menus.length > 0 ? this.menus[0].value : '';
    console.log("infoSubmit...", this.menus);
  },
  methods: {
    changeContent(key) {
      console.log(key);
    },
  }

}
</script>

<style scoped>
.content-div {
  height: 100%;
}
.ant-card:not(:last-child) {
  margin-bottom: 10px;
}
.ant-card:last-child {
  height: calc(100% - 70px);
  overflow-y: auto;
}
</style>
<style lang="less" scoped>
.info-submit {
  & ::v-deep > .ant-card-body {
    padding: 14px 24px;
  }
  &::v-deep .ant-radio-button-wrapper {
    //border: 1px solid ;
    border-radius: 4px;
    padding-left: 25px;
    padding-right: 25px;
    //border-left: 1px;
    border: 1px solid @primary-color;
    margin-left: 15px;
    color: @primary-color;
  }
  & /deep/ .ant-radio-button-wrapper:not(:first-child)::before {
    width: 0px;
  }
  & .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
    color: #fff;
  }
}
.content-div {
  &::v-deep .ant-card:last-child .ant-card-body {
    padding: 10px 24px 0;
  }

}

</style>