<template>
  <div class="eibs-tab">
    <el-collapse v-model="activeNames">
      <el-collapse-item title="外管信息" name="selection">
        <m-selection :model="model" :codes="codes" :bopcodList="bopcodList"/>
      </el-collapse-item>

      <el-collapse-item
        title="境外汇款申请单-基础数据"
        name="dbbbas"
        v-if="model.boprem.szflg == '1' && model.boprem.basflg == 'X'"
      >
        <m-dbbbas :model="model" :codes="codes"/>
      </el-collapse-item>
      <el-collapse-item
        title="境外汇款申请单-申报数据"
        name="dbbdcl"
        v-if="model.boprem.szflg == '1' && model.boprem.dclflg == 'X'"
      >
        <m-dbbdcl :model="model" :codes="codes" :bopcodList="bopcodList"/>
      </el-collapse-item>
      <el-collapse-item
        title="境外汇款申请单-管理数据"
        name="dbbvrf"
        v-if="model.boprem.szflg == '1' && model.boprem.vrfflg == 'X'"
      >
        <m-dbbvrf :model="model" :codes="codes" />
      </el-collapse-item>

      <el-collapse-item
        title="境内汇款申请单-基础数据"
        name="dbebas"
        v-if="model.boprem.szflg == '2' && model.boprem.basflg == 'X'"
      >
        <m-dbebas :model="model" :codes="codes" />
      </el-collapse-item>
      <el-collapse-item
        title="境内汇款申请单-管理数据"
        name="dbevrf"
        v-if="model.boprem.szflg == '2' && model.boprem.vrfflg == 'X'"
      >
        <m-dbevrf :model="model" :codes="codes" :bopcodList="bopcodList"/>
      </el-collapse-item>
    </el-collapse>
  </div>
</template>

<script>
import Dbbbas from "./Dbbbas";
import Dbbdcl from "./Dbbdcl";
import Dbbvrf from "./Dbbvrf";
import Dbebas from "./Dbebas"
import Dbevrf from "./Dbevrf"
import Selection from "./Selection";
import Event from "../event";

export default {
  inject: ["root"],
  name: "boprem",
  components: {
    "m-dbbbas": Dbbbas,
    "m-dbbdcl": Dbbdcl,
    "m-dbbvrf": Dbbvrf,
    "m-dbebas": Dbebas,
    "m-dbevrf": Dbevrf,
    "m-selection": Selection,
  },
  mixins: [Event],
  props: {
		model: {
			type: Object,
			default: () => {}
		},
		codes: {
			type: Object,
			default: () => {}
		},
		},
  data() {
    return {
      activeNames: ["selection","dbbbas","dbbdcl","dbbvrf","dbebas","dbevrf"],
      // ownExtkeyList:[],
      bopcodList:[],
    };
  },
   created(){
      // this.getOwnExtkeyCondition();
    },
    mounted() {
      // this.getBopcodItems();
      //获取试点行标志
      this.initPilotBchBop();
    },
};
</script>
<style>
</style>