index.vue 3.45 KB
Newer Older
chenzhaole committed
1
<template>
2 3 4 5 6 7 8 9 10 11 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
  <div class="eContainer">
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
        
            <!--Ovweview -->
           <el-tab-pane label="Ovweview" name="opnp1">
                <m-opnp1 :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--Parties -->
           <el-tab-pane label="Parties" name="pardet">
                <m-pardet :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--Settlements -->
           <el-tab-pane label="Settlements" name="setpan">
                <m-setpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--Completion -->
           <el-tab-pane label="Completion" name="coninfp">
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000018 -->
           <el-tab-pane label="PD000018" name="addinf">
                <m-addinf :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--Attachments -->
           <el-tab-pane label="Attachments" name="doctre">
                <m-doctre :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--Messages -->
           <el-tab-pane label="Messages" name="docpan">
                <m-docpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
chenzhaole committed
41
            <!--PD000006 -->
42 43 44 45 46 47
           <el-tab-pane label="PD000006" name="wg">
                <m-wg :model="model" :codes="codes"/>
           </el-tab-pane>
       </c-tabs>
    </el-form>
  </div>
chenzhaole committed
48 49
</template>
<script>
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Cptati from "~/model/Cptati"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Cptati/Check"
import Default from "~/model/Cptati/Default"
import Pattern from "~/model/Cptati/Pattern"
import Opnp1 from "./Opnp1"
import Pardet from "./Pardet"
import Setpan from "./Setpan"
import Coninfp from "./Coninfp"
import Addinf from "./Addinf"
import Doctre from "./Doctre"
import Docpan from "./Docpan"
import Wg from "./Wg"
chenzhaole committed
65 66 67 68 69


export default {
    name: "Cptati",
    components:{
70 71 72 73 74 75 76 77
        "m-opnp1" : Opnp1,
        "m-pardet" : Pardet,
        "m-setpan" : Setpan,
        "m-coninfp" : Coninfp,
        "m-addinf" : Addinf,
        "m-doctre" : Doctre,
        "m-docpan" : Docpan,
        "m-wg" : Wg,
chenzhaole committed
78 79 80
    },
    provide() {
        return {
81 82
            root: this
        }
chenzhaole committed
83
    },
wangren committed
84
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
chenzhaole committed
85 86
    data(){
        return {
87
            tabVal: "",
chenzhaole committed
88 89
            trnName: "cptati",
            model: new Cptati().data,
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
chenzhaole committed
105
    },
106 107 108 109 110 111 112 113 114 115 116 117 118
    created:async function(){
        console.log("进入cptati交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑

        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
chenzhaole committed
119
    }
120
}
chenzhaole committed
121 122 123 124
</script>
<style>

</style>