index.vue 6.47 KB
Newer Older
Your Name committed
1 2
<template>
  <div class="eContainer">
wangna committed
3 4 5 6
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
7
      label-width="120px"
wangna committed
8 9 10 11 12 13 14 15 16 17 18
      label-position="left"
      size="small"
      :validate-on-rule-change="false"
    >
      <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
        <c-content>
          <m-infsea :model="model" :codes="codes" ref="infsea" />
        </c-content>

        <!--PD000006 -->
        <!-- <el-tab-pane label="Selection" name="infsea">
Your Name committed
19
                <m-infsea :model="model" :codes="codes"/>
wangna committed
20
           </el-tab-pane> -->
wangna committed
21 22 23

        <!--PD000013 -->
        <!-- <el-tab-pane label="Transactions" name="trnpan">
Your Name committed
24
                <m-trnpan :model="model" :codes="codes"/>
wangna committed
25
           </el-tab-pane> -->
wangna committed
26 27 28

        <!--PD000019 -->
        <!-- <el-tab-pane label="CBS Info" name="cbsinfp">
Your Name committed
29
                <m-cbsinfp :model="model" :codes="codes"/>
wangna committed
30
           </el-tab-pane> -->
wangna committed
31 32 33

        <!--PD000028 -->
        <!-- <el-tab-pane label="CBE Info" name="cbeinfp">
Your Name committed
34
                <m-cbeinfp :model="model" :codes="codes"/>
wangna committed
35
           </el-tab-pane> -->
wangna committed
36 37 38

        <!--PD000111 -->
        <!-- <el-tab-pane label="FEP/FCP Info" name="fepinfp">
Your Name committed
39
                <m-fepinfp :model="model" :codes="codes"/>
wangna committed
40
           </el-tab-pane> -->
wangna committed
41 42 43

        <!--PD000162 -->
        <!-- <el-tab-pane label="SEP Info" name="sepinfp">
Your Name committed
44
                <m-sepinfp :model="model" :codes="codes"/>
wangna committed
45
           </el-tab-pane> -->
wangna committed
46 47 48

        <!--PD000001 -->
        <!-- <el-tab-pane label="Details of Temporary Settlement" name="sepp0">
Your Name committed
49
                <m-sepp0 :model="model" :codes="codes"/>
wangna committed
50
           </el-tab-pane> -->
wangna committed
51 52 53

        <!--PD000177 -->
        <!-- <el-tab-pane label="GLE Bookings" name="gleinfp">
Your Name committed
54
                <m-gleinfp :model="model" :codes="codes"/>
wangna committed
55
           </el-tab-pane> -->
wangna committed
56 57 58

        <!--PD000119 -->
        <!-- <el-tab-pane label="SMH Info" name="smhinfp">
Your Name committed
59
                <m-smhinfp :model="model" :codes="codes"/>
wangna committed
60
           </el-tab-pane> -->
wangna committed
61 62 63

        <!--PD000130 -->
        <!-- <el-tab-pane label="SPT/DIA Info" name="peninfp">
Your Name committed
64
                <m-peninfp :model="model" :codes="codes"/>
wangna committed
65
           </el-tab-pane> -->
wangna committed
66 67 68

        <!--PD000147 -->
        <!-- <el-tab-pane label="Engagement" name="liainfp">
Your Name committed
69
                <m-liainfp :model="model" :codes="codes"/>
wangna committed
70
           </el-tab-pane> -->
wangna committed
71 72 73

        <!--PD000005 -->
        <!-- <el-tab-pane label="Print" name="prtpan">
Your Name committed
74
                <m-prtpan :model="model" :codes="codes"/>
wangna committed
75
           </el-tab-pane> -->
wangna committed
76 77 78

        <!--PD000185 -->
        <!-- <el-tab-pane label="Order" name="ordpan">
Your Name committed
79
                <m-ordpan :model="model" :codes="codes"/>
wangna committed
80
           </el-tab-pane> -->
wangna committed
81 82 83

        <!--PD000029 -->
        <!-- <el-tab-pane label="Order" name="ordp0">
Your Name committed
84
                <m-ordp0 :model="model" :codes="codes"/>
wangna committed
85
           </el-tab-pane> -->
wangna committed
86 87 88

        <!--PD000001 -->
        <!-- <el-tab-pane label="DTA Fields" name="dtetag">
Your Name committed
89
                <m-dtetag :model="model" :codes="codes"/>
wangna committed
90
           </el-tab-pane> -->
wangna committed
91 92 93

        <!--PD000065 -->
        <!-- <el-tab-pane label="Settlement Instructions" name="setinsp">
Your Name committed
94
                <m-setinsp :model="model" :codes="codes"/>
wangna committed
95
           </el-tab-pane> -->
wangna committed
96 97 98

        <!--PD000001 -->
        <!-- <el-tab-pane label="Fee Conditions" name="fecp">
Your Name committed
99
                <m-fecp :model="model" :codes="codes"/>
wangna committed
100
           </el-tab-pane> -->
wangna committed
101 102 103

        <!--PD000204 -->
        <!-- <el-tab-pane label="CIPS" name="cips">
Your Name committed
104
                <m-cips :model="model" :codes="codes"/>
wangna committed
105
           </el-tab-pane> -->
wangna committed
106 107 108

        <!--PD000449 -->
        <!-- <el-tab-pane label="CIPS2.0" name="cips2">
Your Name committed
109
                <m-cips2 :model="model" :codes="codes"/>
wangna committed
110
           </el-tab-pane> -->
wangna committed
111 112 113

        <!--PD000450 -->
        <!-- <el-tab-pane label="CIPS2.0" name="cips3">
Your Name committed
114
                <m-cips3 :model="model" :codes="codes"/>
wangna committed
115
           </el-tab-pane> -->
wangna committed
116 117 118 119 120 121 122
        <c-grid-ety-prompt-dialog
          ref="etyDialog"
          :promptData="promptData"
          v-on:select-ety="selectEty"
        >
        </c-grid-ety-prompt-dialog>
      </c-tabs>
Your Name committed
123 124 125 126
    </el-form>
  </div>
</template>
<script>
wangna committed
127 128 129 130 131 132 133 134
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Infccd from "~/model/Infccd";
import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Infccd/Check";
import Default from "~/model/Infccd/Default";
import Pattern from "~/model/Infccd/Pattern";
import Infsea from "./Infsea";
wangna committed
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
// import Trnpan from "./Trnpan"
// import Cbsinfp from "./Cbsinfp"
// import Cbeinfp from "./Cbeinfp"
// import Fepinfp from "./Fepinfp"
// import Sepinfp from "./Sepinfp"
// import Sepp0 from "./Sepp0"
// 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 Ordp0 from "./Ordp0"
// import Dtetag from "./Dtetag"
// import Setinsp from "./Setinsp"
// import Fecp from "./Fecp"
// import Cips from "./Cips"
// import Cips2 from "./Cips2"
// import Cips3 from "./Cips3"
Your Name committed
154 155

export default {
wangna committed
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
  components: {
    "m-infsea": Infsea,
    //    "m-trnpan" : Trnpan,
    //    "m-cbsinfp" : Cbsinfp,
    //    "m-cbeinfp" : Cbeinfp,
    //    "m-fepinfp" : Fepinfp,
    //    "m-sepinfp" : Sepinfp,
    //    "m-sepp0" : Sepp0,
    //    "m-gleinfp" : Gleinfp,
    //    "m-smhinfp" : Smhinfp,
    //    "m-peninfp" : Peninfp,
    //    "m-liainfp" : Liainfp,
    //    "m-prtpan" : Prtpan,
    //    "m-ordpan" : Ordpan,
    //    "m-ordp0" : Ordp0,
    //    "m-dtetag" : Dtetag,
    //    "m-setinsp" : Setinsp,
    //    "m-fecp" : Fecp,
    //    "m-cips" : Cips,
    //    "m-cips2" : Cips2,
    //    "m-cips3" : Cips3,
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      tabVal: "",
      trnName: "infccd",
      model: new Infccd().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        ...CodeTable,
      },
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
Your Name committed
204
    },
wangna committed
205 206 207 208 209 210 211 212 213
  },
  created: async function () {
    console.log("进入infccd交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      this.updateModel(rtnmsg.data);
      //TODO 处理数据逻辑
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
Your Name committed
214
    }
wangna committed
215 216
  },
};
Your Name committed
217 218 219
</script>
<style>
</style>