index.vue 6.12 KB
Newer Older
cyy committed
1 2 3 4 5 6 7 8 9 10 11 12 13
<template>
  <c-page title="出口信用证单据查询">
     <div class="eContainer">
          <el-form 
               :model="model" 
               :rules="rules" 
               ref="modelForm" 
               label-width="150px"
               label-position="left"
               size="small" 
               :validate-on-rule-change="false"
          >
          <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
cyy committed
14

cyy committed
15
               <!--选择 -->
cyy committed
16 17 18 19
               <el-tab-pane label="选择" name="infsea">
                 <c-content>
                         <m-infsea :model="model" :codes="codes"/>
                 </c-content>
cyy committed
20 21 22
               </el-tab-pane>
     
               <!--内容 -->
cyy committed
23 24
               <el-tab-pane label="内容" name="ovwp">
                    <c-content>
cyy committed
25
                    <m-ovwp :model="model" :codes="codes"/>
cyy committed
26
                    </c-content>
cyy committed
27 28 29
               </el-tab-pane>
     
               <!--附言 -->
cyy committed
30 31
               <el-tab-pane label="附言" name="coninfp">
                    <c-content>
cyy committed
32
                    <m-coninfp :model="model" :codes="codes"/>
cyy committed
33
                    </c-content>
cyy committed
34 35 36 37
               </el-tab-pane>
     
               <!--Transactions -->
               <el-tab-pane label="Transactions" name="trnpan">
cyy committed
38
                    <c-content>
cyy committed
39
                    <m-trnpan :model="model" :codes="codes"/>
cyy committed
40
                    </c-content>
cyy committed
41 42 43 44
               </el-tab-pane>
     
               <!--CBS Info -->
               <el-tab-pane label="CBS Info" name="cbsinfp">
cyy committed
45
                    <c-content>
cyy committed
46
                    <m-cbsinfp :model="model" :codes="codes"/>
cyy committed
47
                    </c-content>
cyy committed
48 49 50 51
               </el-tab-pane>
     
               <!--CBE Info -->
               <el-tab-pane label="CBE Info" name="cbeinfp">
cyy committed
52
                    <c-content>
cyy committed
53
                    <m-cbeinfp :model="model" :codes="codes"/>
cyy committed
54
                    </c-content>
cyy committed
55 56 57 58
               </el-tab-pane>
     
               <!--FEP /FCP Info -->
               <el-tab-pane label="FEP /FCP Info" name="fepinfp">
cyy committed
59
               <c-content>
cyy committed
60
                    <m-fepinfp :model="model" :codes="codes"/>
cyy committed
61
               </c-content>
cyy committed
62 63 64 65
               </el-tab-pane>
     
               <!--SEP Info -->
               <el-tab-pane label="SEP Info" name="sepinfp">
cyy committed
66
                    <c-content>
cyy committed
67
                    <m-sepinfp :model="model" :codes="codes"/>
cyy committed
68
                    </c-content>
cyy committed
69 70 71
               </el-tab-pane>
     
               <!--GLE Bookings -->
cyy committed
72 73
               <el-tab-pane label="分录信息" name="gleinfp">
                    <c-content>
cyy committed
74
                    <m-gleinfp :model="model" :codes="codes"/>
cyy committed
75
                    </c-content>
cyy committed
76 77 78
               </el-tab-pane>
     
               <!--SMH Info -->
cyy committed
79 80
               <el-tab-pane label="报文信息" name="smhinfp">
                    <c-content>
cyy committed
81
                    <m-smhinfp :model="model" :codes="codes"/>
cyy committed
82
                    </c-content>
cyy committed
83 84 85
               </el-tab-pane>
     
               <!--SPT /DIA Info -->
cyy committed
86 87
               <el-tab-pane label="经办信息" name="peninfp">
               <c-content>
cyy committed
88
                    <m-peninfp :model="model" :codes="codes"/>
cyy committed
89
                    </c-content>
cyy committed
90 91 92 93
               </el-tab-pane>
     
               <!--Engagement -->
               <el-tab-pane label="Engagement" name="liainfp">
cyy committed
94
                    <c-content>
cyy committed
95
                    <m-liainfp :model="model" :codes="codes"/>
cyy committed
96
                    </c-content>
cyy committed
97 98 99 100
               </el-tab-pane>
     
               <!--Print -->
               <el-tab-pane label="Print" name="prtpan">
cyy committed
101
                    <c-content>
cyy committed
102
                    <m-prtpan :model="model" :codes="codes"/>
cyy committed
103
                    </c-content>
cyy committed
104 105 106 107
               </el-tab-pane>
     
               <!--Order -->
               <el-tab-pane label="Order" name="ordpan">
cyy committed
108
                    <c-content>
cyy committed
109
                    <m-ordpan :model="model" :codes="codes"/>
cyy committed
110
                    </c-content>
cyy committed
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
               </el-tab-pane>
          </c-tabs>
     </el-form>
     </div>
   </c-page>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infbed from "~/model/Infbed"
import CommonProcess from "~/mixin/CommonProcess"
import Check from "~/model/Infbed/Check"
import Default from "~/model/Infbed/Default"
import Pattern from "~/model/Infbed/Pattern"
import Infsea from "./Infsea"
import Ovwp from "./Ovwp"
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"
cyy committed
138 139
import Coninfp from "./Coninfp"
// import Coninfp from "~/views/Public/Coninfp";
cyy committed
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 172

export default {
    components:{
        "m-infsea" : Infsea,
        "m-ovwp" : Ovwp,
        "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,
        "m-coninfp" : Coninfp,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [CommonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
            tabVal: "infsea",
            trnName: "infbed",
            model: new Infbed().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
cyy committed
173
            codes: {...CodeTable
cyy committed
174
            },
cyy committed
175
          //   showflg: true,
cyy committed
176 177 178
        }
    },
    methods:{
cyy committed
179
        tabClick(){ 
cyy committed
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
        }
    },
    created:async function(){
        console.log("进入infbed交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑

        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>