<template>
  <div class="eContainer">
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small" :validate-on-rule-change="false">
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
        
            <!--PD000054 -->
           <el-tab-pane label="Task Manager" name="tskmgr">
                <m-tskmgr :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000069 -->
           <el-tab-pane label="Services" name="srvdsp">
                <m-srvdsp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000069 -->
           <el-tab-pane label="Predecessors" name="config1">
                <m-config :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="SWIFT发送" name="config2">
                <m-config :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="TC发送" name="config3">
                <m-config :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="检查ACK" name="config4">
                <m-config :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="Finalize Order" name="config5">
                <m-config :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="return to Zhongtai" name="config6">
                <m-config :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="Pending CIPACK" name="config7">
                <m-config :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="GPI" name="config8">
                <m-config :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="衍生品额度释放" name="config9">
                <m-config :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="衍生品额度业务信息同步" name="config10">
                <m-config :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="ELCACK" name="config11">
                <m-config :model="model" :codes="codes"/>
           </el-tab-pane>
 
 
            <!--PD000060 -->
           <!-- <el-tab-pane label="PD000060" name="prtswtp">
                <m-prtswtp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000062 -->
           <!-- <el-tab-pane label="PD000062" name="prtswtrp">
                <m-prtswtrp :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000061 -->
           <!-- <el-tab-pane label="PD000061" name="xmldoc">
                <m-xmldoc :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
            <!--PD000001 -->
           <!-- <el-tab-pane label="PD000001" name="prttst">
                <m-prttst :model="model" :codes="codes"/>
           </el-tab-pane> -->
 
 
            <!--PD000049 -->
           <!-- <el-tab-pane label="PD000049" name="prtswtr">
                <m-prtswtr :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 Mgrtsk from "~/model/Mgrtsk"
import CommonProcess from "~/mixin/CommonProcess"
import Check from "~/model/Mgrtsk/Check"
import Default from "~/model/Mgrtsk/Default"
import Pattern from "~/model/Mgrtsk/Pattern"
import Tskmgr from "./Tskmgr"
import Srvdsp from "./Srvdsp"
import Config from "./Config"
import Prtswtp from "./Prtswtp"
import Prtswtrp from "./Prtswtrp"
import Xmldoc from "./Xmldoc"
import Prttst from "./Prttst"
import Prtswtr from "./Prtswtr"


export default {
     name: 'Mgrtsk',
    components:{
        "m-tskmgr" : Tskmgr,
        "m-srvdsp" : Srvdsp,
        "m-config" : Config,
        "m-prtswtp" : Prtswtp,
        "m-prtswtrp" : Prtswtrp,
        "m-xmldoc" : Xmldoc,
        "m-prttst" : Prttst,
        "m-prtswtr" : Prtswtr,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [CommonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
            tabVal: "tskmgr",
            trnName: "mgrtsk",
            model: new Mgrtsk().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {...CodeTable},
        }
    },
    methods:{
        tabClick(){
        }
    },
    created:async function(){
        console.log("进入mgrtsk交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑

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

</style>
