index.vue 2.66 KB
Newer Older
1
<template>
闫泽浩 committed
2 3
  <div class="eContainer" >
   
潘际乾 committed
4 5 6 7
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
8
      label-width="120px"
闫泽浩 committed
9
      label-position="right"
潘际乾 committed
10 11 12 13 14
      size="small"
			:validate-on-rule-change="false"
    >
      <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
        <!--PD000002 -->
闫泽浩 committed
15
        <el-tab-pane label="搜索面板" name="infsea">
潘际乾 committed
16 17 18 19 20
          <m-infsea :model="model" :codes="codes" />
        </el-tab-pane>
        <!-- </c-tabs> -->

        <!--PD000029 -->
闫泽浩 committed
21
        <el-tab-pane label="详细面板" name="ptap0">
潘际乾 committed
22 23 24 25 26
          <m-ptap0 :model="model" :codes="codes" />
        </el-tab-pane>
        <!-- </c-tabs> -->

        <!--PD000685 -->
闫泽浩 committed
27
        <el-tab-pane label="明细" name="ptap1">
潘际乾 committed
28 29 30 31 32
          <m-ptap1 :model="model" :codes="codes" />
        </el-tab-pane>
        <!-- </c-tabs> -->

        <!--PD000650 -->
闫泽浩 committed
33
        <el-tab-pane label="认证住址" name="ptmpan">
潘际乾 committed
34 35 36 37 38 39 40 41 42
          <m-ptmpan :model="model" :codes="codes" />
        </el-tab-pane>
        <!-- </c-tabs> -->

        <!--PD000700 -->
        <el-tab-pane label="Infotext" name="oitpan">
          <m-oitpan :model="model" :codes="codes" />
        </el-tab-pane>
      </c-tabs>
43 44 45 46
    </el-form>
  </div>
</template>
<script>
潘际乾 committed
47 48 49
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Infpta from "~/model/Infpta";
wangren committed
50
import commonProcess from "~/mixin/commonProcess";
闫泽浩 committed
51
import commonFuncs from "~/mixin/commonFuncs";
潘际乾 committed
52 53 54 55 56 57 58 59 60
import Check from "~/model/Infpta/Check";
import Default from "~/model/Infpta/Default";
import Pattern from "~/model/Infpta/Pattern";
import Infsea from "./Infsea";
import Ptap0 from "./Ptap0";
import Ptap1 from "./Ptap1";
import Ptmpan from "./Ptmpan";
import Oitpan from "./Oitpan";
import Event from "~/model/Infpta/Event";
61 62

export default {
潘际乾 committed
63
  name: 'Infpta',
潘际乾 committed
64 65 66 67 68 69 70 71 72 73 74 75
  components: {
    "m-infsea": Infsea,
    "m-ptap0": Ptap0,
    "m-ptap1": Ptap1,
    "m-ptmpan": Ptmpan,
    "m-oitpan": Oitpan,
  },
  provide() {
    return {
      root: this,
    };
  },
闫泽浩 committed
76
  mixins: [commonProcess,commonFuncs], // 里面包含了Default、Check等的公共处理
潘际乾 committed
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
  data() {
    return {
      tabVal: "infsea",
			trnName:"infpta",
      model: new Infpta().data,
      checkRules:Check,
      defaultRules:Default,
			pattern: Pattern,
      rules: null,
      codes: {},
    };
  },
  methods: {
      ...Event
  },
  created: async function() {
    console.log("进入infpta交易");
潘际乾 committed
94
    let rtnmsg = await this.init({})
潘际乾 committed
95 96 97 98 99
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      this.updateModel(rtnmsg.data);
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
100
    }
潘际乾 committed
101 102
  },
};
103
</script>
潘际乾 committed
104
<style></style>