index.vue 5.38 KB
Newer Older
潘际乾 committed
1
<template>
2
  <div class="eContainer-search">
3 4 5 6
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
7
      label-width="120px"
8 9 10 11 12 13 14 15
      label-position="right"
      size="small"
      :validate-on-rule-change="false"
    >
      <!-- <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> -->

      <!--PD000008 -->
      <!-- <el-tab-pane label="PD000008" name="infsea">
潘际乾 committed
16
                <m-infsea :model="model" :codes="codes"/>
潘际乾 committed
17 18
           </el-tab-pane> -->

19 20 21 22 23 24
      <c-content>
        <m-infsea :model="model" :codes="codes" ref="infsea" />
      </c-content>

      <!-- PD000137 -->
      <!-- <el-tab-pane label="PD000137" name="ovwp">
潘际乾 committed
25
                <m-ovwp :model="model" :codes="codes"/>
潘际乾 committed
26
           </el-tab-pane> -->
27 28 29

      <!--PD000062 -->
      <!-- <el-tab-pane label="PD000062" name="docpre">
潘际乾 committed
30
                <m-docpre :model="model" :codes="codes"/>
潘际乾 committed
31
           </el-tab-pane> -->
32 33 34

      <!--PD000079 -->
      <!-- <el-tab-pane label="PD000079" name="shpdet">
潘际乾 committed
35
                <m-shpdet :model="model" :codes="codes"/>
潘际乾 committed
36
           </el-tab-pane> -->
37 38 39

      <!--PD000000 -->
      <!-- <el-tab-pane label="PD000000" name="coninfp">
潘际乾 committed
40
                <m-coninfp :model="model" :codes="codes"/>
潘际乾 committed
41
           </el-tab-pane> -->
42 43 44

      <!--PD000013 -->
      <!-- <el-tab-pane label="PD000013" name="trnpan">
潘际乾 committed
45
                <m-trnpan :model="model" :codes="codes"/>
潘际乾 committed
46
           </el-tab-pane> -->
47 48 49

      <!--PD000019 -->
      <!-- <el-tab-pane label="PD000019" name="cbsinfp">
潘际乾 committed
50
                <m-cbsinfp :model="model" :codes="codes"/>
潘际乾 committed
51
           </el-tab-pane> -->
52 53 54

      <!--PD000028 -->
      <!-- <el-tab-pane label="PD000028" name="cbeinfp">
潘际乾 committed
55
                <m-cbeinfp :model="model" :codes="codes"/>
潘际乾 committed
56
           </el-tab-pane> -->
57 58 59

      <!--PD000111 -->
      <!-- <el-tab-pane label="PD000111" name="fepinfp">
潘际乾 committed
60
                <m-fepinfp :model="model" :codes="codes"/>
潘际乾 committed
61
           </el-tab-pane> -->
62 63 64

      <!--PD000162 -->
      <!-- <el-tab-pane label="PD000162" name="sepinfp">
潘际乾 committed
65
                <m-sepinfp :model="model" :codes="codes"/>
潘际乾 committed
66
           </el-tab-pane> -->
67 68 69

      <!--PD000177 -->
      <!-- <el-tab-pane label="PD000177" name="gleinfp">
潘际乾 committed
70
                <m-gleinfp :model="model" :codes="codes"/>
潘际乾 committed
71
           </el-tab-pane> -->
72 73 74

      <!--PD000119 -->
      <!-- <el-tab-pane label="PD000119" name="smhinfp">
潘际乾 committed
75
                <m-smhinfp :model="model" :codes="codes"/>
潘际乾 committed
76
           </el-tab-pane> -->
77 78 79

      <!--PD000130 -->
      <!-- <el-tab-pane label="PD000130" name="peninfp">
潘际乾 committed
80
                <m-peninfp :model="model" :codes="codes"/>
潘际乾 committed
81
           </el-tab-pane> -->
82 83 84

      <!--PD000147 -->
      <!-- <el-tab-pane label="PD000147" name="liainfp">
潘际乾 committed
85
                <m-liainfp :model="model" :codes="codes"/>
潘际乾 committed
86
           </el-tab-pane> -->
87 88 89

      <!--PD000007 -->
      <!-- <el-tab-pane label="PD000007" name="prtpan">
潘际乾 committed
90
                <m-prtpan :model="model" :codes="codes"/>
潘际乾 committed
91
           </el-tab-pane> -->
92 93 94

      <!--PD000185 -->
      <!-- <el-tab-pane label="PD000185" name="ordpan">
潘际乾 committed
95
                <m-ordpan :model="model" :codes="codes"/>
潘际乾 committed
96
           </el-tab-pane> -->
97
      <!-- </c-tabs> -->
潘际乾 committed
98 99 100 101
    </el-form>
  </div>
</template>
<script>
102 103 104 105 106 107 108 109
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Infbrd from "~/model/Infbrd";
import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Infbrd/Check";
import Default from "~/model/Infbrd/Default";
import Pattern from "~/model/Infbrd/Pattern";
import Infsea from "./Infsea";
潘际乾 committed
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
// import Ovwp from "./Ovwp"
// import Docpre from "./Docpre"
// import Shpdet from "./Shpdet"
// import Coninfp from "./Coninfp"
// import Trnpan from "./Trnpan"
// import Cbsinfp from "./Cbsinfp"
// import Cbeinfp from "./Cbeinfp"
// import Fepinfp from "./Fepinfp"
// import Sepinfp from "./Sepinfp"
// import Gleinfp from "./Gleinfp"
// import Smhinfp from "./Smhinfp"
// import Peninfp from "./Peninfp"
// import Liainfp from "./Liainfp"
// import Prtpan from "./Prtpan"
// import Ordpan from "./Ordpan"
潘际乾 committed
125 126

export default {
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
  name: "Infbrd",
  components: {
    "m-infsea": Infsea,
    //    "m-ovwp" : Ovwp,
    //    "m-docpre" : Docpre,
    //    "m-shpdet" : Shpdet,
    //    "m-coninfp" : Coninfp,
    //    "m-trnpan" : Trnpan,
    //    "m-cbsinfp" : Cbsinfp,
    //    "m-cbeinfp" : Cbeinfp,
    //    "m-fepinfp" : Fepinfp,
    //    "m-sepinfp" : Sepinfp,
    //    "m-gleinfp" : Gleinfp,
    //    "m-smhinfp" : Smhinfp,
    //    "m-peninfp" : Peninfp,
    //    "m-liainfp" : Liainfp,
    //    "m-prtpan" : Prtpan,
    //    "m-ordpan" : Ordpan,
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      tabVal: "infsea",
      trnName: "infbrd",
      model: new Infbrd().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        ...CodeTable,
      },
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
潘际乾 committed
172
    },
173 174 175 176 177 178 179 180 181 182
  },
  created: async function () {
    console.log("进入infbrd交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      this.updateModel(rtnmsg.data);
      //TODO 处理数据逻辑
      this.$refs.infsea.handleSearch();
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
潘际乾 committed
183
    }
184 185
  },
};
潘际乾 committed
186 187 188
</script>
<style>
</style>