index.vue 1.87 KB
Newer Older
李少勇 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<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">
          <el-tab-pane label="业务信息" name="batdis">
            <c-content>
              <m-batdis :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
        </c-tabs>
      </el-form>
    </c-page>
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Batdis from "../model"
import MBatdis from "./Batdis"
李少勇 committed
22
import Utils from "~/utils"
李少勇 committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import buildFn from "../event/buildCommons.js";
import Check from "../model/check.js";
export default {
  name: "Batdis",
  components: {
    "m-batdis": MBatdis,
  },
  provide() {
    return {
      root: this
    }
  },
  mixins: [operationFunc, commonDepend, event, buildFn],
  data() {
    return {
      tabVal: "batdis",
      trnName: "batdis",
      model: new Batdis().data,
      rules: Check,
      codes: {
李少勇 committed
47
        ...CodeTable
李少勇 committed
48 49 50 51 52 53 54 55 56 57 58
      },
    }
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab)
    }
  },
  created: async function () {
    console.log("进入batdis交易");
    let params = {
李少勇 committed
59 60
      inr: this.$route.query.inr || "",
      traname1: ''
李少勇 committed
61
    };
李少勇 committed
62 63 64 65 66 67 68 69 70 71 72
    const rtnmsg = await Api.post(`/${this.moduleRouter()}/${this.trnName}/init`, params);
    if (rtnmsg.respCode === SUCCESS) {
      Utils.copyValueFromVoData(this.model.batgrp, rtnmsg.data);
    }
    this.model.batgrp.dotlst = [
      {
        rsptim: '1',
        valdat: '1',
        ownref: '1',
      }
    ]
李少勇 committed
73 74 75 76
  }
}
</script>
<style></style>