<template>
    <div class="eContainer">
        <c-page title="跨境同业融资业务信息(2103)- 删除">
            <el-form :model="model" :rules="rules" label-position="left" label-width="120px" ref="modelForm"
                     size="small">
                <c-tabs ref="elment" type="card" v-model="tabVal">
                    <el-tab-pane label="接口数据" name="selection">
                        <m-selection :codes="codes" :model="model"/>
                    </el-tab-pane>

                    <el-tab-pane label="跨境同业融资业务信息(2103)" name="ads2103">
                        <c-content>
                            <m-ads2103 :codes="codes" :model="model" ref="ads2103"/>
                        </c-content>
                    </el-tab-pane>
                </c-tabs>
            </el-form>
            <!-- 底部按钮 -->
            <div style="text-align: center">
                <c-button :disabled="isDisabled" @click="saveTfb" style="margin-right: 10px" type="primary">提 交</c-button>
                <c-button :disabled="isDisabled" @click="checkTfb" style="margin-right: 10px" type="primary">检核</c-button>
                <c-button @click="exit" style="margin-right: 10px" type="primary">退出</c-button>
            </div>
        </c-page>
    </div>
</template>
<script>
    import Tfb from "../../tfb/model"
    import Event from "../event"
    import Check from "../model/check"
    import Ads2103 from "./adsovw"
    import init from "../../../rmbsel/event"
    import Selection from "../../tfb/views/selection"
    import {getDectyp} from "../../../../../../service/business/rmb";


    export default {
        name:"Tfbdel",
        components: {
            "m-ads2103": Ads2103,
            "m-selection": Selection,
        },
        provide() {
            return {
                root: this,
            }
        },
        mixins: [Event, init],
        computed: {
            isDisabled() {
                return this.model.rmbbut.flg !== 'X';
            },
            rules(){
                return Check.apply(this)
            }
        },
        data() {
            return {
                tabVal: "selection",
                trnName: "tfbdel",
                trnType: "",
                model: new Tfb().data,
                codes: {}
            }
        },
        methods: {},
        created: async function () {
            console.log("进入tfbdel交易");
            const inr = this.$route.query.inr;
            this.init(this.trnName, inr);
        },

    }
</script>
<style scoped>
    /deep/ .el-form-item__label {
        padding-left: 10px;
        padding-right: 10px;
        line-height: 20px !important;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }
</style>