index.vue 4.95 KB
Newer Older
jianglong committed
1 2 3 4
<template>
  <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">
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

              <!--PD000042 -->
               <el-tab-pane label="Menu" name="menu">
                    <c-content>
                     <m-menu :model="model" :codes="codes"/>
                    </c-content>
               </el-tab-pane>

            <!--PD000049 -->
           <el-tab-pane label="PD000049" name="prtswtr">
                <m-prtswtr :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000062 -->
           <el-tab-pane label="PD000062" name="prtswtrp">
                <m-prtswtrp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000060 -->
           <el-tab-pane label="PD000060" name="prtswtp">
                <m-prtswtp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000061 -->
           <el-tab-pane label="PD000061" name="xmldoc">
                <m-xmldoc :model="model" :codes="codes"/>
jianglong committed
31
           </el-tab-pane>
32 33 34 35
 
            <!--PD000001 -->
           <el-tab-pane label="PD000001" name="sptp0">
                <m-sptp0 :model="model" :codes="codes"/>
jianglong committed
36
           </el-tab-pane>
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
 
            <!--PD000029 -->
           <el-tab-pane label="PD000029" name="sptpopup">
                <m-sptpopup :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000029 -->
           <el-tab-pane label="PD000029" name="ordp0">
                <m-ordp0 :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000015 -->
           <el-tab-pane label="PD000015" name="prtpan">
                <m-prtpan :model="model" :codes="codes"/>
           </el-tab-pane>

 
            <!--PD000000 -->
           <el-tab-pane label="PD000000" name="prtp">
                <m-prtp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000212 -->
           <el-tab-pane label="PD000212" name="cmt100pyl">
                <m-cmt100pyl :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000250 -->
           <el-tab-pane label="PD000250" name="fmtpyl">
                <m-fmtpyl :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000314 -->
           <el-tab-pane label="PD000314" name="cipspan">
                <m-cipspan :model="model" :codes="codes"/>
           </el-tab-pane>
 

jianglong committed
75 76
       </c-tabs>
    </el-form>
77 78 79 80 81 82 83 84 85 86 87

            <c-grid-ety-prompt-dialog
              ref="doxpDialog"
              :isPty="false"
              :promptData="promptData"
              @select-ety="selectMsg"
            >
                   
            </c-grid-ety-prompt-dialog>


jianglong committed
88 89 90 91 92 93 94 95 96 97
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Sptneg from "~/model/Sptneg"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Sptneg/Check"
import Default from "~/model/Sptneg/Default"
import Pattern from "~/model/Sptneg/Pattern"
98 99 100 101 102 103 104 105 106 107 108 109
import Prtswtr from "./Prtswtr"
import Prtswtrp from "./Prtswtrp"
import Prtswtp from "./Prtswtp"
import Xmldoc from "./Xmldoc"
import Sptp0 from "./Sptp0"
import Sptpopup from "./Sptpopup"
import Ordp0 from "./Ordp0"
import Prtpan from "./Prtpan"
import Prtp from "./Prtp"
import Cmt100pyl from "./Cmt100pyl"
import Fmtpyl from "./Fmtpyl"
import Cipspan from "./Cipspan"
jianglong committed
110 111 112 113 114 115
import Menu from "./Menu"


export default {
    name: "Sptneg",
    components:{
116 117 118 119 120 121 122 123 124 125 126 127
        "m-prtswtr" : Prtswtr,
        "m-prtswtrp" : Prtswtrp,
        "m-prtswtp" : Prtswtp,
        "m-xmldoc" : Xmldoc,
        "m-sptp0" : Sptp0,
        "m-sptpopup" : Sptpopup,
        "m-ordp0" : Ordp0,
        "m-prtpan" : Prtpan,
        "m-prtp" : Prtp,
        "m-cmt100pyl" : Cmt100pyl,
        "m-fmtpyl" : Fmtpyl,
        "m-cipspan" : Cipspan,
jianglong committed
128 129 130 131 132 133 134 135 136 137
        "m-menu" : Menu,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
    data(){
        return {
138
            tabVal: "utlp",
jianglong committed
139 140 141 142 143 144 145
            trnName: "sptneg",
            model: new Sptneg().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
146
                ...CodeTable
jianglong committed
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入sptneg交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑

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

</style>