index.vue 8.03 KB
Newer Older
1
<template>
闫泽浩 committed
2
 <div class="eContainer">
lianyang committed
3
<c-page title="进口信用证单据展期">
闫泽浩 committed
4
   
5 6 7 8 9 10 11 12
     <!--
        <div  class="fast-button">
           <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>
        /div>
     -->
13

14
        <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
jianglong committed
15
            <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
16

jianglong committed
17 18 19 20 21
                <el-tab-pane label="业务信息" name="ovwp">
                  <c-content>
                    <m-ovwp :model="model" :codes="codes" />
                    </c-content>
                </el-tab-pane>
22

jianglong committed
23
                <!--PD000024 
24
        <el-tab-pane label="展期" name="brteus">
25
          <c-content>
26
          <m-brteus :model="model" :codes="codes" />
27
        </c-content>
28 29
        </el-tab-pane>

30
                 ======新增隐藏面板(从brtudp交易的隐藏页面传(沿用)过来的)mt750p、mt754p、othadvtypp====== -->
jianglong committed
31
                <!--PD000139 
32
        <el-tab-pane label="不符点通知" name="mt750p" v-if="model.brdgrp.rec.advtyp=='750'">
33 34 35
          <c-content>
            <m-mt750p :model="model" :codes="codes" />
          </c-content>
36
        </el-tab-pane>-->
37

jianglong committed
38
                <!--PD000147 
39
        <el-tab-pane label="付款通知" name="mt754p" v-if="model.brdgrp.rec.advtyp=='754'">
40 41 42
          <c-content>
            <m-mt754p :model="model" :codes="codes" />
          </c-content>
43
        </el-tab-pane>-->
44

jianglong committed
45
                <!--PD000213 
46
        <el-tab-pane label="其他通知" name="othadvtypp" v-if="model.brdgrp.rec.advtyp=='oth'">
47
          <c-content>
48
          <m-othadvtypp :model="model" :codes="codes" />
49
          </c-content>
50
        </el-tab-pane>-->
51 52


53
        <!--PD000027 -->
huangxin committed
54
        <!-- <el-tab-pane label="表外记账" name="engp">
55
          <c-content>
56
          <m-engp :model="model" :codes="codes" />
57
        </c-content>
huangxin committed
58
        </el-tab-pane> -->
59 60

        <!--PD000000 -->
闫泽浩 committed
61
<!--         <el-tab-pane label="结算" name="setpan">
62
          <c-content>
63
          <m-setpan :model="model" :codes="codes" />
64
        </c-content>
闫泽浩 committed
65 66 67 68 69
        </el-tab-pane> -->
       <el-tab-pane label="统一授信" name="limitbody">
                  <c-content>
                    <m-limitbody :model="model" :codes="codes" />
                    </c-content>
70 71
        </el-tab-pane>

闫泽浩 committed
72
   <!--      <el-tab-pane label="会计分录" name="glepan">
73
          <m-glepan :model="model" :codes="codes" />
闫泽浩 committed
74
        </el-tab-pane> -->
75
        <!--PD000000 -->
huangxin committed
76
        <!-- <el-tab-pane label="提示信息" name="coninfp">
77
          <m-coninfp :model="model" :codes="codes" />
huangxin committed
78
        </el-tab-pane> -->
79
        <!--PD000001 -->
jianglong committed
80
                <!--PD000027 -->
闫泽浩 committed
81
          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
jianglong committed
82 83 84 85 86
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="activeNames">
                  <el-collapse-item title="表外记账" name="engp">
                    <!-- 表外记账 -->
jianglong committed
87
                    <m-engp :model="model" :codes="codes" />
jianglong committed
88
                  </el-collapse-item>
闫泽浩 committed
89

jianglong committed
90 91 92 93 94 95 96 97 98 99 100
                  <el-collapse-item title="结算" name="setpan">
                    <m-setpan :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="会计分录" name="glepan">
                    <!-- 会计分录 -->
                    <m-glepan :model="model" :codes="codes" />
                  </el-collapse-item>
                </el-collapse>
              </div>
            </c-content>
          </el-tab-pane>
闫泽浩 committed
101
<!--                 <el-tab-pane label="结算" name="setpan">
jianglong committed
102 103 104
                  <c-content>
                    <m-setpan :model="model" :codes="codes" />
                    </c-content>
闫泽浩 committed
105
                </el-tab-pane> -->
106
                <!-- <el-tab-pane label="会计分录" name="glepan">
jianglong committed
107 108 109
                  <c-content>
                    <m-glepan :model="model" :codes="codes" />
                    </c-content>
110
                </el-tab-pane> -->
jianglong committed
111 112 113
                <!--PD000000 -->

                <!--PD000529 -->
闫泽浩 committed
114 115 116 117 118
                 <el-tab-pane label="备查/附言" name="addbcb">
                    <c-content>
                        <m-addbcb :model="model" :codes="codes" />
                    </c-content>
                </el-tab-pane>
jianglong committed
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
                <el-tab-pane label="报文/面函" name="docpan">
                  <c-content>
                    <m-docpan :model="model" :codes="codes" />
                    </c-content>
                </el-tab-pane>

                <!--PD000546 -->
                <el-tab-pane label="附件信息" name="doctre">
                  <c-content>
                    <m-doctre :model="model" :codes="codes" />
                    </c-content>
                </el-tab-pane>
            </c-tabs>
        </el-form>
        <c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" @select-ety="selectEty"></c-grid-ety-prompt-dialog>
闫泽浩 committed
134
    
135

jianglong committed
136
    <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
137

138
    </c-function-btn>
lianyang committed
139
</c-page>
闫泽浩 committed
140
</div>
141
</template>
jianglong committed
142

143
<script>
lianyang committed
144 145 146 147
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Brteus from "~/model/Brteus";
import commonProcess from "~/mixin/commonProcess";
148
import commonFuncs from "~/mixin/commonFuncs";
lianyang committed
149 150 151 152
import Check from "~/model/Brteus/Check";
import Default from "~/model/Brteus/Default";
import Pattern from "~/model/Brteus/Pattern";
import Brteuss from "./Brteus";
153 154
import Addbcb from "./Addbcb";
import Ovwp from "./Ovwp";
155 156 157 158 159 160 161 162 163
// import Engp from "./Engp"
// import Setpan from "./Setpan"
// import Coninfp from "./Coninfp"
// import Docpan from "./Docpan"
// import Doctre from "./Doctre"
// import Limitbody from "./Limitbody"

import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
164
import Glepan from "~/views/Public/Glepan";
165 166 167 168 169
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Limitbody from "~/views/Public/Limitbody";

170 171 172 173
import Mt750p from "../Brtudp/Mt750p";
import Mt754p from "../Brtudp/Mt754p";
import Othadvtypp from "../Brtudp/Othadvtypp";

174
export default {
jianglong committed
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
    name: "Brteus",
    components: {
        "m-brteus": Brteuss,
        "m-mt750p": Mt750p,
        "m-mt754p": Mt754p,
        "m-othadvtypp": Othadvtypp,
        "m-engp": Engp,
        "m-setpan": Setpan,
        "m-glepan": Glepan,
        "m-coninfp": Coninfp,
        "m-docpan": Docpan,
        "m-doctre": Doctre,
        "m-limitbody": Limitbody,
        "m-addbcb": Addbcb,
        "m-ovwp": Ovwp,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
    data() {
        return {
            tabVal: "ovwp",
            trnName: "brteus",
            model: new Brteus().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
                ...CodeTable //...即返回到views同级,关联码表
            },
jianglong committed
209
            activeNames:["engp"],
jianglong committed
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
        }
    },
    methods: {
        myTabClick(tab) {
            this.tabClick(tab)
            /**
             *  do it yourself
             **/
        }
    },
    created: async function () {
        console.log("进入brteus交易");
        let rtnmsg = await this.init({})
        if (rtnmsg.respCode == SUCCESS) {
            this.updateModel(rtnmsg.data)
            //TODO 处理数据逻辑
            if (this.isInDisplay) {
                this.restoreDisplay();
            }

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

240 241
<style>
</style>