<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">
        
            <!--PD000033 -->
           <el-tab-pane label="accp" name="accp">
                <m-accp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000018 【TODO me】该页面无内容，暂时注释掉-->
           <!-- <el-tab-pane label="ovwp" name="ovwp">
                <m-ovwp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000000 【TODO me】账务-->
           <el-tab-pane label="setpan" name="setpan">
                <m-setpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000000 【TODO me】附言-->
           <el-tab-pane label="coninfp" name="coninfp">
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000010 -->
           <el-tab-pane label="coninftag" name="coninftag">
                <m-coninftag :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000529 【TODO me】报文及面函-->
           <el-tab-pane label="docpan" name="docpan">
                <m-docpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000546 【TODO me】附件-->
           <el-tab-pane label="doctre" name="doctre">
                <m-doctre :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000001 -->
           <el-tab-pane label="dtetag" name="dtetag">
                <m-dtetag :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD001139 【TODO me】该页面无内容，暂时注释掉-->
           <!-- <el-tab-pane label="shisuan" name="shisuan">
                <m-shisuan :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000204 -->
           <el-tab-pane label="cips" name="cips">
                <m-cips :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000449 -->
           <el-tab-pane label="cips2" name="cips2">
                <m-cips2 :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000450 -->
           <el-tab-pane label="cips3" name="cips3">
                <m-cips3 :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000001 -->
           <el-tab-pane label="limitbody" name="limitbody">
                <m-limitbody :model="model" :codes="codes"/>
           </el-tab-pane>

          <!--PD000027 -->
          <el-tab-pane label="或有" name="engp">
            <m-engp :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 Betacc from "~/model/Betacc"
import CommonProcess from "~/mixin/CommonProcess"
import Check from "~/model/Betacc/Check"
import Default from "~/model/Betacc/Default"
import Pattern from "~/model/Betacc/Pattern"
import Accp from "./Accp"
import Ovwp from "./Ovwp"
// import Setpan from "./Setpan"        // 【TODO me】改为使用公共页面
// import Coninfp from "./Coninfp"      // 【TODO me】改为使用公共页面
// import Docpan from "./Docpan"        // 【TODO me】改为使用公共页面
import Coninftag from "./Coninftag"
import Doctre from "./Doctre"
import Dtetag from "./Dtetag"
import Shisuan from "./Shisuan"
import Cips from "./Cips"
import Cips2 from "./Cips2"
import Cips3 from "./Cips3"
import Limitbody from "./Limitbody"

import Coninfp from "~/views/Public/Coninfp";     // 【TODO me】
import Setpan from "~/views/Public/Setpan";       // 【TODO me】
import Docpan from "~/views/Public/Docpan";       // 【TODO me】
import Engp from "~/views/Public/Engp";           // 【TODO me】


export default {
    name: "Betacc",
    components:{
        "m-accp" : Accp,
        "m-ovwp" : Ovwp,
        "m-setpan" : Setpan,
        "m-coninfp" : Coninfp,
        "m-coninftag" : Coninftag,
        "m-docpan" : Docpan,
        "m-doctre" : Doctre,
        "m-dtetag" : Dtetag,
        "m-shisuan" : Shisuan,
        "m-cips" : Cips,
        "m-cips2" : Cips2,
        "m-cips3" : Cips3,
        "m-limitbody" : Limitbody,
        "m-engp":Engp,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [CommonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
            tabVal: "accp",
            trnName: "betacc",
            model: new Betacc().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: { ...CodeTable },
        }
    },
    methods:{
        tabClick(){
        }
    },
    created:async function(){
        console.log("进入betacc交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑

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

</style>
