<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">
                         <!--PD000016 -->
                         <el-tab-pane label="Cancelation" name="canp">
                              <c-content>
                                   <m-canp :model="model" :codes="codes"/>
                              </c-content>
                         </el-tab-pane>

                         <!--PD000000 Settlement -->
                         <el-tab-pane label="账务" name="setpan">
                              <c-content>
                                   <m-setpan :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>

                         <!--PD000010 -->
                         <el-tab-pane label="Incoming Tag 72/79" name="coninftag">
                              <c-content>
                                   <m-coninftag :model="model" :codes="codes"/>
                              </c-content>
                         </el-tab-pane>

                         <!--PD000529 Messages -->
                         <el-tab-pane label="报文及面函" name="docpan">
                              <c-content>
                                   <m-docpan :model="model" :codes="codes"/>
                              </c-content>
                         </el-tab-pane>

                         <!--PD000546 Attachments-->
                         <el-tab-pane label="附件" name="doctre">
                              <c-content>
                                   <m-doctre :model="model" :codes="codes"/>
                              </c-content>
                         </el-tab-pane>

                         <!--PD000001 -->
                         <el-tab-pane label="DTA Fields" name="dtetag">
                              <c-content>
                                   <m-dtetag :model="model" :codes="codes"/>
                              </c-content>
                         </el-tab-pane>

                         <!--PD001139 -->
                         <el-tab-pane label="试算结果" name="shisuan">
                              <c-content>
                                   <m-shisuan :model="model" :codes="codes"/>
                              </c-content>
                         </el-tab-pane>

                         <!--PD000204 -->
                         <el-tab-pane label="CIPS" name="cips">
                              <c-content>
                                   <m-cips :model="model" :codes="codes"/>
                              </c-content>
                         </el-tab-pane>

                         <!--PD000449 -->
                         <el-tab-pane label="CIPS2.0" name="cips2">
                              <c-content>
                                   <m-cips2 :model="model" :codes="codes"/>
                              </c-content>
                         </el-tab-pane>

                         <!--PD000450 CIPS2.0 -->
                         <el-tab-pane label="CIPS3.0" name="cips3">
                              <c-content>
                                   <m-cips3 :model="model" :codes="codes"/>
                              </c-content>
                         </el-tab-pane>

                         <!--PD000001 -->
                         <el-tab-pane label="Fee Conditions" name="fecp">
                              <c-content>
                                   <m-fecp :model="model" :codes="codes"/>
                              </c-content>
                         </el-tab-pane>

                         <!--PD000001 -->
                         <el-tab-pane label="统一授信" name="limitbody">
                              <c-content>
                                   <m-limitbody :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 Bptcan from "~/model/Bptcan"
import CommonProcess from "~/mixin/CommonProcess"
import Check from "~/model/Bptcan/Check"
import Default from "~/model/Bptcan/Default"
import Pattern from "~/model/Bptcan/Pattern"
import Canp from "./Canp"
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 Fecp from "./Fecp"
import Limitbody from "./Limitbody"

import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";

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

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

</style>
