<template>
  <div class="eContainer">
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="100px" size="small">
       <c-tabs ref="elment" type="card" @tab-click="tabClick">
        
            <!--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>
 
            <!--PD000001 -->
           <el-tab-pane label="PD000001" name="sepp0">
                <m-sepp0 :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>
 
            <!--PD000062 -->
           <el-tab-pane label="PD000062" name="prtswtrp">
                <m-prtswtrp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000061 -->
           <el-tab-pane label="PD000061" name="xmldoc">
                <m-xmldoc :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 Infbdd from "~/model/Infbdd"
import CommonProcess from "~/mixin/CommonProcess"
import Pattern from "~/model/Infbdd/Pattern"
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 Sepp0 from "./Sepp0"
import Gleinfp from "./Gleinfp"
import Smhinfp from "./Smhinfp"
import Peninfp from "./Peninfp"
import Prtswtrp from "./Prtswtrp"
import Xmldoc from "./Xmldoc"


export default {
     name: 'Infbdd',
    components:{
        "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-sepp0" : Sepp0,
        "m-gleinfp" : Gleinfp,
        "m-smhinfp" : Smhinfp,
        "m-peninfp" : Peninfp,
        "m-prtswtrp" : Prtswtrp,
        "m-xmldoc" : Xmldoc,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [CommonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
            model:new Infbdd().data,
            // defaultRule:Default,
            // rules:this.mergeRules(Pattern,Check),
            rules:Pattern,
            codes:{
            },
        }
    },
    methods:{
        tabClick(){
        }
    },
    created:async function(){
        console.log("进入infbdd交易");
        let rtnmsg = await Api.post("infbdd/init",{params:{}})
        if(rtnmsg.retcod == SUCCESS)
        {
           //TODO 处理数据逻辑

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

</style>
