<template>
  <c-page title="出口信用证查询"> 
     <div class="eContainer">
          <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
          <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">
               
                    <!--PD000006 Selection -->
                    <el-tab-pane label="查询信息" name="infsea">
                         <c-content>
                              <m-infsea :model="model" :codes="codes"/>
                        </c-content>
                    </el-tab-pane>
          
                    <!--PD000017  Overview -->
                    <el-tab-pane label="内容" name="ovwp">
                         <c-content>
                              <m-ovwp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000063 Details -->
                    <el-tab-pane label="信用证详情" name="detp">
                         <c-content>
                              <m-detp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000042 Parties -->
                    <el-tab-pane label="银行信息" name="ptyp">
                         <c-content>
                              <m-ptyp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000055 Goods -->
                    <el-tab-pane label="货物描述" name="dogp">
                         <c-content>
                              <m-dogp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000057 Documents -->
                    <el-tab-pane label="单据要求" name="dorp">
                         <c-content>
                              <m-dorp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000060 Additional Conditions -->
                    <el-tab-pane label="其他条款" name="adcp">
                         <c-content>
                              <m-adcp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000000 Completion -->
                    <el-tab-pane label="附言" name="coninfp">
                         <c-content>
                              <m-coninfp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000013 -->
                    <el-tab-pane label="Transactions" name="trnpan">
                         <c-content>
                              <m-trnpan :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000019 -->
                    <el-tab-pane label="CBS Info" name="cbsinfp">
                         <c-content>
                              <m-cbsinfp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000028 -->
                    <el-tab-pane label="CBE Info" name="cbeinfp">
                         <c-content>
                              <m-cbeinfp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000111 -->
                    <el-tab-pane label="FEP/FCP Info" name="fepinfp">
                         <c-content>
                              <m-fepinfp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000162 -->
                    <el-tab-pane label="SEP Info" name="sepinfp">
                         <c-content>
                              <m-sepinfp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000177 -->
                    <el-tab-pane label="GLE Bookings" name="gleinfp">
                         <c-content>
                              <m-gleinfp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000119 -->
                    <el-tab-pane label="SMH Info" name="smhinfp">
                         <c-content>
                              <m-smhinfp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000130 -->
                    <el-tab-pane label="SPT/DIA Info" name="peninfp">
                         <c-content>
                              <m-peninfp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000147 -->
                    <el-tab-pane label="Engagement" name="liainfp">
                         <c-content>
                              <m-liainfp :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000005 -->
                    <el-tab-pane label="Print" name="prtpan">
                         <c-content>
                              <m-prtpan :model="model" :codes="codes"/>
                         </c-content>
                    </el-tab-pane>
          
                    <!--PD000185 -->
                    <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 Infled from "~/model/Infled"
import CommonProcess from "~/mixin/CommonProcess"
import Check from "~/model/Infled/Check"
import Default from "~/model/Infled/Default"
import Pattern from "~/model/Infled/Pattern"
import Infsea from "./Infsea"
import Ovwp from "./Ovwp"
import Detp from "./Detp"
import Ptyp from "./Ptyp"
import Dogp from "./Dogp"
import Dorp from "./Dorp"
import Adcp from "./Adcp"
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 "~/views/Public/Coninfp";


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

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

</style>
