index.vue 5.62 KB
Newer Older
1
<template>
2 3 4
<div class="eContainer">
   <c-page title="">
    
jianglong committed
5

6 7 8 9 10 11 12 13
     <!--
        <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>
     -->
14

15
        <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
jianglong committed
16
            <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
liuxin committed
17
                <!--brtame PD000057 Release Goods -->
18 19
                <el-tab-pane label="业务信息" name="ovwp">
                    <c-content>
jianglong committed
20
                        <m-ovwp :model="model" :codes="codes" />
21 22 23
                    </c-content>
                </el-tab-pane>

jianglong committed
24
                <!--limmod PD000001 统一授信 -->
25
                <el-tab-pane label="统一授信" name="limitbody">
jianglong committed
26 27 28
                    <c-content>
                        <m-limitbody :model="model" :codes="codes" />
                    </c-content>
29 30
                </el-tab-pane>

liuxin committed
31
                <!--liaall PD000027 Liability -->
jianglong committed
32
                <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
33
                    <c-content>
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
                      <div class="eibs-tab">
                        <el-collapse v-model="fyzw">
                          <el-collapse-item title="表外记账" name="engp">
                            <!-- 表外记账 -->
                            <m-engp :model="model" :codes="codes" />
                          </el-collapse-item>
                          <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>
50
                    </c-content>
liuxin committed
51
                </el-tab-pane>
“yanyuxin” committed
52
               
liuxin committed
53
                <!--coninf PD000000 Completion -->
54
                <el-tab-pane label="备查/附言" name="addbcb">
jianglong committed
55 56 57
                    <c-content>
                        <m-addbcb :model="model" :codes="codes" />
                    </c-content>
liuxin committed
58
                </el-tab-pane>
59

liuxin committed
60
                <!--trndoc PD000529 &Messages -->
61
                <el-tab-pane label="报文/面函" name="docpan">
jianglong committed
62 63 64
                    <c-content>
                        <m-docpan :model="model" :codes="codes" />
                    </c-content>
liuxin committed
65
                </el-tab-pane>
66

liuxin committed
67
                <!--trndoc PD000546 Attachments -->
68
                <el-tab-pane label="附件信息" name="doctre">
jianglong committed
69 70 71
                    <c-content>
                        <m-doctre :model="model" :codes="codes" />
                    </c-content>
liuxin committed
72
                </el-tab-pane>
jianglong committed
73

liuxin committed
74 75
            </c-tabs>
        </el-form>
76

jianglong committed
77 78
        <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">

79
        </c-function-btn>
80
    
jianglong committed
81
</c-page>
82
</div>
83
</template>
jianglong committed
84

85
<script>
liuxin committed
86 87 88 89
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Brtame from "~/model/Brtame";
import commonProcess from "~/mixin/commonProcess";
liuxin committed
90
import commonFuncs from "~/mixin/commonFuncs";
liuxin committed
91 92 93 94
import Check from "~/model/Brtame/Check";
import Default from "~/model/Brtame/Default";
import Pattern from "~/model/Brtame/Pattern";
import Rog from "./Rog";
95 96
import Ovwp from "./Ovwp";
import Addbcb from "./Addbcb";
liuxin committed
97
import Shpdet from "./Shpdet";
98

liuxin committed
99 100
import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
jianglong committed
101
import Glepan from "~/views/Public/Glepan";
liuxin committed
102 103 104 105
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Limitbody from "~/views/Public/Limitbody";
106 107

export default {
liuxin committed
108 109 110
    name: "Brtame",
    components: {
        "m-rog": Rog,
111
        "m-ovwp": Ovwp,
liuxin committed
112 113 114
        "m-shpdet": Shpdet,
        "m-engp": Engp,
        "m-setpan": Setpan,
jianglong committed
115
        "m-glepan": Glepan,
liuxin committed
116 117 118 119
        "m-coninfp": Coninfp,
        "m-docpan": Docpan,
        "m-doctre": Doctre,
        "m-limitbody": Limitbody,
120
        "m-addbcb": Addbcb,
121 122 123
    },
    provide() {
        return {
liuxin committed
124 125
            root: this,
        };
126
    },
liuxin committed
127
    mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
liuxin committed
128
    data() {
129
        return {
130
            tabVal: "ovwp",
131
            trnName: "brtame",
liuxin committed
132
            trnType: "",
133 134 135 136 137
            model: new Brtame().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
liuxin committed
138 139 140
            codes: {
                ...CodeTable
            },
141
            fyzw: ['engp'],
liuxin committed
142
        };
143
    },
liuxin committed
144
    methods: {
145 146
        // myTabClick(tab) {
        //     this.tabClick(tab);
jianglong committed
147 148 149
        /**
         *  do it yourself
         **/
150
        // },
151
    },
jianglong committed
152
    created: async function () {
153
        console.log("进入brtame交易");
jianglong committed
154
        let rtnmsg = await this.init({})
liuxin committed
155
        if (rtnmsg.respCode == SUCCESS) {
jianglong committed
156 157 158 159
            this.updateModel(rtnmsg.data);
            if (this.isInDisplay) {
                this.restoreDisplay();
            }
liuxin committed
160
        } else {
jianglong committed
161 162 163 164
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
165
        }
liuxin committed
166 167
    },
};
168
</script>
jianglong committed
169

170 171
<style>
</style>