<template>
  <c-page title="出口信用证单据查询">
     <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">

               <!--选择 -->
               <el-tab-pane label="选择" name="infsea">
                 <c-content>
                         <m-infsea :model="model" :codes="codes"/>
                 </c-content>
               </el-tab-pane>
     
               <!--内容 -->
               <el-tab-pane label="内容" name="ovwp">
                    <c-content>
                    <m-ovwp :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>
     
               <!--附言 -->
               <el-tab-pane label="附言" name="coninfp">
                    <c-content>
                    <m-coninfp :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>
     
               <!--Transactions -->
               <el-tab-pane label="Transactions" name="trnpan">
                    <c-content>
                    <m-trnpan :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>
     
               <!--CBS Info -->
               <el-tab-pane label="CBS Info" name="cbsinfp">
                    <c-content>
                    <m-cbsinfp :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>
     
               <!--CBE Info -->
               <el-tab-pane label="CBE Info" name="cbeinfp">
                    <c-content>
                    <m-cbeinfp :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>
     
               <!--FEP /FCP Info -->
               <el-tab-pane label="FEP /FCP Info" name="fepinfp">
               <c-content>
                    <m-fepinfp :model="model" :codes="codes"/>
               </c-content>
               </el-tab-pane>
     
               <!--SEP Info -->
               <el-tab-pane label="SEP Info" name="sepinfp">
                    <c-content>
                    <m-sepinfp :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>
     
               <!--GLE Bookings -->
               <el-tab-pane label="分录信息" name="gleinfp">
                    <c-content>
                    <m-gleinfp :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>
     
               <!--SMH Info -->
               <el-tab-pane label="报文信息" name="smhinfp">
                    <c-content>
                    <m-smhinfp :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>
     
               <!--SPT /DIA Info -->
               <el-tab-pane label="经办信息" name="peninfp">
               <c-content>
                    <m-peninfp :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>
     
               <!--Engagement -->
               <el-tab-pane label="Engagement" name="liainfp">
                    <c-content>
                    <m-liainfp :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>
     
               <!--Print -->
               <el-tab-pane label="Print" name="prtpan">
                    <c-content>
                    <m-prtpan :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>
     
               <!--Order -->
               <el-tab-pane label="Order" name="ordpan">
                    <c-content>
                    <m-ordpan :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>
          </c-tabs>
     </el-form>
     </div>
   </c-page>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infbed from "~/model/Infbed"
import CommonProcess from "~/mixin/CommonProcess"
import Check from "~/model/Infbed/Check"
import Default from "~/model/Infbed/Default"
import Pattern from "~/model/Infbed/Pattern"
import Infsea from "./Infsea"
import Ovwp from "./Ovwp"
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 Coninfp from "./Coninfp"
// import Coninfp from "~/views/Public/Coninfp";

export default {
    components:{
        "m-infsea" : Infsea,
        "m-ovwp" : Ovwp,
        "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-coninfp" : Coninfp,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [CommonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
            tabVal: "infsea",
            trnName: "infbed",
            model: new Infbed().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {...CodeTable
            },
          //   showflg: true,
        }
    },
    methods:{
        tabClick(){ 
        }
    },
    created:async function(){
        console.log("进入infbed交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑

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

</style>
