index.vue 5.55 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

闫泽浩 committed
23 24 25 26
       <el-tab-pane label="统一授信" name="limitbody">
                  <c-content>
                    <m-limitbody :model="model" :codes="codes" />
                    </c-content>
27 28
        </el-tab-pane>

jianglong committed
29
                <!--PD000027 -->
闫泽浩 committed
30
          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
jianglong committed
31 32 33 34 35
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="activeNames">
                  <el-collapse-item title="表外记账" name="engp">
                    <!-- 表外记账 -->
jianglong committed
36
                    <m-engp :model="model" :codes="codes" />
jianglong committed
37
                  </el-collapse-item>
闫泽浩 committed
38

jianglong committed
39 40 41 42 43 44 45 46 47 48 49
                  <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>
jianglong committed
50 51

                <!--PD000529 -->
闫泽浩 committed
52 53 54 55 56
                 <el-tab-pane label="备查/附言" name="addbcb">
                    <c-content>
                        <m-addbcb :model="model" :codes="codes" />
                    </c-content>
                </el-tab-pane>
jianglong committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
                <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
72
    
73

jianglong committed
74
    <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
75

76
    </c-function-btn>
lianyang committed
77
</c-page>
闫泽浩 committed
78
</div>
79
</template>
jianglong committed
80

81
<script>
lianyang committed
82 83 84 85
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Brteus from "~/model/Brteus";
import commonProcess from "~/mixin/commonProcess";
86
import commonFuncs from "~/mixin/commonFuncs";
lianyang committed
87 88 89 90
import Check from "~/model/Brteus/Check";
import Default from "~/model/Brteus/Default";
import Pattern from "~/model/Brteus/Pattern";
import Brteuss from "./Brteus";
91 92
import Addbcb from "./Addbcb";
import Ovwp from "./Ovwp";
93 94

import Engp from "~/views/Public/Engp";
95
import Setpan from "~/components/business/setmod/views";
96
import Glepan from "~/views/Public/Glepan";
97 98 99 100 101
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Limitbody from "~/views/Public/Limitbody";

102 103 104 105
import Mt750p from "../Brtudp/Mt750p";
import Mt754p from "../Brtudp/Mt754p";
import Othadvtypp from "../Brtudp/Othadvtypp";

106
export default {
jianglong committed
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
    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
141
            activeNames:["engp"],
jianglong committed
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
        }
    },
    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: '服务请求失败!'
            });
        }
168 169 170
    }
}
</script>
jianglong committed
171

172 173
<style>
</style>