index.vue 8.1 KB
Newer Older
杜大兵 committed
1
<template>
LiRui committed
2 3
     <div class="eContainer">
          <c-page title="出口融资注销">
杜大兵 committed
4
               <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
LiRui committed
5 6 7 8 9 10 11
               <el-form
                    :model="model"
                    :rules="rules"
                    ref="modelForm"
                    label-width="120px"
                    label-position="left"
                    size="small"
杜大兵 committed
12 13
                    :validate-on-rule-change="false"
               >
14
                    <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
杜大兵 committed
15
                         <!--PD000016 -->
LiRui committed
16
                         <el-tab-pane label="业务信息" name="ovwp">
杜大兵 committed
17
                              <c-content>
LiRui committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
                                   <m-ovwp :model="model" :codes="codes"/>
                              </c-content>
                         </el-tab-pane>

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

                         <el-tab-pane label="费用/账务" name="setpan,glepan">
                              <c-content>
                                   <div class="eibs-tab">
                                        <el-collapse v-model="activeNames">
                                             <!-- <el-collapse-item title="表外记账" name="engp">
                                             表外记账 -或有
                                             <m-engp :model="model" :codes="codes" />
                                             </el-collapse-item> -->
                                             <el-collapse-item title="结算" name="setpan">
37 38
                                                  <!-- 结算 -->
                                                  <m-setpan :model="model" :codes="codes" />
LiRui committed
39 40 41 42 43 44 45
                                             </el-collapse-item>
                                             <el-collapse-item title="会计分录" name="glepan">
                                             <!-- 会计分录 -->
                                             <m-glepan :model="model" :codes="codes" />
                                             </el-collapse-item>
                                        </el-collapse>
                                   </div>
杜大兵 committed
46 47 48
                              </c-content>
                         </el-tab-pane>

49
                         <!--PD000000 Settlement 账务 公共模块-->
LiRui committed
50
                         <!-- <el-tab-pane label="费用及账务" name="setpan">
杜大兵 committed
51 52 53
                              <c-content>
                                   <m-setpan :model="model" :codes="codes"/>
                              </c-content>
LiRui committed
54
                         </el-tab-pane> -->
杜大兵 committed
55

56
                         <!--  Bookings-->
LiRui committed
57 58 59
                         <!-- <el-tab-pane label="分录" name="glepan">
                              <m-glepan :model="model" :codes="codes" ref="glepan" />
                         </el-tab-pane> -->
60 61

                         <!--PD000000 Completion 附言-->
LiRui committed
62
                         <el-tab-pane label="备查/附言" name="addbcb">
杜大兵 committed
63
                              <c-content>
LiRui committed
64
                                   <m-addbcb :model="model" :codes="codes"/>
杜大兵 committed
65 66 67 68
                              </c-content>
                         </el-tab-pane>

                         <!--PD000529 Messages -->
LiRui committed
69
                         <el-tab-pane label="报文/面函" name="docpan">
杜大兵 committed
70 71 72 73 74
                              <c-content>
                                   <m-docpan :model="model" :codes="codes"/>
                              </c-content>
                         </el-tab-pane>

75
                         <!--PD000546 Attachments 附件-->
LiRui committed
76
                         <el-tab-pane label="附件信息" name="doctre">
杜大兵 committed
77 78 79 80 81 82
                              <c-content>
                                   <m-doctre :model="model" :codes="codes"/>
                              </c-content>
                         </el-tab-pane>

                         <!--PD001139 -->
LiRui committed
83
                         <!-- <el-tab-pane label="试算结果" name="shisuan">
杜大兵 committed
84 85 86
                              <c-content>
                                   <m-shisuan :model="model" :codes="codes"/>
                              </c-content>
LiRui committed
87
                         </el-tab-pane> -->
杜大兵 committed
88 89

                         <!--PD000001 -->
LiRui committed
90
                         <!-- <el-tab-pane label="统一授信" name="limitbody">
杜大兵 committed
91 92 93
                              <c-content>
                                   <m-limitbody :model="model" :codes="codes"/>
                              </c-content>
LiRui committed
94
                         </el-tab-pane> -->
杜大兵 committed
95 96
                    </c-tabs>
               </el-form>
wanggang_yf committed
97 98 99

               <c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty"/>

LiRui committed
100 101 102 103 104 105 106 107 108 109 110
               <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
                         <!-- <el-button size="small">备忘录</el-button> -->
                         <!-- <el-button size="small" @click="setDraggableContent('cms', '影像信息')">影像信息</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>
          </c-page>
     </div>
杜大兵 committed
111 112 113 114 115
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Bptcan from "~/model/Bptcan"
wangren committed
116
import commonProcess from "~/mixin/commonProcess"
117
import commonFuncs from "~/mixin/commonFuncs"
杜大兵 committed
118 119 120 121
import Check from "~/model/Bptcan/Check"
import Default from "~/model/Bptcan/Default"
import Pattern from "~/model/Bptcan/Pattern"
import Canp from "./Canp"
wangna committed
122
import Doctre from "~/views/Public/Doctre"
杜大兵 committed
123
import Shisuan from "./Shisuan"
124
import Setpan from "~/components/business/setmod/views";
杜大兵 committed
125 126
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
杜大兵 committed
127
import Limitbody from "~/views/Public/Limitbody"
128
import Glepan from "~/views/Public/Glepan";
LiRui committed
129 130 131
import Limitbody2 from "./Limitbody2";
import Ovwp from './Ovwp';
import Addbcb from './Addbcb';
132 133

import Utils from "~/utils";
杜大兵 committed
134 135 136 137

export default {
    name: "Bptcan",
    components:{
138 139 140 141 142 143 144 145
          "m-canp" : Canp,
          "m-setpan" : Setpan,
          "m-coninfp" : Coninfp,
          "m-docpan" : Docpan,
          "m-doctre" : Doctre,
          "m-shisuan" : Shisuan,
          "m-limitbody" : Limitbody,
          "m-glepan" : Glepan,
LiRui committed
146 147 148
          "m-ovwp" : Ovwp,
          "m-limitbody2" : Limitbody2,
          "m-addbcb" : Addbcb,
杜大兵 committed
149 150 151 152 153 154
    },
    provide() {
        return {
            root: this
        }
    },
155
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
杜大兵 committed
156 157
    data(){
        return {
LiRui committed
158
            tabVal: "ovwp",
杜大兵 committed
159 160 161 162 163 164 165
            trnName: "bptcan",
            model: new Bptcan().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
166
                 ...CodeTable,
167 168
            },
            activeNames: ["setpan"],
杜大兵 committed
169 170 171
        }
    },
    methods:{
172 173
     myTabClick(tab){
          this.tabClick(tab)
杜大兵 committed
174 175
        }
    },
wanggang_yf committed
176 177 178
    created:async function() {
         console.log("进入bptcan交易");
         let rtnmsg = await this.init(this.$route.query)
179
         //debugger
wanggang_yf committed
180
         if (rtnmsg.respCode == SUCCESS) {
181
              //debugger
wanggang_yf committed
182
              //更新数据
183 184
              this.updateModel(rtnmsg.data);

wanggang_yf committed
185 186 187 188 189
              Utils.copyValueFromVO(this.model, rtnmsg.data);
              if (this.isInDisplay) {
                   this.restoreDisplay();
              }
         }
190 191 192
         else {
              this.$notify.error({title: '错误', message: '服务请求失败!'});
         }
杜大兵 committed
193 194 195 196 197 198
    }
}
</script>
<style>

</style>