<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="myTabClick"> -->
        
            <!--PD000008 -->
           <!-- <el-tab-pane label="PD000008" name="infsea">
                <m-infsea :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
          <c-content>
               <m-infsea :model="model" :codes="codes"/>
          </c-content>

            <!-- PD000137 -->
           <!-- <el-tab-pane label="PD000137" name="ovwp">
                <m-ovwp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000062 -->
           <!-- <el-tab-pane label="PD000062" name="docpre">
                <m-docpre :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000079 -->
           <!-- <el-tab-pane label="PD000079" name="shpdet">
                <m-shpdet :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000000 -->
           <!-- <el-tab-pane label="PD000000" name="coninfp">
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000013 -->
           <!-- <el-tab-pane label="PD000013" name="trnpan">
                <m-trnpan :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000019 -->
           <!-- <el-tab-pane label="PD000019" name="cbsinfp">
                <m-cbsinfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000028 -->
           <!-- <el-tab-pane label="PD000028" name="cbeinfp">
                <m-cbeinfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000111 -->
           <!-- <el-tab-pane label="PD000111" name="fepinfp">
                <m-fepinfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000162 -->
           <!-- <el-tab-pane label="PD000162" name="sepinfp">
                <m-sepinfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000177 -->
           <!-- <el-tab-pane label="PD000177" name="gleinfp">
                <m-gleinfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000119 -->
           <!-- <el-tab-pane label="PD000119" name="smhinfp">
                <m-smhinfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000130 -->
           <!-- <el-tab-pane label="PD000130" name="peninfp">
                <m-peninfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000147 -->
           <!-- <el-tab-pane label="PD000147" name="liainfp">
                <m-liainfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000007 -->
           <!-- <el-tab-pane label="PD000007" name="prtpan">
                <m-prtpan :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000185 -->
           <!-- <el-tab-pane label="PD000185" name="ordpan">
                <m-ordpan :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 Infbrd from "~/model/Infbrd"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Infbrd/Check"
import Default from "~/model/Infbrd/Default"
import Pattern from "~/model/Infbrd/Pattern"
import Infsea from "./Infsea"
// import Ovwp from "./Ovwp"
// import Docpre from "./Docpre"
// import Shpdet from "./Shpdet"
// import Coninfp from "./Coninfp"
// import Trnpan from "./Trnpan"
// import Cbsinfp from "./Cbsinfp"
// import Cbeinfp from "./Cbeinfp"
// import Fepinfp from "./Fepinfp"
// import Sepinfp from "./Sepinfp"
// import Gleinfp from "./Gleinfp"
// import Smhinfp from "./Smhinfp"
// import Peninfp from "./Peninfp"
// import Liainfp from "./Liainfp"
// import Prtpan from "./Prtpan"
// import Ordpan from "./Ordpan"


export default {
    name: "Infbrd",
    components:{
        "m-infsea" : Infsea,
     //    "m-ovwp" : Ovwp,
     //    "m-docpre" : Docpre,
     //    "m-shpdet" : Shpdet,
     //    "m-coninfp" : Coninfp,
     //    "m-trnpan" : Trnpan,
     //    "m-cbsinfp" : Cbsinfp,
     //    "m-cbeinfp" : Cbeinfp,
     //    "m-fepinfp" : Fepinfp,
     //    "m-sepinfp" : Sepinfp,
     //    "m-gleinfp" : Gleinfp,
     //    "m-smhinfp" : Smhinfp,
     //    "m-peninfp" : Peninfp,
     //    "m-liainfp" : Liainfp,
     //    "m-prtpan" : Prtpan,
     //    "m-ordpan" : Ordpan,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
            tabVal: "",
            trnName: "infbrd",
            model: new Infbrd().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
               codeSet: {
                   "infcon.seacur": [],
                    "infcon.searol": []
               }
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入infbrd交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑

        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败！'});
        }
    }
}
</script>
<style>

</style>
