index.vue 6.64 KB
Newer Older
Eivi committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<template>
  <div class="eContainer">
     <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
    <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>
      <!-- <el-button size="small">拆分报文</el-button> -->
      <el-button size="small">智能提示</el-button>
    </c-function-btn>

20
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
Eivi committed
21 22 23
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
        
            <!--PD000034 -->
24
           <el-tab-pane label="结算信息" name="setp">
Eivi committed
25
                <c-content>
26
                     <m-setp ref="setp" :model="model" :codes="codes"/>
Eivi committed
27 28 29 30
                </c-content>
           </el-tab-pane>

            <!--PD000027 -->
31
           <el-tab-pane label="表外记账" name="engp">
Eivi committed
32 33 34 35
                <m-engp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000000 -->
36
           <el-tab-pane label="结算" name="setpan">
37 38 39
               <c-content>
                    <m-setpan :model="model" :codes="codes"/>
               </c-content>
Eivi committed
40 41 42
           </el-tab-pane>
 
            <!--PD000001 -->
43
           <el-tab-pane label="会计分录" name="glepan">
Eivi committed
44 45 46 47
                <m-glepan :model="model" :codes="codes"/>
           </el-tab-pane>

            <!--PD000000 -->
48
           <el-tab-pane label="提示信息" name="coninfp">
Eivi committed
49 50 51 52
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>

            <!--PD000529 -->
53
           <el-tab-pane label="报文和面函" name="docpan">
Eivi committed
54 55 56 57
                <m-docpan :model="model" :codes="codes"/>
           </el-tab-pane>

           <!--PD000546 -->
58
           <el-tab-pane label="附件" name="doctre">
Eivi committed
59 60 61 62 63 64 65 66 67 68 69 70 71
                <m-doctre :model="model" :codes="codes"/>
           </el-tab-pane>

           <!--PD000001 -->
           <el-tab-pane label="收账通知" name="docpan1">
                <m-docpan1 :model="model" :codes="codes"/>
           </el-tab-pane>

            <!--PD000006 -->
           <el-tab-pane label="外管信息" name="wg">
                <m-wg :model="model" :codes="codes"/>
           </el-tab-pane>

72 73 74 75 76 77 78 79 80 81
           <!--dbap PD000000 涉外收入申报单-基础信息 -->
           <el-tab-pane label="涉外收入申报单-基础信息" name="basp" v-if="model.bopmod.szflg === '1' && model.bopmod.basflg">
                <m-basp :model="model" :codes="codes"/>
           </el-tab-pane>

            <!--dbdp PD000000 境内收入申报单-基础信息 -->
           <el-tab-pane label="境内收入申报单-基础信息" name="basp1" v-if="model.bopmod.szflg === '2' && model.bopmod.basflg">
                <m-basp1 :model="model" :codes="codes"/>
           </el-tab-pane>

Eivi committed
82 83 84 85
            <!--PD000002 -->
           <el-tab-pane label="跨境人民币申报" name="cnyp">
                <m-cnyp :model="model" :codes="codes"/>
           </el-tab-pane>
86 87 88 89 90

           <!--cnybop PD000001 2101跨境收入信息 -->
           <el-tab-pane label="2101跨境收入信息" name="incp" v-if="model.cnybop.cnyflg=='1'">
                <m-incp :model="model" :codes="codes"/>
           </el-tab-pane>
Eivi committed
91 92 93 94 95 96 97 98
 
            <!--PD000001 -->
           <el-tab-pane label="统一授信" name="limitbody">
                <m-limitbody :model="model" :codes="codes"/>
           </el-tab-pane>
 
       </c-tabs>
    </el-form>
99 100 101 102 103 104 105 106 107 108 109 110 111
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
    </c-grid-ety-prompt-dialog>
    <c-grid-ety-prompt-dialog
      ref="doxpDialog"
      :isPty="false"
      :promptData="promptData"
      @select-ety="selectMsg"
    >
    </c-grid-ety-prompt-dialog>
Eivi committed
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Betset from "~/model/Betset"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Betset/Check"
import Default from "~/model/Betset/Default"
import Pattern from "~/model/Betset/Pattern"
import Setp from "./Setp"
import Docpan1 from "./Docpan1"
import Wg from "./Wg"
import Cnyp from "./Cnyp"
127 128
import Basp from "./Basp"
import Basp1 from "./Basp1"
129
import Incp from "./Incp"
Eivi committed
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
import Glepan from "~/views/Public/Glepan";
import Doctre from "~/views/Public/Doctre"
import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Limitbody from "~/views/Public/Limitbody";


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

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

</style>