index.vue 2.01 KB
Newer Older
fukai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
<template>
  <div class="eContainer">
    <c-page title="资本项目数据发送">
      <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
          <!--cfasnd PD000001 CFA Message Send -->
          <el-tab-pane label="CFA Message Send" name="sndp">
            <m-sndp :model="model" :codes="codes" />
          </el-tab-pane>
          <!--cfacfg PD000001 Configeration -->
          <el-tab-pane label="Configeration" name="cfgp">
            <m-cfgp :model="model" :codes="codes" />
          </el-tab-pane>
          <!--cfacfg PD000014 选择机构 -->
          <el-tab-pane label="选择机构" name="bchsel">
            <m-bchsel :model="model" :codes="codes" />
          </el-tab-pane>
        </c-tabs>
      </el-form>
    </c-page>
  </div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";

import Sndp from "./Sndp";
import Cfgp from "./Cfgp";
import Bchsel from "./Bchsel";

import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import Check from "../model/check";
import Default from "../model/default";
import Cfasnd from "../model";

export default {
  name: "Cfasnd",
  components: {
    "m-sndp": Sndp,
    "m-cfgp": Cfgp,
    "m-bchsel": Bchsel
  },
  provide() {
    return {
      root: this
    };
  },
  mixins: [Check, Default, operationFunc, event, commonDepend],
  data() {
    return {
      tabVal: "sndp",
      trnName: "cfasnd",
      trnType: "",
      model: new Cfasnd().data,
      codes: {}
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
    }
  },
  created() {
    console.log("进入cfasnd交易");
    let params = {
      transName: this.trnName,
      cfacfg: {
      }
    };
    this.init(params);
  }
};
</script>
<style>
</style>