index.vue 2.51 KB
Newer Older
1 2
<template>
  <div class="eContainer">
3
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
4 5 6
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
        
            <!--PD000071 -->
nanrui committed
7
           <el-tab-pane label="选择面板" name="inftrnps">
8 9
                <m-inftrnps :model="model" :codes="codes"/>
           </el-tab-pane>
taojinrui committed
10 11 12 13

           <el-tab-pane label="流程记录" name="orerec" v-if="true">
               <m-orerec :model="model" :codes="codes"></m-orerec>
           </el-tab-pane>
14 15 16 17 18 19 20 21 22 23 24 25
       </c-tabs>
    </el-form>
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Cptrel from "~/model/Cptrel"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Cptrel/Check"
import Default from "~/model/Cptrel/Default"
import Pattern from "~/model/Cptrel/Pattern"
nanrui committed
26

taojinrui committed
27
import Coninfp from "~/views/Public/Coninfp"
nanrui committed
28

29
import Inftrnps from "./Inftrnps"
taojinrui committed
30 31 32 33 34 35
import Trnp0 from "./Trnp0"
import Trnpwfm from "./Trnpwfm"
import Trnptro from "./Trnptro"
import Subpena from "./Subpena"
import Orerec from "./Orerec"
import Gltrnps from "./Gltrnps"
36 37 38 39 40 41


export default {
    name: "Cptrel",
    components:{
        "m-inftrnps" : Inftrnps,
taojinrui committed
42 43 44 45 46 47 48
        "m-trnp0" : Trnp0,
        "m-trnpwfm" : Trnpwfm,
        "m-trnptro" :Trnptro,
        "m-subpena" : Subpena,
        "m-orerec" : Orerec,
        "m-coninfp": Coninfp,
        "m-gltrnps" : Gltrnps
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
            tabVal: "inftrnps",
            trnName: "cptrel",
            model: new Cptrel().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
taojinrui committed
65
            codes: {...CodeTable
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入cptrel交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑

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

</style>