index.vue 3.67 KB
Newer Older
fanyanyan committed
1 2
<template>
  <div class="eContainer">
liyixun committed
3 4 5 6
    <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">
                   <!--bttset PD000034 Funds Settlement -->
           <el-tab-pane :label="$t('bttset.PD000034')" name="setp">
fanyanyan committed
7 8
                <m-setp :model="model" :codes="codes"/>
           </el-tab-pane>
liyixun committed
9 10 11
            <!--lendoc PD000001 收账通知 -->
           <el-tab-pane :label="$t('lendoc.PD000001')" name="docpan">
                <m-docpan :model="model" :codes="codes"/>
fanyanyan committed
12
           </el-tab-pane>
liyixun committed
13 14 15
            <!--bopgat PD000006 外管信息 -->
           <el-tab-pane :label="$t('bopgat.PD000006')" name="wg">
                <m-wg :model="model" :codes="codes"/>
fanyanyan committed
16
           </el-tab-pane>
liyixun committed
17 18 19
            <!--dbdp PD000000 境内收入申报单-基础信息 -->
           <el-tab-pane :label="$t('dbdp.PD000000')" name="basp">
                <m-basp :model="model" :codes="codes"/>
fanyanyan committed
20
           </el-tab-pane>
liyixun committed
21 22 23
            <!--dbap PD000000 涉外收入申报单-基础信息 -->
           <el-tab-pane :label="$t('dbap.PD000000')" name="basp">
                <m-basp :model="model" :codes="codes"/>
fanyanyan committed
24
           </el-tab-pane>
liyixun committed
25 26 27 28 29 30 31
            <!--cnybop PD000002 跨境人民币申报 -->
           <el-tab-pane :label="$t('cnybop.PD000002')" name="cnyp">
                <m-cnyp :model="model" :codes="codes"/>
           </el-tab-pane>
            <!--cnybop PD000001 2101跨境收入信息 -->
           <el-tab-pane :label="$t('cnybop.PD000001')" name="incp">
                <m-incp :model="model" :codes="codes"/>
fanyanyan committed
32
           </el-tab-pane>
liyixun committed
33 34 35
            <!--limmod PD001139 试算结果 -->
           <el-tab-pane :label="$t('limmod.PD001139')" name="shisuan">
                <m-shisuan :model="model" :codes="codes"/>
fanyanyan committed
36 37 38 39 40 41 42 43 44
           </el-tab-pane>
       </c-tabs>
    </el-form>
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Bttset from "~/model/Bttset"
wangren committed
45
import commonProcess from "~/mixin/commonProcess"
fanyanyan committed
46 47 48 49
import Check from "~/model/Bttset/Check"
import Default from "~/model/Bttset/Default"
import Pattern from "~/model/Bttset/Pattern"
import Setp from "./Setp"
liyixun committed
50 51 52 53 54 55
import Docpan from "./Docpan"
import Wg from "./Wg"
import Basp from "./Basp"
import Cnyp from "./Cnyp"
import Incp from "./Incp"
import Shisuan from "./Shisuan"
fanyanyan committed
56 57 58


export default {
liyixun committed
59
    name: "Bttset",
fanyanyan committed
60 61 62
    components:{
        "m-setp" : Setp,
        "m-docpan" : Docpan,
liyixun committed
63 64 65 66 67
        "m-wg" : Wg,
        "m-basp" : Basp,
        "m-cnyp" : Cnyp,
        "m-incp" : Incp,
        "m-shisuan" : Shisuan,
fanyanyan committed
68 69 70 71 72 73
    },
    provide() {
        return {
            root: this
        }
    },
wangren committed
74
    mixins: [commonProcess],    // 里面包含了Default、Check等的公共处理
fanyanyan committed
75 76
    data(){
        return {
liyixun committed
77
            tabVal: "",
fanyanyan committed
78
            trnName: "bttset",
liyixun committed
79
            trnType: "",
fanyanyan committed
80 81 82 83 84 85 86 87 88 89
            model: new Bttset().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
            },
        }
    },
    methods:{
liyixun committed
90 91 92 93 94
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
fanyanyan committed
95 96 97 98 99 100 101
        }
    },
    created:async function(){
        console.log("进入bttset交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
liyixun committed
102
           this.updateModel(rtnmsg.data)
fanyanyan committed
103 104 105 106 107 108 109 110 111 112 113 114 115
           //TODO 处理数据逻辑

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

</style>