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

cyy committed
15 16
               <!-- <el-tab-pane label="选择" name="infsea"> -->
                 <!-- <c-content> -->
cyy committed
17
                         <m-infsea :model="model" :codes="codes"/>
cyy committed
18 19
                 <!-- </c-content> -->
               <!-- </el-tab-pane> -->
cyy committed
20
     
cyy committed
21
               <!-- <el-tab-pane label="内容" name="ovwp">
cyy committed
22
                    <c-content>
cyy committed
23
                    <m-ovwp :model="model" :codes="codes"/>
cyy committed
24
                    </c-content>
cyy committed
25 26
               </el-tab-pane>
     
cyy committed
27 28
               <el-tab-pane label="附言" name="coninfp">
                    <c-content>
cyy committed
29
                    <m-coninfp :model="model" :codes="codes"/>
cyy committed
30
                    </c-content>
cyy committed
31 32 33
               </el-tab-pane>
     
               <el-tab-pane label="Transactions" name="trnpan">
cyy committed
34
                    <c-content>
cyy committed
35
                    <m-trnpan :model="model" :codes="codes"/>
cyy committed
36
                    </c-content>
cyy committed
37 38 39
               </el-tab-pane>
     
               <el-tab-pane label="CBS Info" name="cbsinfp">
cyy committed
40
                    <c-content>
cyy committed
41
                    <m-cbsinfp :model="model" :codes="codes"/>
cyy committed
42
                    </c-content>
cyy committed
43 44 45
               </el-tab-pane>
     
               <el-tab-pane label="CBE Info" name="cbeinfp">
cyy committed
46
                    <c-content>
cyy committed
47
                    <m-cbeinfp :model="model" :codes="codes"/>
cyy committed
48
                    </c-content>
cyy committed
49 50 51
               </el-tab-pane>
     
               <el-tab-pane label="FEP /FCP Info" name="fepinfp">
cyy committed
52
               <c-content>
cyy committed
53
                    <m-fepinfp :model="model" :codes="codes"/>
cyy committed
54
               </c-content>
cyy committed
55
               </el-tab-pane>
cyy committed
56

cyy committed
57
               <el-tab-pane label="SEP Info" name="sepinfp">
cyy committed
58
                    <c-content>
cyy committed
59
                    <m-sepinfp :model="model" :codes="codes"/>
cyy committed
60
                    </c-content>
cyy committed
61
               </el-tab-pane>
cyy committed
62

cyy committed
63 64
               <el-tab-pane label="分录信息" name="gleinfp">
                    <c-content>
cyy committed
65
                    <m-gleinfp :model="model" :codes="codes"/>
cyy committed
66
                    </c-content>
cyy committed
67
               </el-tab-pane>
cyy committed
68

cyy committed
69 70
               <el-tab-pane label="报文信息" name="smhinfp">
                    <c-content>
cyy committed
71
                    <m-smhinfp :model="model" :codes="codes"/>
cyy committed
72
                    </c-content>
cyy committed
73 74
               </el-tab-pane>
     
cyy committed
75 76
               <el-tab-pane label="经办信息" name="peninfp">
               <c-content>
cyy committed
77
                    <m-peninfp :model="model" :codes="codes"/>
cyy committed
78
                    </c-content>
cyy committed
79 80 81
               </el-tab-pane>
     
               <el-tab-pane label="Engagement" name="liainfp">
cyy committed
82
                    <c-content>
cyy committed
83
                    <m-liainfp :model="model" :codes="codes"/>
cyy committed
84
                    </c-content>
cyy committed
85
               </el-tab-pane>
cyy committed
86

cyy committed
87
               <el-tab-pane label="Print" name="prtpan">
cyy committed
88
                    <c-content>
cyy committed
89
                    <m-prtpan :model="model" :codes="codes"/>
cyy committed
90
                    </c-content>
cyy committed
91
               </el-tab-pane>
cyy committed
92

cyy committed
93
               <el-tab-pane label="Order" name="ordpan">
cyy committed
94
                    <c-content>
cyy committed
95
                    <m-ordpan :model="model" :codes="codes"/>
cyy committed
96
                    </c-content>
cyy committed
97
               </el-tab-pane> -->
cyy committed
98 99 100 101 102 103 104 105 106
          </c-tabs>
     </el-form>
     </div>
   </c-page>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Infbed from "~/model/Infbed"
wangren committed
107
import commonProcess from "~/mixin/commonProcess"
cyy committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
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
124 125
import Coninfp from "./Coninfp"
// import Coninfp from "~/views/Public/Coninfp";
cyy committed
126 127

export default {
cyy committed
128
     name: 'Infbed',
cyy committed
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
    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
        }
    },
wangren committed
150
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
cyy committed
151 152 153 154 155 156 157 158 159
    data(){
        return {
            tabVal: "infsea",
            trnName: "infbed",
            model: new Infbed().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
cyy committed
160
            codes: {...CodeTable
cyy committed
161
            },
cyy committed
162
          //   showflg: true,
cyy committed
163 164 165
        }
    },
    methods:{
cyy committed
166
        tabClick(){ 
cyy committed
167 168 169 170 171 172 173 174
        }
    },
    created:async function(){
        console.log("进入infbed交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑
cyy committed
175
           this.updateModel(rtnmsg.data)
cyy committed
176 177 178 179 180 181 182 183 184 185

        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>
cyy committed
186 187 188
     .infbedTab .el-tabs__content {
        padding: 10px 0 10px 0;
    }
cyy committed
189

cyy committed
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
    .infbedTab .infrow {
        padding: 0 10px 0 10px;
    }

    .infTopBtn {
        position: absolute;
        top: 0;
        z-index: 5;
        width: 100%;
        height: 30px;
        padding: 10px 0 10px 30px;
        background-color: #f7faff;
    }
    .eContainer {
  padding: 3px 15px;
}
cyy committed
206
</style>