index.vue 4.05 KB
Newer Older
1 2
<template>
  <div class="eContainer">
wangren committed
3 4 5 6 7 8 9 10
    <c-function-btn
      :handleSubmit="handleSubmit" 
      :handleCheck="handleCheck" 
      :handleStash="handleStash"
      >
        
      </c-function-btn>
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
11
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
wangren committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
        
            <!--PD000003 -->
           <el-tab-pane label="Cancelation" name="canp">
                <m-canp :model="model" :codes="codes"/>
           </el-tab-pane>


            <el-tab-pane label="Liability" name="engp">
                <m-engp :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="Cash Cover" name="ccvpan">
                <m-ccvpan :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="Settlement" name="setpan">
                <m-setpan :model="model" :codes="codes"/>
           </el-tab-pane>

            <el-tab-pane label="Booking" name="glepan">
                <m-glepan :model="model" :code="codes"/>
            </el-tab-pane>

            <el-tab-pane label="Completion" name="coninfp">
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="Message" name="docpan">
                <m-docpan :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="Attachments" name="doctre">
                <m-doctre :model="model" :codes="codes"/>
           </el-tab-pane>

            <!--PD001139 -->
           <el-tab-pane label="试算结果" name="shisuan">
                <m-shisuan :model="model" :codes="codes"/>
           </el-tab-pane>

            <el-tab-pane label="统一授信" name="limitbody">
                <m-limitbody :model="model" :codes="codes"/>
           </el-tab-pane>
       </c-tabs>
56 57 58 59 60 61 62
    </el-form>
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Litcan from "~/model/Litcan"
wangren committed
63
import commonProcess from "~/mixin/commonProcess"
wangren committed
64
import commonFuncs from "~/mixin/commonFuncs"
65 66 67
import Check from "~/model/Litcan/Check"
import Default from "~/model/Litcan/Default"
import Pattern from "~/model/Litcan/Pattern"
wangren committed
68 69
import Canp from "./Canp"
import Shisuan from "./Shisuan"
70

wangren committed
71 72 73 74 75 76 77 78
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp";
import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Glepan from "~/views/Public/Glepan";
import Limitbody from "~/views/Public/Limitbody";
79
export default {
wangren committed
80
    name: "Litcan",
81
    components:{
wangren committed
82 83 84 85 86 87 88 89 90 91
        "m-canp" : Canp,
        "m-shisuan" : Shisuan,
        "m-engp" : Engp,
        "m-ccvpan" : Ccvpan,
        "m-setpan" : Setpan,
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
        "m-doctre" : Doctre,
        "m-limitbody" : Limitbody,
        "m-glepan" : Glepan,
92 93 94 95 96 97
    },
    provide() {
        return {
            root: this
        }
    },
wangren committed
98
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
99 100
    data(){
        return {
wangren committed
101
            tabVal: "canp",
102 103 104 105 106 107
            trnName: "litcan",
            model: new Litcan().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
wangren committed
108
            codes: {...CodeTable
109 110 111 112
            },
        }
    },
    methods:{
wangren committed
113 114 115 116 117 118
        // tabClick(tab){
        //     this.tabClick(tab)
        //     /**
        //     *  do it yourself
        //     **/
        // }
119 120 121 122 123 124
    },
    created:async function(){
        console.log("进入litcan交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
wangren committed
125
           this.updateModel(rtnmsg.data)
126 127 128 129 130 131 132 133 134 135 136 137 138
           //TODO 处理数据逻辑

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

</style>