index.vue 2.97 KB
Newer Older
1 2
<template>
  <div class="eContainer">
tianxinyu committed
3
    <c-page title="境内收入申报单(查询)">
Wuyuqiu committed
4
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
5 6
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
                   <!--bopbut PD000000 接口数据 -->
tianxinyu committed
7 8
           <el-tab-pane label="接口数据" name="selection">
            <c-content>
9
                <m-selection :model="model" :codes="codes"/>
tianxinyu committed
10
            </c-content>
11 12
           </el-tab-pane>
            <!--dbdp PD000000 境内收入申报单-基础信息 -->
Wuyuqiu committed
13 14
           <el-tab-pane label="境内收入申报单-基础信息" name="basp">
            <c-content>
15
                <m-basp :model="model" :codes="codes"/>
Wuyuqiu committed
16 17
            </c-content>
           </el-tab-pane>
18
            <!--dbdp PD000002 境内收入申报单-管理信息 -->
tianxinyu committed
19
           <!-- <el-tab-pane :label="$t('dbdp.PD000002')" name="vrfp">
20
                <m-vrfp :model="model" :codes="codes"/>
tianxinyu committed
21
           </el-tab-pane> -->
22 23
       </c-tabs>
    </el-form>
24
    <!-- <c-function-btn
tianxinyu committed
25 26 27 28
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
29
      </c-function-btn> -->
tianxinyu committed
30
    </c-page>
31 32 33 34 35 36 37
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Dbdinf from "~/model/Dbdinf"
import commonProcess from "~/mixin/commonProcess"
38
import commonFuncs from "~/mixin/commonFuncs";
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
import Check from "~/model/Dbdinf/Check"
import Default from "~/model/Dbdinf/Default"
import Pattern from "~/model/Dbdinf/Pattern"
import Selection from "./Selection"
import Basp from "./Basp"
import Vrfp from "./Vrfp"


export default {
    name: "Dbdinf",
    components:{
        "m-selection" : Selection,
        "m-basp" : Basp,
        "m-vrfp" : Vrfp,
    },
    provide() {
        return {
            root: this
        }
    },
59
    mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
60 61
    data(){
        return {
tianxinyu committed
62
            tabVal: "selection",
63 64 65 66 67 68 69
            trnName: "dbdinf",
            model: new Dbdinf().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
tianxinyu committed
70
                ...CodeTable
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入dbdinf交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑
89 90 91
           if (this.isInDisplay) {
        this.restoreDisplay();
      }
92 93 94 95 96 97 98 99 100 101 102 103

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

</style>