<template>
    <div class="eibs-tab">
        <c-col :span="24">
            <!-- ---------------Left--------------- -->
            <c-col :span="12">
                <c-col :span="24">
                    <el-form-item
                        :label="$t('brtp.S0000172')"
                        prop="lidgrp.rec.ownref"
                    >
                        <c-fullbox>
                            <c-input
                                v-model="model.lidgrp.rec.ownref"
                                maxlength="16"
                                :placeholder="
                                    $t('other.please_enter') +
                                    $t('brtp.S0000172')
                                "
                                disabled
                            ></c-input>
                            <template slot="footer">
                                <c-button
                                    style="
                                        margin: 0 10px 0 10px;
                                        padding: 0 12px;
                                    "
                                    size="small"
                                    type="primary"
                                >
                                    <span
                                        style="
                                            font-family: '宋体';
                                            font-weight: bold;
                                        "
                                        >i</span
                                    >
                                </c-button>
                                <c-button
                                    style="margin: 0 0"
                                    size="small"
                                    type="primary"
                                    :disabled="this.flag"
                                >
                                    获取
                                </c-button>
                            </template>
                        </c-fullbox>
                    </el-form-item>
                </c-col>
            </c-col>
            <!-- ---------------Right--------------- -->
            <c-col :span="12">
                <c-col :span="24">
                    <c-form-item
                        :label="$t('brtp.S0000183')"
                        prop="lidgrp.rec.nam"
                    >
                        <c-input
                            v-model="model.lidgrp.rec.nam"
                            maxlength="40"
                            :placeholder="
                                $t('other.please_enter') + $t('brtp.S0000183')
                            "
                            disabled
                        ></c-input>
                    </c-form-item>
                </c-col>
            </c-col>
        </c-col>

        <c-col :span="24">
            <!-- ---------------Left--------------- -->
            <c-col :span="12">
                <c-col :span="24">
                    <c-col :span="13">
                        <el-form-item
                            :label="$t('brtp.S0000173')"
                            prop="lidgrp.cbs.nom1.cur"
                        >
                            <c-select
                                v-model="model.lidgrp.cbs.nom1.cur"
                                style="width: 100%"
                                :placeholder="
                                    $t('other.please_enter') +
                                    $t('brtp.S0000173')
                                "
                                :code="codes.cur"
                                disabled
                            >
                            </c-select>
                        </el-form-item>
                    </c-col>

                    <c-col :span="11">
                        <c-form-item
                            label=""
                            label-width="5px"
                            prop="lidgrp.cbs.nom1.amt"
                        >
                            <c-input
                                v-model="model.lidgrp.cbs.nom1.amt"
                                :placeholder="
                                    $t('other.please_enter') +
                                    $t('brtp.S0000173')
                                "
                                disabled
                            ></c-input>
                        </c-form-item>
                    </c-col>
                </c-col>
                <c-col :span="24">
                    <c-col :span="13">
                        <el-form-item
                            :label="$t('brtp.S0000174')"
                            prop="lidgrp.cbs.opn1.cur"
                        >
                            <c-select
                                v-model="model.lidgrp.cbs.opn1.cur"
                                style="width: 100%"
                                :placeholder="
                                    $t('other.please_enter') +
                                    $t('brtp.S0000174')
                                "
                                :code="codes.cur"
                                disabled
                            >
                            </c-select>
                        </el-form-item>
                    </c-col>

                    <c-col :span="11">
                        <c-form-item
                            label=""
                            label-width="5px"
                            prop="lidgrp.cbs.opn1.amt"
                        >
                            <c-input
                                v-model="model.lidgrp.cbs.opn1.amt"
                                :placeholder="
                                    $t('other.please_enter') +
                                    $t('brtp.S0000173')
                                "
                                disabled
                            ></c-input>
                        </c-form-item>
                    </c-col>
                </c-col>
                <c-col :span="24">
                    <c-form-item
                        :label="$t('brtp.S0000176')"
                        prop="lidgrp.avbnam"
                    >
                        <c-input
                            v-model="model.lidgrp.avbnam"
                            maxlength="40"
                            :placeholder="
                                $t('other.please_enter') + $t('brtp.S0000176')
                            "
                            disabled
                        ></c-input>
                    </c-form-item>
                </c-col>
                <c-col :span="24">
                    <el-form-item label="Available by" prop="lidgrp.rec.avbby">
                        <c-select
                            v-model="model.lidgrp.rec.avbby"
                            style="width: 100%"
                            :placeholder="
                                $t('other.please_enter') + 'Available by'
                            "
                            disabled
                            :code="codes.avbby"
                        >
                        </c-select>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
                    <el-form-item label="">
                        <c-col :span="8">
                            <c-checkbox disabled v-model="model.brtp.aammod.addamtflg">{{
                                $t("brtp.CF000171")
                            }}</c-checkbox>
                        </c-col>
                        <c-col :span="8">
                            <c-checkbox disabled v-model="model.lidgrp.rec.revflg">{{
                                $t("brtp.CF000170")
                            }}</c-checkbox>
                        </c-col>
                        <c-col :span="8">
                            <c-checkbox disabled v-model="model.lidgrp.rec.redclsflg">{{
                                $t("brtp.CF000169")
                            }}</c-checkbox>
                        </c-col>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
                    <el-form-item
                        :label="$t('brtp.S0000182')"
                        prop="lidgrp.rec.opndat"
                    >
                        <c-date-picker
                            type="date"
                            v-model="model.lidgrp.rec.opndat"
                            style="width: 100%"
                            :placeholder="
                                $t('other.please_enter') + $t('brtp.S0000182')
                            "
                            disabled
                        ></c-date-picker>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
                    <el-form-item
                        :label="$t('brtp.S0000185')"
                        prop="lidgrp.rec.shpdat"
                    >
                        <c-date-picker
                            type="date"
                            v-model="model.lidgrp.rec.shpdat"
                            style="width: 100%"
                            :placeholder="
                                $t('other.please_enter') + $t('brtp.S0000185')
                            "
                            disabled
                        ></c-date-picker>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
                    <el-form-item
                        :label="$t('brtp.S0000179')"
                        prop="lidgrp.rec.expdat"
                    >
                        <c-date-picker
                            type="date"
                            v-model="model.lidgrp.rec.expdat"
                            style="width: 100%"
                            :placeholder="
                                $t('other.please_enter') + $t('brtp.S0000179')
                            "
                            disabled
                        ></c-date-picker>
                    </el-form-item>
                </c-col>
            </c-col>

            <!-- ---------------Right--------------- -->
            <c-col :span="12">
                <c-col :span="24">
                    <c-form-item
                        :label="$t('brtp.S0000179')"
                        prop="lidgrp.rec.expplc"
                    >
                        <c-input
                            v-model="model.lidgrp.rec.expplc"
                            maxlength="29"
                            :placeholder="
                                $t('other.please_enter') + $t('brtp.S0000179')
                            "
                            disabled
                        ></c-input>
                    </c-form-item>
                </c-col>
                <c-col :span="24">
                    <el-form-item
                        :label="$t('brtp.S0000178')"
                        prop="lidgrp.rec.lcrtyp"
                    >
                        <c-select
                            v-model="model.lidgrp.rec.lcrtyp"
                            style="width: 100%"
                            :placeholder="
                                $t('other.please_enter') + $t('brtp.S0000178')
                            "
                            :code="codes.lcrtyp"
                            disabled
                        >
                        </c-select>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
                    <c-appBenPre
                        :model="model"
                        :argadr="{
                            title: 'Opening Amount',
                            trans: 'brdgrp',
                        }"
                        :rol="[
                            {
                                title: '申请人',
                                trans: 'apl',
                            },
                            {
                                title: '开证行',
                                trans: 'ben',
                            },
                            {
                                title: '交单行',
                                trans: 'prb',
                            },
                        ]"
                    >
                    </c-appBenPre>
                </c-col>
            </c-col>
        </c-col>

        <c-col :span="24">
            <!-- ---------------Left--------------- -->
            <c-col :span="12">
                <c-col :span="24">
                    <el-form-item
                        :label="$t('brtame.S0000079')"
                        prop="brdgrp.rec.ownref"
                    >
                        <c-fullbox>
                            <c-input
                                v-model="model.lidgrp.rec.ownref"
                                maxlength="16"
                                :placeholder="
                                    $t('other.please_enter') +
                                    $t('brtame.S0000079')
                                "
                                disabled
                            ></c-input>
                            <template slot="footer">
                                <c-button
                                    style="
                                        margin: 0 10px 0 10px;
                                        padding: 0 12px;
                                    "
                                    size="small"
                                    type="primary"
                                >
                                    <span
                                        style="
                                            font-family: '宋体';
                                            font-weight: bold;
                                        "
                                        >i</span
                                    >
                                </c-button>
                                <c-button
                                    style="margin: 0 0"
                                    size="small"
                                    type="primary"
                                    :disabled="this.flag"
                                >
                                    获取
                                </c-button>
                            </template>
                        </c-fullbox>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
                    <c-form-item
                        :label="$t('brtame.SG000213')"
                        prop="brdgrp.rec.shgref"
                    >
                        <c-input
                            v-model="model.brdgrp.rec.shgref"
                            maxlength="16"
                            :placeholder="
                                $t('other.please_enter') + $t('brtame.SG000213')
                            "
                            disabled
                        ></c-input>
                    </c-form-item>
                </c-col>
            </c-col>

            <!-- ---------------Right--------------- -->
            <c-col :span="12">
                <c-col :span="24">
                    <c-form-item
                        :label="$t('brtame.S0000078')"
                        prop="brdgrp.rec.nam"
                    >
                        <c-input
                            v-model="model.brdgrp.rec.nam"
                            maxlength="40"
                            :placeholder="
                                $t('other.please_enter') + $t('brtame.S0000078')
                            "
                            disabled
                        ></c-input>
                    </c-form-item>
                </c-col>

                <c-col :span="24">
                    <c-col :span="13">
                        <c-form-item
                            :label="$t('brtame.SF000060')"
                            prop="brdgrp.cbs.max.cur"
                        >
                            <c-input
                                v-model="model.brdgrp.cbs.max.cur"
                                maxlength="3"
                                :placeholder="
                                    $t('other.please_enter') +
                                    $t('brtame.SF000060')
                                "
                                disabled
                            ></c-input>
                        </c-form-item>
                    </c-col>
                    <c-col :span="11">
                        <c-form-item
                            label=""
                            label-width="5px"
                            prop="brdgrp.cbs.max.amt"
                        >
                            <c-input
                                v-model="model.brdgrp.cbs.max.amt"
                                :placeholder="
                                    $t('other.please_enter') + 'Balance'
                                "
                            ></c-input>
                        </c-form-item>
                    </c-col>
                </c-col>
            </c-col>
        </c-col>
    </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtame/Event";

import CurAmt from "~/views/Public/CurAmt";
import AppBenPre from "~/views/Public/AppBenPre";
import Ptap1 from "~/views/Public/Ptap1";

export default {
    inject: ["root"],
    props: ["model", "codes"],
    mixins: [commonProcess],
    components: {
        "c-curAmt": CurAmt,
        "c-appBenPre": AppBenPre,
        "c-ptap1": Ptap1,
    },
    data() {
        return {
            flag: true,
        };
    },
    methods: { ...Event },
    created: function () {},
};
</script>
<style>
</style>