index.vue 3 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>
            <!--ebap PD000001 对外担保-签约信息1 -->
huangxin committed
13 14
           <el-tab-pane label="对外担保-签约信息1" name="conp">
            <c-content>
15
                <m-conp :model="model" :codes="codes"/>
huangxin committed
16
                </c-content>
17 18
           </el-tab-pane>
            <!--ebap PD000034 对外担保-签约信息2 -->
huangxin committed
19 20
           <el-tab-pane label="对外担保-签约信息2" name="conp1">
            <c-content>
21
                <m-conp1 :model="model" :codes="codes"/>
huangxin committed
22
                </c-content>
23 24 25
           </el-tab-pane>
       </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 Ebadel from "~/model/Ebadel"
import commonProcess from "~/mixin/commonProcess"
huangxin committed
40
import commonFuncs from "~/mixin/commonFuncs";
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
import Check from "~/model/Ebadel/Check"
import Default from "~/model/Ebadel/Default"
import Pattern from "~/model/Ebadel/Pattern"
import Sel from "./Sel"
import Conp from "./Conp"
import Conp1 from "./Conp1"


export default {
    name: "Ebadel",
    components:{
        "m-sel" : Sel,
        "m-conp" : Conp,
        "m-conp1" : Conp1,
    },
    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: "ebadel",
            trnType: "",
            model: new Ebadel().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
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入ebadel交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑
huangxin committed
91 92 93
           if (this.isInDisplay) {
        this.restoreDisplay();
      }
94 95 96 97 98 99 100 101 102 103 104
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>