index.vue 3 KB
Newer Older
吴佳 committed
1
  <template>
liushikai committed
2
  <div class="eContainer">
3 4 5 6 7 8 9 10 11 12 13 14 15
    <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">
        <!--PD000010 -->
        <el-tab-pane label="Manager for Incoming Messages" name="tskmgr">
          <m-tskmgr :model="model" :codes="codes" />
        </el-tab-pane>
liushikai committed
16

17 18 19
        <el-tab-pane label="Incoming SWIFT" name="srvswi">
          <m-srvswi :model="model" :codes="codes" />
        </el-tab-pane>
liushikai committed
20

21 22 23
        <el-tab-pane label="TradeConnect" name="Srvtci">
          <m-srvtci :model="model" :codes="codes" />
        </el-tab-pane>
liushikai committed
24

25 26 27
        <el-tab-pane label="Telex" name="Srvtli">
          <m-srvtli :model="model" :codes="codes" />
        </el-tab-pane>
liushikai committed
28

29 30 31
        <el-tab-pane label="DTA Export L/C" name="Srvdte">
          <m-srvdte :model="model" :codes="codes" />
        </el-tab-pane>
liushikai committed
32

33 34 35
        <el-tab-pane label="DTA Import L/C" name="Srvdta">
          <m-srvdta :model="model" :codes="codes" />
        </el-tab-pane>
liushikai committed
36

37 38 39
        <el-tab-pane label="E-mail" name="Srvemi">
          <m-srvemi :model="model" :codes="codes" />
        </el-tab-pane>
liushikai committed
40

41 42 43 44
        <el-tab-pane label="ECL Import L/C" name="Srveli">
          <m-srveli :model="model" :codes="codes" />
        </el-tab-pane>
      </c-tabs>
liushikai committed
45 46 47 48
    </el-form>
  </div>
</template>
<script>
49
import Api from "~/service/Api";
吴佳 committed
50
import Utils from "~/utils/index";
51 52 53 54 55 56 57 58 59 60 61 62 63 64
import CodeTable from "~/config/CodeTable";
import Switsk from "~/model/Switsk";
import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Switsk/Check";
import Default from "~/model/Switsk/Default";
import Pattern from "~/model/Switsk/Pattern";
import Tskmgr from "./Tskmgr";
import Srvswi from "./Srvswi";
import Srvtci from "./Srvtci";
import Srvtli from "./Srvtli";
import Srvdte from "./Srvdte";
import Srvdta from "./Srvdta";
import Srvemi from "./Srvemi";
import Srveli from "./Srveli";
liushikai committed
65 66

export default {
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
  name: "Switsk",
  components: {
    "m-tskmgr": Tskmgr,
    "m-srvswi": Srvswi,
    "m-srvtci": Srvtci,
    "m-srvtli": Srvtli,
    "m-srvdte": Srvdte,
    "m-srvdta": Srvdta,
    "m-srvemi": Srvemi,
    "m-srveli": Srveli,
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      tabVal: "tskmgr",
      trnName: "switsk",
      model: new Switsk().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
    };
  },
  methods: {
    tabClick() {},
  },
  created: async function () {
    console.log("进入switsk交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      Utils.copyValueFromVO(this.model, rtnmsg.data);
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
liushikai committed
107
    }
108 109
  },
};
liushikai committed
110 111 112
</script>
<style>
</style>