index.vue 2.89 KB
Newer Older
1
<template>
huangxin committed
2
    <c-page title="删 -- 国内外汇贷款">
3
  <div class="eContainer">
huangxin committed
4
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
5 6
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
                   <!--cfabut PD000002 接口数据 -->
huangxin committed
7 8
           <el-tab-pane label="接口数据" name="sel">
            <c-content>
9
                <m-sel :model="model" :codes="codes"/>
huangxin committed
10
                </c-content>
11 12
           </el-tab-pane>
            <!--ecap PD000001 国内外汇贷款-签约信息 -->
huangxin committed
13 14
           <el-tab-pane label="国内外汇贷款-签约信息" name="conp">
            <c-content>
15
                <m-conp :model="model" :codes="codes"/>
huangxin committed
16
                </c-content>
17
           </el-tab-pane>
18 19 20 21 22 23

           <el-tab-pane label="国内外汇贷款-变动信息" name="dclpp">
            <c-content>
                <m-dclpp :model="model" :codes="codes"/>
                </c-content>
           </el-tab-pane>
24 25
       </c-tabs>
    </el-form>
huangxin committed
26
    <c-function-btn
27 28
        :handleSubmit="handleSubmit.bind(this,'cfabut.sav')"
        :handleCheck="handleCheck.bind(this,'cfabut.chk')"
huangxin committed
29 30 31
        :handleStash="handleStash"
      >
      </c-function-btn>
32
  </div>
huangxin committed
33
  </c-page>
34 35 36 37 38 39
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Ecadel from "~/model/Ecadel"
import commonProcess from "~/mixin/commonProcess"
huangxin committed
40
import commonFuncs from "~/mixin/commonFuncs";
41 42 43 44 45
import Check from "~/model/Ecadel/Check"
import Default from "~/model/Ecadel/Default"
import Pattern from "~/model/Ecadel/Pattern"
import Sel from "./Sel"
import Conp from "./Conp"
46
import Dclpp from "./Dclpp"
47 48 49 50 51


export default {
    name: "Ecadel",
    components:{
52
        "m-dclpp":Dclpp,
53 54 55 56 57 58 59 60
        "m-sel" : Sel,
        "m-conp" : Conp,
    },
    provide() {
        return {
            root: this
        }
    },
huangxin committed
61
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
62 63
    data(){
        return {
huangxin committed
64
            tabVal: "sel",
65 66 67 68 69 70 71
            trnName: "ecadel",
            trnType: "",
            model: new Ecadel().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
72
            codes: {...CodeTable
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入ecadel交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑

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

</style>