index.vue 5.51 KB
Newer Older
1 2 3 4
<template>
    <c-page title="出口托收承兑">
        <div class="eContainer">
            <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
5 6 7 8 9 10 11
                <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>
                <!-- <el-button size="small">拆分报文</el-button> -->
                <el-button size="small">智能提示</el-button>
12
            </c-function-btn>
13
            <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right"
14 15 16 17
                size="small" :validate-on-rule-change="false">
                <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">

                    <!--PD000027 -->
nanrui committed
18
                    <el-tab-pane label="修改到期" name="setp">
19 20 21
                        <c-content>
                            <m-setp ref="setp" :model="model" :codes="codes" />
                        </c-content>
22 23 24
                    </el-tab-pane>

                    <!--PD000049 -->
nanrui committed
25
                    <el-tab-pane label="指示条款" name="inst">
26 27 28
                        <c-content>
                            <m-inst :model="model" :codes="codes" />
                        </c-content>
29 30 31
                    </el-tab-pane>

                    <!--PD000266 -->
nanrui committed
32
                    <el-tab-pane label="参与方" name="ptyp">
33 34 35
                        <c-content>
                            <m-ptyp :model="model" :codes="codes" />
                        </c-content>
36 37 38
                    </el-tab-pane>

                    <!--PD000027 -->
nanrui committed
39
                    <el-tab-pane label="表外记账/或有" name="engp">
40 41 42 43
                        <c-content>
                            <m-engp :model="model" :codes="codes" />
                        </c-content>

44 45 46
                    </el-tab-pane>

                    <!--PD000000 -->
nanrui committed
47
                    <el-tab-pane label="费用及账务" name="setpan">
48 49 50
                        <c-content>
                            <m-setpan :model="model" :codes="codes" />
                        </c-content>
51 52 53
                    </el-tab-pane>

                    <!--PD000000 -->
nanrui committed
54
                    <el-tab-pane label="附言" name="coninfp">
55 56 57
                        <c-content>
                            <m-coninfp :model="model" :codes="codes" />
                        </c-content>                          
58 59 60
                    </el-tab-pane>

                    <!--PD000529 -->
nanrui committed
61
                    <el-tab-pane label="面函" name="docpan">
62 63 64
                        <c-content>
                            <m-docpan :model="model" :codes="codes" />
                        </c-content>
65 66 67
                    </el-tab-pane>

                    <!--PD000546 -->
nanrui committed
68
                    <el-tab-pane label="附件" name="doctre">
69 70 71
                        <c-content>
                            <m-doctre :model="model" :codes="codes" />
                        </c-content>
72 73 74 75 76 77 78 79
                    </el-tab-pane>
                </c-tabs>
            </el-form>
        </div>
    </c-page>
</template>
<script>
import Api from "~/service/Api"
80
import Utils from "~/utils/index"
81 82
import CodeTable from "~/config/CodeTable"
import Botacc from "~/model/Botacc"
83
import commonFuncs from "~/mixin/commonFuncs"
84 85 86 87
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Botacc/Check"
import Default from "~/model/Botacc/Default"
import Pattern from "~/model/Botacc/Pattern"
88

89 90 91
import Setp from "./Setp"
import Inst from "./Inst"
import Ptyp from "./Ptyp"
92

93 94
import Setpan from "~/views/Public/Setpan"
import Docpan from "~/views/Public/Docpan"
95 96 97
import Engp from "~/views/Public/Engp"
import Doctre from "~/views/Public/Doctre"
import Coninfp from "~/views/Public/Coninfp"
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119


export default {
    name: "Botacc",
    components: {
        "m-setp": Setp,
        "m-inst": Inst,
        "m-ptyp": Ptyp,
        "m-engp": Engp,
        "m-setpan": Setpan,
        "m-coninfp": Coninfp,
        "m-docpan": Docpan,
        "m-doctre": Doctre,
    },
    provide() {
        return {
            root: this
        }
    },
    mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
    data() {
        return {
120
            tabVal: "setp",
121 122 123 124 125 126 127
            trnName: "botacc",
            model: new Botacc().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
128
                ...CodeTable
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
            },
        }
    },
    methods: {
        myTabClick(tab) {
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created: async function () {
        console.log("进入botacc交易");
        let rtnmsg = await this.init({})
        if (rtnmsg.respCode == SUCCESS) {
            this.updateModel(rtnmsg.data)
            //TODO 处理数据逻辑
146 147 148
            if (this.isInDisplay) {
                this.restoreDisplay();
            }
nanrui committed
149 150 151 152
            this.$nextTick(() => {
                this.$refs.setp.$refs.table.$refs.table.toggleAllSelection();
                this.model.setmod.docamt = this.model.bodgrp.cbs.max.amt;
            })
153 154 155 156 157 158 159 160
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    }
}
</script>
<style>
161

162
</style>