<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">
        
            <!--PD000106 -->
           <!-- <el-tab-pane label="Selection" name="infsea">
                <m-infsea :model="model" :codes="codes"/>
           </el-tab-pane> -->

           <c-content :height="180">
               <m-infsea :model="model" :codes="codes" ref="infsea" />
           </c-content>
 
           <!-- <el-tab-pane label="Overview" name="ovwp">
                <m-ovwp :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="Parties" name="ptyp">
                <m-ptyp :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="Details" name="detp">
                <m-detp :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="Undertaking Text" name="gidtxtp">
                <m-gidtxtp :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="Completion" name="coninfp">
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="Transactions" name="trnpan">
                <m-trnpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="CBS Info" name="cbsinfp">
                <m-cbsinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="CBE Info" name="cbeinfp">
                <m-cbeinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="FEP/FCP Info" name="fepinfp">
                <m-fepinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
          
           <el-tab-pane label="SEP Info" name="sepinfp">
                <m-sepinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="GLE Bookings" name="gleinfp">
                <m-gleinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="SMH Info" name="smhinfp">
                <m-smhinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="SPT/DIA Info" name="peninfp">
                <m-peninfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="Engagement" name="liainfp">
                <m-liainfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="Print" name="prtpan">
                <m-prtpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="Order" name="ordpan">
                <m-ordpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
           
           <el-tab-pane label="汇总征税保函" name="hzzsbh">
                <m-hzzsbh :model="model" :codes="codes"/>
           </el-tab-pane>
 
            
           <el-tab-pane label="开立方式" name="opnp">
                <m-opnp :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 Infgid from "~/model/Infgid"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Infgid/Check"
import Default from "~/model/Infgid/Default"
import Pattern from "~/model/Infgid/Pattern"
import Infsea from "./Infsea"
import Ovwp from "./Ovwp"
import Ptyp from "./Ptyp"
import Detp from "./Detp"
import Gidtxtp from "./Gidtxtp"
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"
import Hzzsbh from "./Hzzsbh"
import Opnp from "./Opnp"


export default {
    name: "Infgid",
    components:{
        "m-infsea" : Infsea,
        "m-ovwp" : Ovwp,
        "m-ptyp" : Ptyp,
        "m-detp" : Detp,
        "m-gidtxtp" : Gidtxtp,
        "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,
        "m-hzzsbh" : Hzzsbh,
        "m-opnp" : Opnp,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
            tabVal: "",
            trnName: "infgid",
            model: new Infgid().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: { ...CodeTable },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入infgid交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑

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

</style>
