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

            <!-- PD000137 -->
           <!-- <el-tab-pane label="PD000137" name="ovwp">
潘际乾 committed
17
                <m-ovwp :model="model" :codes="codes"/>
潘际乾 committed
18
           </el-tab-pane> -->
潘际乾 committed
19 20
 
            <!--PD000062 -->
潘际乾 committed
21
           <!-- <el-tab-pane label="PD000062" name="docpre">
潘际乾 committed
22
                <m-docpre :model="model" :codes="codes"/>
潘际乾 committed
23
           </el-tab-pane> -->
潘际乾 committed
24 25
 
            <!--PD000079 -->
潘际乾 committed
26
           <!-- <el-tab-pane label="PD000079" name="shpdet">
潘际乾 committed
27
                <m-shpdet :model="model" :codes="codes"/>
潘际乾 committed
28
           </el-tab-pane> -->
潘际乾 committed
29 30
 
            <!--PD000000 -->
潘际乾 committed
31
           <!-- <el-tab-pane label="PD000000" name="coninfp">
潘际乾 committed
32
                <m-coninfp :model="model" :codes="codes"/>
潘际乾 committed
33
           </el-tab-pane> -->
潘际乾 committed
34 35
 
            <!--PD000013 -->
潘际乾 committed
36
           <!-- <el-tab-pane label="PD000013" name="trnpan">
潘际乾 committed
37
                <m-trnpan :model="model" :codes="codes"/>
潘际乾 committed
38
           </el-tab-pane> -->
潘际乾 committed
39 40
 
            <!--PD000019 -->
潘际乾 committed
41
           <!-- <el-tab-pane label="PD000019" name="cbsinfp">
潘际乾 committed
42
                <m-cbsinfp :model="model" :codes="codes"/>
潘际乾 committed
43
           </el-tab-pane> -->
潘际乾 committed
44 45
 
            <!--PD000028 -->
潘际乾 committed
46
           <!-- <el-tab-pane label="PD000028" name="cbeinfp">
潘际乾 committed
47
                <m-cbeinfp :model="model" :codes="codes"/>
潘际乾 committed
48
           </el-tab-pane> -->
潘际乾 committed
49 50
 
            <!--PD000111 -->
潘际乾 committed
51
           <!-- <el-tab-pane label="PD000111" name="fepinfp">
潘际乾 committed
52
                <m-fepinfp :model="model" :codes="codes"/>
潘际乾 committed
53
           </el-tab-pane> -->
潘际乾 committed
54 55
 
            <!--PD000162 -->
潘际乾 committed
56
           <!-- <el-tab-pane label="PD000162" name="sepinfp">
潘际乾 committed
57
                <m-sepinfp :model="model" :codes="codes"/>
潘际乾 committed
58
           </el-tab-pane> -->
潘际乾 committed
59 60
 
            <!--PD000177 -->
潘际乾 committed
61
           <!-- <el-tab-pane label="PD000177" name="gleinfp">
潘际乾 committed
62
                <m-gleinfp :model="model" :codes="codes"/>
潘际乾 committed
63
           </el-tab-pane> -->
潘际乾 committed
64 65
 
            <!--PD000119 -->
潘际乾 committed
66
           <!-- <el-tab-pane label="PD000119" name="smhinfp">
潘际乾 committed
67
                <m-smhinfp :model="model" :codes="codes"/>
潘际乾 committed
68
           </el-tab-pane> -->
潘际乾 committed
69 70
 
            <!--PD000130 -->
潘际乾 committed
71
           <!-- <el-tab-pane label="PD000130" name="peninfp">
潘际乾 committed
72
                <m-peninfp :model="model" :codes="codes"/>
潘际乾 committed
73
           </el-tab-pane> -->
潘际乾 committed
74 75
 
            <!--PD000147 -->
潘际乾 committed
76
           <!-- <el-tab-pane label="PD000147" name="liainfp">
潘际乾 committed
77
                <m-liainfp :model="model" :codes="codes"/>
潘际乾 committed
78
           </el-tab-pane> -->
潘际乾 committed
79 80
 
            <!--PD000007 -->
潘际乾 committed
81
           <!-- <el-tab-pane label="PD000007" name="prtpan">
潘际乾 committed
82
                <m-prtpan :model="model" :codes="codes"/>
潘际乾 committed
83
           </el-tab-pane> -->
潘际乾 committed
84 85
 
            <!--PD000185 -->
潘际乾 committed
86
           <!-- <el-tab-pane label="PD000185" name="ordpan">
潘际乾 committed
87
                <m-ordpan :model="model" :codes="codes"/>
潘际乾 committed
88 89
           </el-tab-pane> -->
       <!-- </c-tabs> -->
潘际乾 committed
90 91 92 93 94 95 96 97 98 99 100 101
    </el-form>
  </div>
</template>
<script>
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
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
// 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
117 118 119 120 121 122


export default {
    name: "Infbrd",
    components:{
        "m-infsea" : Infsea,
潘际乾 committed
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
     //    "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,
潘际乾 committed
138 139 140 141 142 143 144 145 146
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
zhujiazhan committed
147
            tabVal: "infsea",
潘际乾 committed
148 149 150 151 152 153 154
            trnName: "infbrd",
            model: new Infbrd().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
zhujiazhan committed
155
                ...CodeTable
潘际乾 committed
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入infbrd交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑
zhujiazhan committed
174
           this.$refs.infsea.handleSearch();
潘际乾 committed
175 176 177 178 179 180 181 182 183 184 185
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>