index.vue 3.06 KB
Newer Older
zhangzhenmin committed
1 2
<template>
  <div class="eContainer">
3 4 5 6 7 8 9 10
    <c-page title="费用管理">

     <el-form :model="model" 
              :rules="rules" 
              ref="modelForm" 
              label-width="120px" label-position="right" 
              size="small" 
              :validate-on-rule-change="false">
xiameng committed
11
        
zhangzhenmin committed
12 13
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
              <!--PD000027 -->
xiameng committed
14
           <el-tab-pane label="费用查询" name="infsea">
15
                <m-infsea :model="model" :codes="codes" ref="infsea"/>
zhangzhenmin committed
16 17
           </el-tab-pane>
            <!--PD000119 -->
xiameng committed
18
           <el-tab-pane label="费用详情" name="feep">
xiameng committed
19
                <m-feep :model="model" :codes="codes" ref="feep"/>
zhangzhenmin committed
20 21 22
           </el-tab-pane>
       </c-tabs>
    </el-form>
23

24
    <!-- <c-function-btn
25 26 27 28
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
29
    </c-function-btn> -->
30
    </c-page>
zhangzhenmin committed
31 32 33 34 35 36 37
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Utils from "~/utils/index"
import Inffee from "~/model/Inffee"
wangren committed
38
import commonProcess from "~/mixin/commonProcess"
xiameng committed
39
import commonFuncs from "~/mixin/commonFuncs"
zhangzhenmin committed
40 41 42 43 44
import Check from "~/model/Inffee/Check"
import Default from "~/model/Inffee/Default"
import Pattern from "~/model/Inffee/Pattern"
import Feep from "./Feep"
import Infsea from "./Infsea"
xiameng committed
45
import Event from "~/model/Inffee/Event"
zhangzhenmin committed
46
export default {
xiameng committed
47 48
    name: 'Inffee',  
       
zhangzhenmin committed
49 50 51 52 53 54 55 56 57
    components:{
        "m-feep" : Feep,
        "m-infsea" : Infsea,
    },
    provide() {
        return {
            root: this
        }
    },
xiameng committed
58
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
zhangzhenmin committed
59 60 61 62 63 64 65 66 67
    data(){
        return {
            tabVal: "infsea",
            trnName: "inffee",
            model: new Inffee().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
xiameng committed
68 69 70 71
            codes:  { ...CodeTable 
            },
        };
        
zhangzhenmin committed
72 73
    },
    methods:{
xiameng committed
74 75 76 77
     //   tabClick(){}
     myTabClick(tab){
            this.tabClick(tab)
     }
zhangzhenmin committed
78
    },
xiameng committed
79
   
zhangzhenmin committed
80 81
    created:async function(){
        console.log("进入inffee交易");
xiameng committed
82 83 84
        
        let rtnmsg = await this.init({})
      //  console.log(rtnmsg);
zhangzhenmin committed
85 86 87
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑
xiameng committed
88 89 90
           this.updateModel(rtnmsg.data)
            
        } else
zhangzhenmin committed
91 92 93 94
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }

xiameng committed
95 96 97 98 99 100 101
        // 查询码表模板 diasel
       /* getCodetable({ tbl:'DIATXT',lang:'EN' }).then((res) => {
                if (res.respCode == SUCCESS) {
                  this.codes.diatxt = res.data;
                }
            });
            const that = this;
zhangzhenmin committed
102 103
        that.init(that.model).then(res => {
            //TODO 处理数据逻辑
xiameng committed
104 105 106
            that.model = Utils.copyValueFromVO(that.model, res.data)
            this.$refs.diaselp.handleSearch();
        })*/
zhangzhenmin committed
107

xiameng committed
108
      
zhangzhenmin committed
109
    }
xiameng committed
110 111 112
  
    }

zhangzhenmin committed
113 114 115 116
</script>
<style>

</style>