index.vue 6.03 KB
Newer Older
1
<template>
jianglong committed
2 3 4
<div class="eContainer">
    <c-page title="进口信用证开立">

5
        
jianglong committed
6 7 8 9 10 11 12 13 14 15

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

                <el-tab-pane label="业务信息" name="ovwp">
                    <c-content>
                        <m-ovwp :model="model" :codes="codes" />
                    </c-content>
                </el-tab-pane>

wangren committed
16

jianglong committed
17 18 19 20 21
                <el-tab-pane label="保证金" name="ccvpan">
                    <c-content>
                        <m-ccvpan :model="model" :codes="codes" />
                    </c-content>
                </el-tab-pane>
wangren committed
22

jianglong committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
                <el-tab-pane label="统一授信" name="limitbody,shisuan">
                    <c-content>
                        <div class="eibs-tab">
                            <el-collapse v-model="activeNames1">
                                <el-collapse-item title="统一授信" name="limitbody">
                                    <m-limitbody :model="model" :codes="codes" />
                                </el-collapse-item>
                                <el-collapse-item title="试算结果" name="shisuan">
                                    <m-shisuan :model="model" :codes="codes" />
                                </el-collapse-item>
                            </el-collapse>
                        </div>
                    </c-content>
                </el-tab-pane>

                <el-tab-pane label="费用/账务" name="engp,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">
                                    <!-- 结算 -->
                                    <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>

wangren committed
59

jianglong committed
60 61 62 63 64
                <el-tab-pane label="备查/附言" name="addbcb">
                    <c-content>
                        <m-addbcb :model="model" :codes="codes" />
                    </c-content>
                </el-tab-pane>
wangren committed
65

jianglong committed
66 67 68 69 70
                <el-tab-pane label="报文/面函" name="docpan">
                    <c-content>
                        <m-docpan :model="model" :codes="codes" />
                    </c-content>
                </el-tab-pane>
wangren committed
71

jianglong committed
72 73 74 75 76
                <el-tab-pane label="附件信息" name="doctre">
                    <c-content>
                        <m-doctre :model="model" :codes="codes" />
                    </c-content>
                </el-tab-pane>
wangren committed
77

jianglong committed
78 79
            </c-tabs>
        </el-form>
wangren committed
80

jianglong committed
81 82 83 84 85
        <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">

        </c-function-btn>
    </c-page>
</div>
86
</template>
jianglong committed
87

88 89
<script>
import Api from "~/service/Api"
jianglong committed
90
import Utils from "~/utils/index";
91 92
import CodeTable from "~/config/CodeTable"
import Litcan from "~/model/Litcan"
wangren committed
93
import commonProcess from "~/mixin/commonProcess"
wangren committed
94
import commonFuncs from "~/mixin/commonFuncs"
jianglong committed
95

96 97 98
import Check from "~/model/Litcan/Check"
import Default from "~/model/Litcan/Default"
import Pattern from "~/model/Litcan/Pattern"
wangren committed
99
import Canp from "./Canp"
jianglong committed
100 101 102
import Shisuan from "~/views/Public/Shisuan"
import Ovwp from "./Ovwp"
import Addbcb from "./Addbcb"
103

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

177 178
<style>
</style>