index.vue 3.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
           </el-tab-pane>
huangxin committed
24 25 26 27 28 29

           <el-tab-pane v-if="this.model.cfabut.dclflg=='X'" label="对外担保-责任余额信息" name="dclpp">
            <c-content>
                <m-dclpp :model="model" :codes="codes"/>
            </c-content>
           </el-tab-pane>
30 31
       </c-tabs>
    </el-form>
huangxin committed
32
    <c-function-btn
33 34
        :handleSubmit="handleSubmit.bind(this,'cfabut.sav')"
        :handleCheck="handleCheck.bind(this,'cfabut.chk')"
huangxin committed
35 36 37
        :handleStash="handleStash"
      >
      </c-function-btn>
38
  </div>
huangxin committed
39
  </c-page>
40 41 42 43 44 45
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Ebaadd from "~/model/Ebaadd"
import commonProcess from "~/mixin/commonProcess"
huangxin committed
46
import commonFuncs from "~/mixin/commonFuncs";
47 48 49 50 51 52
import Check from "~/model/Ebaadd/Check"
import Default from "~/model/Ebaadd/Default"
import Pattern from "~/model/Ebaadd/Pattern"
import Sel from "./Sel"
import Conp from "./Conp"
import Conp1 from "./Conp1"
huangxin committed
53 54
import Dclpp from "./Dclpp"

55 56 57 58 59


export default {
    name: "Ebaadd",
    components:{
huangxin committed
60
        "m-dclpp":Dclpp,
61 62 63 64 65 66 67 68 69
        "m-sel" : Sel,
        "m-conp" : Conp,
        "m-conp1" : Conp1,
    },
    provide() {
        return {
            root: this
        }
    },
huangxin committed
70
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
71 72
    data(){
        return {
huangxin committed
73
            tabVal: "sel",
74 75 76 77 78 79 80 81
            trnName: "ebaadd",
            trnType: "",
            model: new Ebaadd().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
huangxin committed
82
                ...CodeTable
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入ebaadd交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑
huangxin committed
101 102 103
           if (this.isInDisplay) {
        this.restoreDisplay();
      }
104 105 106 107 108 109 110 111 112 113 114
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>