<template>
  <div class="eContainer">
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="100px" size="small">
       <c-tabs v-model="activeName" ref="elment" type="card" @tab-click="tabClick">
        
            <!--PD000071 -->
           <el-tab-pane label="Selection Panel" name="inftrnps">
                <m-inftrnps :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000091 -->
           <!-- <el-tab-pane label="PD000091" name="trnp0">
                <m-trnp0 :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000128 -->
           <!-- <el-tab-pane label="PD000128" name="trnpwfm">
                <m-trnpwfm :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000164 -->
           <!-- <el-tab-pane label="PD000164" name="trnpevt">
                <m-trnpevt :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000168 -->
           <!-- <el-tab-pane label="PD000168" name="trnpack">
                <m-trnpack :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000193 -->
           <!-- <el-tab-pane label="PD000193" name="trnptro">
                <m-trnptro :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000230 -->
           <!-- <el-tab-pane label="PD000230" name="prtgle">
                <m-prtgle :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000129 -->
           <!-- <el-tab-pane label="PD000129" name="prtpan">
                <m-prtpan :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000060 -->
           <!-- <el-tab-pane label="PD000060" name="prtswtp">
                <m-prtswtp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000061 -->
           <!-- <el-tab-pane label="PD000061" name="xmldoc">
                <m-xmldoc :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000062 -->
           <!-- <el-tab-pane label="PD000062" name="prtswtrp">
                <m-prtswtrp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000000 -->
           <!-- <el-tab-pane label="PD000000" name="prtp">
                <m-prtp :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 Trnrel from "~/model/Trnrel"
import CommonProcess from "~/mixin/CommonProcess"
import Pattern from "~/model/Trnrel/Pattern"
import Inftrnps from "./Inftrnps"
import Trnp0 from "./Trnp0"
import Trnpwfm from "./Trnpwfm"
import Trnpevt from "./Trnpevt"
import Trnpack from "./Trnpack"
import Trnptro from "./Trnptro"
import Prtgle from "./Prtgle"
import Prtpan from "./Prtpan"
import Prtswtp from "./Prtswtp"
import Xmldoc from "./Xmldoc"
import Prtswtrp from "./Prtswtrp"
import Prtp from "./Prtp"


export default {
    components:{
        "m-inftrnps" : Inftrnps,
        "m-trnp0" : Trnp0,
        "m-trnpwfm" : Trnpwfm,
        "m-trnpevt" : Trnpevt,
        "m-trnpack" : Trnpack,
        "m-trnptro" : Trnptro,
        "m-prtgle" : Prtgle,
        "m-prtpan" : Prtpan,
        "m-prtswtp" : Prtswtp,
        "m-xmldoc" : Xmldoc,
        "m-prtswtrp" : Prtswtrp,
        "m-prtp" : Prtp,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [CommonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
            activeName: "inftrnps",
            model:new Trnrel().data,
            // defaultRule:Default,
            // rules:this.mergeRules(Pattern,Check),
            rules:Pattern,
            codes:{
            },
        }
    },
    methods:{
        tabClick(){
        }
    },
    created:async function(){
        console.log("进入trnrel交易");
        let rtnmsg = await Api.post("trnrel/init",{params:{}})
        if(rtnmsg.retcod == SUCCESS)
        {
           //TODO 处理数据逻辑

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

</style>
