<template>
  <div class="eContainer">
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="left" size="small" :validate-on-rule-change="false">
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
        
            <!--PD000031 
           <el-tab-pane label="PD000031" name="brtapll1">
                <m-brtapll1 :model="model" :codes="codes"/>
           </el-tab-pane>-->
 
            <!--PD000062 -->
           <el-tab-pane label="进口信用证单据" name="docpre">
                <m-docpre :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000079 
           <el-tab-pane label="进口信用证单据偿还垫款" name="shpdet">
                <m-shpdet :model="model" :codes="codes"/>
           </el-tab-pane>-->
 
            <!--PD000139 -->
           <el-tab-pane label="查询" name="mt750p">
                <m-mt750p :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 Brtlat from "~/model/Brtlat"
import CommonProcess from "~/mixin/CommonProcess"
import Check from "~/model/Brtlat/Check"
import Default from "~/model/Brtlat/Default"
import Pattern from "~/model/Brtlat/Pattern"
import Brtapll1 from "./Brtapll1"
import Docpre from "./Docpre"
import Shpdet from "./Shpdet"
import Mt750p from "./Mt750p"


export default {
    components:{
        "m-brtapll1" : Brtapll1,
        "m-docpre" : Docpre,
        "m-shpdet" : Shpdet,
        "m-mt750p" : Mt750p,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [CommonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
            tabVal: "",
            trnName: "brtlat",
            model: new Brtlat().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
            },
        }
    },
    methods:{
  
    },
    created:async function(){
        console.log("进入brtlat交易");
        let rtnmsg = await Api.post("brtlat/init",{params:{}})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑

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

</style>
