<template>
  <div class="eContainer">
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
        
            <!--PD000006 -->
           <el-tab-pane label="Selection" name="infsea">
                <m-infsea :model="model" :codes="codes"/>
           </el-tab-pane>
 
   
            <!--PD000201 -->
           <el-tab-pane label="shpdet" name="shpdet">
                <m-shpdet :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000260 -->
           <el-tab-pane label="ptyp" name="ptyp">
                <m-ptyp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000291 -->
           <el-tab-pane label="insttco" name="insttco">
                <m-insttco :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000019 -->
           <el-tab-pane label="cbsinfp" name="cbsinfp">
                <m-cbsinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000119 -->
           <el-tab-pane label="smhinfp" name="smhinfp">
                <m-smhinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000185 -->
           <el-tab-pane label="ordpan" name="ordpan">
                <m-ordpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000028 -->
           <el-tab-pane label="cbeinfp" name="cbeinfp">
                <m-cbeinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000147 -->
           <el-tab-pane label="liainfp" name="liainfp">
                <m-liainfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000001 -->
           <el-tab-pane label="cmt100pel" name="cmt100pel">
                <m-cmt100pel :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000001 -->
           <el-tab-pane label="fecp" name="fecp">
                <m-fecp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000005 -->
           <el-tab-pane label="difstm" name="difstm">
                <m-difstm :model="model" :codes="codes"/>
           </el-tab-pane>
       
              <!--PD000177 -->
           <el-tab-pane label="gleinfp" name="gleinfp">
                <m-gleinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000013 -->
           <el-tab-pane label="trnpan" name="trnpan">
                <m-trnpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000130 -->
           <el-tab-pane label="peninfp" name="peninfp">
                <m-peninfp :model="model" :codes="codes"/>
           </el-tab-pane>
          <!--PD000000 -->
           <el-tab-pane label="coninfp" name="coninfp">
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>
            <!--PD000003 -->
           <el-tab-pane label="PD000003" name="infconp">
                <m-infconp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000018 -->
           <el-tab-pane label="PD000018" name="detp">
                <m-detp :model="model" :codes="codes"/>
           </el-tab-pane>       </c-tabs>
    </el-form>
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infbcd from "~/model/Infbcd"
import CommonProcess from "~/mixin/CommonProcess"
import Check from "~/model/Infbcd/Check"
import Default from "~/model/Infbcd/Default"
import Pattern from "~/model/Infbcd/Pattern"
import Infsea from "./Infsea"
import Prtpan from "./Prtpan"
import Shpdet from "./Shpdet"
import Ptyp from "./Ptyp"
import Insttco from "./Insttco"
import Cbsinfp from "./Cbsinfp"
import Smhinfp from "./Smhinfp"
import Ordpan from "./Ordpan"
import Cbeinfp from "./Cbeinfp"
import Liainfp from "./Liainfp"
import Cmt100pel from "./Cmt100pel"
import Fecp from "./Fecp"
import Difstm from "./Difstm"
import Docedip from "./Docedip"
import Gleinfp from "./Gleinfp"
import Trnpan from "./Trnpan"
import Peninfp from "./Peninfp"
import Coninfp from "./Coninfp"
import Infconp from "./Infconp"
import Detp from "./Detp"
export default {
    name: "Infbcd",
    components:{
        "m-infsea" : Infsea,
        "m-prtpan" : Prtpan,
        "m-shpdet" : Shpdet,
        "m-ptyp" : Ptyp,
        "m-insttco" : Insttco,
        "m-cbsinfp" : Cbsinfp,
        "m-smhinfp" : Smhinfp,
        "m-ordpan" : Ordpan,
        "m-cbeinfp" : Cbeinfp,
        "m-liainfp" : Liainfp,
        "m-cmt100pel" : Cmt100pel,
        "m-fecp" : Fecp,
        "m-difstm" : Difstm,
        "m-docedip" : Docedip,
        "m-prtpan" : Prtpan,
          "m-gleinfp" : Gleinfp,
        "m-trnpan" : Trnpan,
        "m-peninfp" : Peninfp,
          "m-coninfp" : Coninfp,
        "m-infconp" : Infconp,
        "m-detp" : Detp,    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [CommonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
            tabVal: "infsea",
            trnName: "infbcd",
            model: new Infbcd().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
            },
        }
    },
    methods:{
        tabClick(){
        }
    },
    created:async function(){
        console.log("进入infbcd交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑
           this.updateModel(rtnmsg.data)
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败！'});
        }
    }
}
</script>
<style>

</style>
