index.vue 5.43 KB
Newer Older
chenwen committed
1
<template>
chenwen committed
2
<c-page title="进口代收付款">
chenwen committed
3
  <div class="eContainer">
chenwen committed
4
         <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
5
                    
chenwen committed
6
      </c-function-btn>
chenwen committed
7 8 9 10
    <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">
        
            <!--PD000005 -->
11
           <el-tab-pane label="Settle BC at Maturity, " name="bctsus">
chenwen committed
12 13 14 15
                <m-bctsus :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000018 -->
16
           <el-tab-pane label="Instructions" name="detp">
chenwen committed
17 18
                <m-detp :model="model" :codes="codes"/>
           </el-tab-pane>
chenwen committed
19
  
chenwen committed
20
            <!--PD000260 -->
chenwen committed
21
           <el-tab-pane label="Parties" name="ptyp">
chenwen committed
22
           <c-content>
chenwen committed
23
                <m-ptyp :model="model" :codes="codes"/>
chenwen committed
24
            </c-content>
chenwen committed
25
           </el-tab-pane>
26 27 28 29 30

            <!--PD000027 -->
           <el-tab-pane label="Liability" name="engp">
                <m-engp :model="model" :codes="codes"/>
           </el-tab-pane>
chenwen committed
31 32 33 34 35
           
            <!--PD000000 -->
           <el-tab-pane label="Settlement" name="setpan">
                <m-setpan :model="model" :codes="codes"/>
           </el-tab-pane>
chenwen committed
36
 
37 38
           <el-tab-pane label="Bookings" name="glepan">
                <m-glepan :model="model" :codes="codes"/>
chenwen committed
39 40 41
           </el-tab-pane>
 
            <!--PD000000 -->
chenwen committed
42
           <el-tab-pane label="Completion" name="coninfp">
chenwen committed
43 44 45 46
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000529 -->
chenwen committed
47
           <el-tab-pane label="Messages" name="docpan">
chenwen committed
48 49
                <m-docpan :model="model" :codes="codes"/>
           </el-tab-pane>
50 51 52 53 54 55 56 57 58

           <el-tab-pane label="Attachments" name="doctre">
                <m-doctre :model="model" :codes="codes"/>
           </el-tab-pane>

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

wangren committed
59 60 61 62 63
         
           <el-tab-pane v-if="model.bopmod.basflg" label="对外付款/承兑通知书-基础信息" name="basp">
                <m-basp :model="model" :codes="codes"/>
           </el-tab-pane>
          
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
           <el-tab-pane label="跨境人名币申报" name="cnyp">
                <m-cnyp :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="资本项目" name="cfactlp">
                <m-cfactlp :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="统一授信" name="limitbody">
                <m-limitbody :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="Payment 400 RMI " name="det400">
                <m-det400 :model="model" :codes="codes"/>
           </el-tab-pane>

           <el-tab-pane label="Payment 202 RMI " name="det202cv">
                <m-det202cv :model="model" :codes="codes"/>
           </el-tab-pane>

chenwen committed
84 85 86
       </c-tabs>
    </el-form>
  </div>
chenwen committed
87
  </c-page>
chenwen committed
88 89 90 91 92
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Bctset from "~/model/Bctset"
wangren committed
93
import commonProcess from "~/mixin/commonProcess"
94
import commonFuncs from "~/mixin/commonFuncs"
chenwen committed
95 96 97 98 99 100 101
import Check from "~/model/Bctset/Check"
import Default from "~/model/Bctset/Default"
import Pattern from "~/model/Bctset/Pattern"
import Bctsus from "./Bctsus"
import Detp from "./Detp"
import Shpdet from "./Shpdet"
import Ptyp from "./Ptyp"
102
import Wg from "./Wg"
wangren committed
103
import Basp from "./Basp"
104 105 106 107
import Cnyp from "./Cnyp"
import Cfactlp from "./Cfactlp"
import Det400 from "./Det400"
import Det202cv from "./Det202cv"
chenwen committed
108 109 110 111 112

import Engp from "~/views/Public/Engp"
import Setpan from "~/views/Public/Setpan"
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
113 114 115
import Doctre from "~/views/Public/Doctre"
import Limitbody from "~/views/Public/Limitbody"
import Glepan from "~/views/Public/Glepan"
chenwen committed
116 117 118 119 120 121 122 123 124

export default {
    name: "Bctset",
    components:{
        "m-bctsus" : Bctsus,
        "m-detp" : Detp,
        "m-setpan" : Setpan,
        "m-shpdet" : Shpdet,
        "m-ptyp" : Ptyp,
wangren committed
125
        "m-basp" : Basp,
chenwen committed
126 127 128
        "m-engp" : Engp,
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
129 130 131 132 133 134 135 136
        "m-doctre" : Doctre,
        "m-wg": Wg,
        "m-cnyp": Cnyp,
        "m-cfactlp": Cfactlp,
        "m-det400": Det400,
        "m-det202cv": Det202cv,
        "m-limitbody":Limitbody,
        "m-glepan":Glepan,
chenwen committed
137 138 139 140 141 142
    },
    provide() {
        return {
            root: this
        }
    },
143
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
chenwen committed
144 145
    data(){
        return {
chenwen committed
146
            tabVal: "bctsus",
chenwen committed
147 148 149 150 151 152
            trnName: "bctset",
            model: new Bctset().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
153
            codes: {...CodeTable
chenwen committed
154 155 156 157 158 159 160 161 162 163 164
            },
        }
    },
    methods:{
    },
    created:async function(){
        console.log("进入bctset交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑
165
          this.updateModel(rtnmsg.data);
chenwen committed
166 167 168 169 170 171 172 173 174 175 176
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>