index.vue 4.94 KB
Newer Older
liushikai committed
1 2
<template>
  <div class="eContainer">
liuxin committed
3
    <c-page title="">
wangren committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
    <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">
liuxin committed
25
          <m-predecessors :model="model" :codes="codes" />
wangren committed
26 27 28
        </el-tab-pane>

        <el-tab-pane label="SWIFT发送" name="config2">
liuxin committed
29
          <m-swt :model="model" :codes="codes" />
wangren committed
30 31 32
        </el-tab-pane>

        <el-tab-pane label="TC发送" name="config3">
liuxin committed
33
          <m-tco :model="model" :codes="codes" />
wangren committed
34 35 36
        </el-tab-pane>

        <el-tab-pane label="检查ACK" name="config4">
liuxin committed
37
          <m-pda :model="model" :codes="codes" />
wangren committed
38 39 40
        </el-tab-pane>

        <el-tab-pane label="Finalize Order" name="config5">
liuxin committed
41
          <m-finalize :model="model" :codes="codes" />
wangren committed
42 43 44
        </el-tab-pane>

        <el-tab-pane label="return to Zhongtai" name="config6">
liuxin committed
45
          <m-rtz :model="model" :codes="codes" />
wangren committed
46 47 48
        </el-tab-pane>

        <el-tab-pane label="Pending CIPACK" name="config7">
liuxin committed
49
          <m-cipack :model="model" :codes="codes" />
wangren committed
50 51 52
        </el-tab-pane>

        <el-tab-pane label="GPI" name="config8">
liuxin committed
53
          <m-gpi :model="model" :codes="codes" />
wangren committed
54 55 56
        </el-tab-pane>

        <el-tab-pane label="衍生品额度释放" name="config9">
liuxin committed
57
          <m-srvlmd :model="model" :codes="codes" />
wangren committed
58 59 60
        </el-tab-pane>

        <el-tab-pane label="衍生品额度业务信息同步" name="config10">
liuxin committed
61
          <m-srvlme :model="model" :codes="codes" />
wangren committed
62 63
        </el-tab-pane>

liuxin committed
64
        <!-- <el-tab-pane label="ELCACK" name="config11">
wangren committed
65
          <m-config :model="model" :codes="codes" />
liuxin committed
66
        </el-tab-pane> -->
wangren committed
67 68 69

        <!--PD000060 -->
        <!-- <el-tab-pane label="PD000060" name="prtswtp">
liushikai committed
70
                <m-prtswtp :model="model" :codes="codes"/>
71
           </el-tab-pane> -->
wangren committed
72 73 74

        <!--PD000062 -->
        <!-- <el-tab-pane label="PD000062" name="prtswtrp">
liushikai committed
75
                <m-prtswtrp :model="model" :codes="codes"/>
76
           </el-tab-pane> -->
wangren committed
77 78 79

        <!--PD000061 -->
        <!-- <el-tab-pane label="PD000061" name="xmldoc">
liushikai committed
80
                <m-xmldoc :model="model" :codes="codes"/>
81
           </el-tab-pane> -->
wangren committed
82 83 84

        <!--PD000001 -->
        <!-- <el-tab-pane label="PD000001" name="prttst">
liushikai committed
85
                <m-prttst :model="model" :codes="codes"/>
86
           </el-tab-pane> -->
wangren committed
87 88 89

        <!--PD000049 -->
        <!-- <el-tab-pane label="PD000049" name="prtswtr">
liushikai committed
90
                <m-prtswtr :model="model" :codes="codes"/>
91
           </el-tab-pane> -->
wangren committed
92
      </c-tabs>
liushikai committed
93
    </el-form>
liuxin committed
94
    </c-page>
liushikai committed
95 96 97
  </div>
</template>
<script>
wangren committed
98 99 100 101 102 103 104
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";
liuxin committed
105

wangren committed
106 107
import Tskmgr from "./Tskmgr";
import Srvdsp from "./Srvdsp";
liuxin committed
108 109 110 111 112 113 114 115 116 117
import Cipack from "./Cipack";
import Finalize from "./Finalize";
import Gpi from "./Gpi";
import Pda from "./Pda";
import Predecessors from "./Predecessors";
import Rtz from "./Rtz";
import Srvlmd from "./Srvlmd";
import Srvlme from "./Srvlme";
import Swt from "./Swt";
import Tco from "./Tco";
liushikai committed
118 119

export default {
liuxin committed
120
    name: 'Mgrtsk',
liushikai committed
121 122 123
    components:{
        "m-tskmgr" : Tskmgr,
        "m-srvdsp" : Srvdsp,
liuxin committed
124 125 126 127 128 129 130 131 132 133
        "m-cipack" : Cipack,
        "m-finalize" : Finalize,
        "m-gpi" : Gpi,
        "m-pda" : Pda,
        "m-predecessors" : Predecessors,
        "m-rtz" : Rtz,
        "m-srvlmd" : Srvlmd,
        "m-srvlme" : Srvlme,
        "m-swt" : Swt,
        "m-tco" : Tco,
liushikai committed
134 135 136 137 138 139
    },
    provide() {
        return {
            root: this
        }
    },
wangren committed
140
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
liushikai committed
141 142
    data(){
        return {
143
            tabVal: "tskmgr",
liushikai committed
144 145 146 147 148 149
            trnName: "mgrtsk",
            model: new Mgrtsk().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
150
            codes: {...CodeTable},
liushikai committed
151 152 153 154 155 156 157 158 159 160 161 162
        }
    },
    methods:{
        tabClick(){
        }
    },
    created:async function(){
        console.log("进入mgrtsk交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑
liuxin committed
163
           this.updateModel(rtnmsg.data)
liushikai committed
164 165 166 167 168
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
wangren committed
169 170
  },
};
liushikai committed
171 172 173
</script>
<style>
</style>