<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">
        
            <!--PD000027 -->
           <el-tab-pane label="Claim Payment" name="gitsetp1">
                <m-gitsetp1 :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000027 -->
           <el-tab-pane label="PD000027" name="engp">
                <m-engp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000001 -->
           <el-tab-pane label="PD000001" name="ccvpan">
                <m-ccvpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000000 -->
           <el-tab-pane label="PD000000" name="setpan">
                <m-setpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000001 -->
           <el-tab-pane label="PD000001" name="glepan">
                <m-glepan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000000 -->
           <el-tab-pane label="PD000000" name="coninfp">
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000529 -->
           <el-tab-pane label="PD000529" name="docpan">
                <m-docpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000546 -->
           <el-tab-pane label="PD000546" name="doctre">
                <m-doctre :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000008 -->
           <el-tab-pane label="PD000008" name="wg">
                <m-wg :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000002 -->
           <el-tab-pane label="PD000002" name="cnyp">
                <m-cnyp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD001139 -->
           <el-tab-pane label="PD001139" name="shisuan">
                <m-shisuan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000538 -->
           <el-tab-pane label="PD000538" name="gitsetp">
                <m-gitsetp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000001 -->
           <el-tab-pane label="PD000001" name="limitbody">
                <m-limitbody :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000130 -->
           <el-tab-pane label="PD000130" name="det756">
                <m-det756 :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000131 -->
           <el-tab-pane label="PD000131" name="det202cv">
                <m-det202cv :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 Gitset from "~/model/Gitset"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Gitset/Check"
import Default from "~/model/Gitset/Default"
import Pattern from "~/model/Gitset/Pattern"
import Gitsetp1 from "./Gitsetp1"
import Engp from "./Engp"
import Ccvpan from "./Ccvpan"
import Setpan from "./Setpan"
import Glepan from "./Glepan"
import Coninfp from "./Coninfp"
import Docpan from "./Docpan"
import Doctre from "./Doctre"
import Wg from "./Wg"
import Cnyp from "./Cnyp"
import Shisuan from "./Shisuan"
import Gitsetp from "./Gitsetp"
import Limitbody from "./Limitbody"
import Det756 from "./Det756"
import Det202cv from "./Det202cv"


export default {
    name: "Gitset",
    components:{
        "m-gitsetp1" : Gitsetp1,
        "m-engp" : Engp,
        "m-ccvpan" : Ccvpan,
        "m-setpan" : Setpan,
        "m-glepan" : Glepan,
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
        "m-doctre" : Doctre,
        "m-wg" : Wg,
        "m-cnyp" : Cnyp,
        "m-shisuan" : Shisuan,
        "m-gitsetp" : Gitsetp,
        "m-limitbody" : Limitbody,
        "m-det756" : Det756,
        "m-det202cv" : Det202cv,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
            tabVal: "gitsetp1",
            trnName: "gitset",
            model: new Gitset().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
            },
        }
    },
    methods:{
        tabClick(){
        }
    },
    created:async function(){
        console.log("进入gitset交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑
          this.updateModel(rtnmsg.data)
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败！'});
        }
    }
}
</script>
<style>

</style>
