index.vue 7.23 KB
Newer Older
taojinrui committed
1 2
<template>
  <div class="eContainer">
taojinrui committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

       <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
        <el-button size="small">备忘录</el-button>
        <el-button size="small">影像信息</el-button>
        <!-- <el-button size="small">保存模板</el-button> -->
        <!-- <el-button size="small">使用模板</el-button> -->
        <el-button size="small">制裁信息</el-button>
        <!-- <el-button size="small">拆分报文</el-button> -->
        <el-button size="small">智能提示</el-button>
      </c-function-btn>

18
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
taojinrui committed
19
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
20 21
           <!--cptrep PD000020 概要 -->
           <el-tab-pane label="概要" name="opnp1">
22
                <c-content>
taojinrui committed
23
                <m-opnp1 :model="model" :codes="codes"/>
24
                </c-content>
taojinrui committed
25
           </el-tab-pane>
nanrui committed
26 27
            <!--setmod PD000000 结算 -->
           <el-tab-pane label="结算" name="setpan">
28
                <c-content>
taojinrui committed
29
                <m-setpan :model="model" :codes="codes"/>
30
                </c-content>
taojinrui committed
31
           </el-tab-pane>
32 33
            <!--glemod PD000001  账务-->
           <el-tab-pane label="账务" name="glepan">
34
                <c-content>
taojinrui committed
35
                <m-glepan :model="model" :codes="codes"/>
36
                </c-content>
taojinrui committed
37
           </el-tab-pane>
nanrui committed
38 39
            <!--coninf PD000000 提示信息 -->
           <el-tab-pane label="提示信息" name="coninfp">
40
                <c-content>
taojinrui committed
41
                <m-coninfp :model="model" :codes="codes"/>
42
                </c-content>
taojinrui committed
43
           </el-tab-pane>
nanrui committed
44 45
            <!--trndoc PD000529 &报文和面函 -->
           <el-tab-pane label="报文和面函" name="docpan">
46
                <c-content>
taojinrui committed
47
                <m-docpan :model="model" :codes="codes"/>
48
                </c-content>
taojinrui committed
49
           </el-tab-pane>
nanrui committed
50 51
           <!--trndoc PD000546 附件 -->
           <el-tab-pane label="附件" name="doctre">
52
                <c-content>
taojinrui committed
53
                <m-doctre :model="model" :codes="codes"/>
54
                </c-content>
taojinrui committed
55 56 57
           </el-tab-pane>

           <!--cptp PD000434 Detail for MT910 -->
58 59
           <el-tab-pane label="Detail for MT910" name="det910" v-if="model.cpdgrp.rec.swftyp=='910'">
                <c-content>
taojinrui committed
60
                <m-det910 :model="model" :codes="codes"/>
61
                </c-content>
taojinrui committed
62 63 64
           </el-tab-pane>

            <!--lendoc PD000001 收账通知 -->
taojinrui committed
65
           <el-tab-pane label="收账通知" name="docpan1">
66
                <c-content>
taojinrui committed
67
                <m-docpan1 :model="model" :codes="codes"/>
68
                </c-content>
taojinrui committed
69 70 71
           </el-tab-pane>
            <!--bopgat PD000006 外管信息 -->
           <el-tab-pane label="外管信息" name="wg">
72
                <c-content>
taojinrui committed
73
                <m-wg :model="model" :codes="codes"/>
74
                </c-content>
taojinrui committed
75 76 77
           </el-tab-pane>

           <!--dbap PD000001 涉外收入申报单-申报信息 -->
taojinrui committed
78
           <el-tab-pane label="涉外收入申报单-基础信息" name="dclp" v-if="model.bopmod.szflg === '1' && model.bopmod.basflg">
79
                <c-content>
taojinrui committed
80
                <m-dclp :model="model" :codes="codes"/>
81
                </c-content>
taojinrui committed
82 83
           </el-tab-pane>
            <!--dbdp PD000000 境内收入申报单-基础信息 -->
taojinrui committed
84
           <el-tab-pane label="境内收入申报单-基础信息" name="basp" v-if="model.bopmod.szflg === '2' && model.bopmod.basflg">
85
                <c-content>
taojinrui committed
86
                <m-basp :model="model" :codes="codes"/>
87
                </c-content>
taojinrui committed
88 89 90
           </el-tab-pane>
           <!--hvpmod PD000007 跨境支付 -->
           <el-tab-pane label="跨境支付" name="secpan">
91
                <c-content>
taojinrui committed
92
                <m-secpan :model="model" :codes="codes"/>
93
                </c-content>
taojinrui committed
94 95 96
           </el-tab-pane>
            <!--cnybop PD000002 跨境人民币申报 -->
           <el-tab-pane label="跨境人民币申报" name="cnyp">
97
                <c-content>
taojinrui committed
98
                <m-cnyp :model="model" :codes="codes"/>
99
                </c-content>
taojinrui committed
100 101
           </el-tab-pane>
            <!--cnybop PD000001 2101跨境收入信息 -->
102 103
           <el-tab-pane label="2101跨境收入信息" name="incp" v-if="model.cnybop.cnyflg=='1'">
                <c-content>
taojinrui committed
104
                <m-incp :model="model" :codes="codes"/>
105
                </c-content>
taojinrui committed
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
           </el-tab-pane>
            
            
            <!--dbdp PD000002 境内收入申报单-管理信息 -->
           <!-- <el-tab-pane :label="$t('dbdp.PD000002')" name="vrfp">
                <m-vrfp :model="model" :codes="codes"/>
           </el-tab-pane> -->
            
            
       </c-tabs>
    </el-form>
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Cptrep from "~/model/Cptrep"
import commonProcess from "~/mixin/commonProcess"
124 125
import commonFuncs from "~/mixin/commonFuncs";

taojinrui committed
126 127 128
import Check from "~/model/Cptrep/Check"
import Default from "~/model/Cptrep/Default"
import Pattern from "~/model/Cptrep/Pattern"
129

taojinrui committed
130
import Opnp1 from "./Opnp1"
taojinrui committed
131
import Docpan1 from "./Docpan";
taojinrui committed
132 133 134 135 136 137 138 139 140
import Wg from "./Wg"
import Cnyp from "./Cnyp"
import Incp from "./Incp"
import Secpan from "./Secpan"
import Dclp from "./Dclp"
import Basp from "./Basp"
import Vrfp from "./Vrfp"
import Det910 from "./Det910"

141 142 143 144 145
import Doctre from "~/views/Public/Doctre";
import Setpan from "~/views/Public/Setpan";
import Glepan from "~/views/Public/Glepan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
taojinrui committed
146 147 148 149 150 151 152 153 154

export default {
    name: "Cptrep",
    components:{
        "m-opnp1" : Opnp1,
        "m-setpan" : Setpan,
        "m-glepan" : Glepan,
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
taojinrui committed
155
        "m-docpan1" : Docpan1,
taojinrui committed
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
        "m-wg" : Wg,
        "m-cnyp" : Cnyp,
        "m-incp" : Incp,
        "m-secpan" : Secpan,
        "m-dclp" : Dclp,
        "m-basp" : Basp,
        "m-vrfp" : Vrfp,
        "m-doctre" : Doctre,
        "m-det910" : Det910,
    },
    provide() {
        return {
            root: this
        }
    },
taojinrui committed
171
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
taojinrui committed
172 173
    data(){
        return {
taojinrui committed
174
            tabVal: "opnp1",
taojinrui committed
175 176 177 178 179 180 181
            trnName: "cptrep",
            trnType: "",
            model: new Cptrep().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
taojinrui committed
182
            codes: {...CodeTable
taojinrui committed
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入cptrep交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑
201 202 203
           if (this.isInDisplay) {
          this.restoreDisplay();
          }
taojinrui committed
204 205 206 207 208 209 210 211 212 213 214 215

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

</style>