index.vue 7.02 KB
Newer Older
jxl committed
1
<template>
jxl committed
2
<c-page title="出口托收收汇">
jxl committed
3
  <div class="eContainer">
jxl committed
4 5 6 7 8 9 10 11 12 13 14 15 16
   <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>
jxl committed
17 18 19
    <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="tabClick">
        
jxl committed
20 21 22
            <!--Funds Settlement -->
           <el-tab-pane label="Funds Settlement" name="setp">
               <c-content>
jxl committed
23
                <m-setp :model="model" :codes="codes"/>
jxl committed
24
               </c-content>
jxl committed
25 26
           </el-tab-pane>
 
jxl committed
27 28 29
            <!--Instruction -->
           <el-tab-pane label="Instruction" name="inst">
              <c-content>
jxl committed
30
                <m-inst :model="model" :codes="codes"/>
jxl committed
31
              </c-content>
jxl committed
32 33
           </el-tab-pane>
 
jxl committed
34 35 36 37 38
            <!--Parties -->
           <el-tab-pane label="Parties" name="ptyp">
               <c-content>
                <m-ptyp :model="model" :codes="codes"/>
               </c-content>
jxl committed
39 40
           </el-tab-pane>
 
jxl committed
41 42 43
            <!--Liability -->
           <el-tab-pane label="Liability" name="engp">
                <m-engp :model="model" :codes="codes"/>
jxl committed
44 45
           </el-tab-pane>
 
jxl committed
46 47
            <!--Settlement -->
           <el-tab-pane label="Settlement" name="setpan">
huangxin committed
48
             <c-content>
jxl committed
49
                <m-setpan :model="model" :codes="codes"/>
huangxin committed
50
                </c-content>
jxl committed
51 52
           </el-tab-pane>
 
jxl committed
53 54
            <!--Bookings -->
           <el-tab-pane label="Bookings" name="glepan">
jxl committed
55 56 57
                <m-glepan :model="model" :codes="codes"/>
           </el-tab-pane>
 
jxl committed
58 59
            <!--Completion -->
           <el-tab-pane label="Completion" name="coninfp">
jxl committed
60 61 62
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
jxl committed
63 64 65 66 67 68 69
            <!--Messages(TRNMOD\TRNDOC\DOCPAN) -->
           <el-tab-pane label="Messages" name="docpan">
                <m-docpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--Attachments -->
           <el-tab-pane label="Attachments" name="doctre">
jxl committed
70 71
                <m-doctre :model="model" :codes="codes"/>
           </el-tab-pane>
jxl committed
72 73 74
 
            <!--收账通知(LENDOC\DOCPAN) -->
           <el-tab-pane label="收账通知" name="docpan1">
75
                <m-docpan1 :model="model" :codes="codes"/>
jxl committed
76 77 78 79 80 81
           </el-tab-pane>
 
            <!--外管信息 -->
           <el-tab-pane label="外管信息" name="wg">
                <m-wg :model="model" :codes="codes"/>
           </el-tab-pane>
huangxin committed
82

huangxin committed
83
           <el-tab-pane v-if="model.bopmod.szflg=='1' && model.lendoc.actflg=='X'" label="涉外收入申请单-基础信息" name="basp3">
huangxin committed
84
               <c-content>
huangxin committed
85
                    <m-basp3 :model="model" :codes="codes"/>
huangxin committed
86 87 88
               </c-content>
                </el-tab-pane>

huangxin committed
89
                <el-tab-pane v-if="model.bopmod.szflg=='2' && model.lendoc.actflg=='X'" label="境内收入申请单-基础信息" name="basp2">
huangxin committed
90
                <c-content>
huangxin committed
91
                    <m-basp2 :model="model" :codes="codes"/>
huangxin committed
92 93
                    </c-content>
                </el-tab-pane>
jxl committed
94 95 96 97 98
 
            <!--跨境人民币申报 -->
           <el-tab-pane label="跨境人民币申报" name="cnyp">
                <m-cnyp :model="model" :codes="codes"/>
           </el-tab-pane>
huangxin committed
99 100 101 102 103 104

           <el-tab-pane v-if="model.cnybop.cnyflg=='1'" label="2101跨境收入信息" name="incp">
               <c-content>
                    <m-incp :model="model" :codes="codes"/>
               </c-content>
                </el-tab-pane>
jxl committed
105 106 107 108 109
 
            <!--统一授信 -->
           <el-tab-pane label="统一授信" name="limitbody">
                <m-limitbody :model="model" :codes="codes"/>
           </el-tab-pane>
huangxin committed
110 111 112

           

jxl committed
113 114
       </c-tabs>
    </el-form>
115 116 117 118 119 120
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
    </c-grid-ety-prompt-dialog>
jxl committed
121
  </div>
jxl committed
122
</c-page>
jxl committed
123 124 125 126 127
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Botset from "~/model/Botset"
wangren committed
128
import commonProcess from "~/mixin/commonProcess"
129
import commonFuncs from "~/mixin/commonFuncs"
jxl committed
130 131 132 133 134
import Check from "~/model/Botset/Check"
import Default from "~/model/Botset/Default"
import Pattern from "~/model/Botset/Pattern"
import Setp from "./Setp"
import Inst from "./Inst"
jxl committed
135
import Ptyp from "./Ptyp"
136
import Engp from "~/views/Public/Engp"
jxl committed
137
import Setpan from "~/views/Public/Setpan"
138
import Glepan from "~/views/Public/Glepan"
jxl committed
139 140
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
141
import Doctre from "~/views/Public/Doctre"
142
import Docpan1 from "./Docpan1"
jxl committed
143 144
import Wg from "./Wg"
import Cnyp from "./Cnyp"
145
import Limitbody from "~/views/Public/Limitbody";
huangxin committed
146 147 148
import Basp2 from "./Basp2"
import Basp3 from "./Basp3"
import Incp from "./Incp"
jxl committed
149 150 151 152 153 154 155


export default {
    name: "Botset",
    components:{
        "m-setp" : Setp,
        "m-inst" : Inst,
jxl committed
156
        "m-ptyp" : Ptyp,
jxl committed
157 158 159 160
        "m-engp" : Engp,
        "m-setpan" : Setpan,
        "m-glepan" : Glepan,
        "m-coninfp" : Coninfp,
jxl committed
161
        "m-docpan" : Docpan,
jxl committed
162
        "m-doctre" : Doctre,
jxl committed
163 164 165 166
        "m-docpan" : Docpan,
        "m-wg" : Wg,
        "m-cnyp" : Cnyp,
        "m-limitbody" : Limitbody,
167
        "m-docpan1" : Docpan1,
huangxin committed
168 169 170
        "m-basp2" : Basp2,
        "m-basp3" : Basp3,
        "m-incp"  : Incp,
jxl committed
171 172 173 174 175 176
    },
    provide() {
        return {
            root: this
        }
    },
177
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
jxl committed
178 179
    data(){
        return {
jxl committed
180
            tabVal: "setp",
jxl committed
181 182 183 184 185 186 187
            trnName: "botset",
            model: new Botset().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
188
                ...CodeTable,
jxl committed
189 190 191
            },
        }
    },
huangxin committed
192 193 194 195 196 197 198 199 200 201
    computed: {
         actflg: {
      get() {
        return this.model.lendoc.actflg === "X";
      },
      set(val) {
        this.model.lendoc.actflg = val ? "X" : "";
      },
    },
    },
jxl committed
202
    methods:{
203
        //tabClick(){}
huangxin committed
204 205 206 207 208 209
        // myTabClick(tab){
        //     this.tabClick(tab)
        //     /**
        //     *  do it yourself
        //     **/
        // }
jxl committed
210 211 212 213 214 215 216
    },
    created:async function(){
        console.log("进入botset交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑
huangxin committed
217
      this.updateModel(rtnmsg.data)
jxl committed
218 219 220 221 222 223 224 225 226 227 228
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>