<template>
    <div class="eibs-tab">
        <c-col :span="24">
            <!-- ---------------Left--------------- -->
            <c-col :span="12">
                <c-col :span="24">
                    <el-form-item label="信用证编号" prop="lidgrp.rec.ownref">
                        <c-fullbox>
                            <c-input
                                v-model="model.lidgrp.rec.ownref"
                                maxlength="16"
                                placeholder="请输入信用证编号"
                                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">
                    <el-form-item label="单据参考号" prop="brdgrp.rec.ownref">
                        <c-fullbox>
                            <c-input
                                v-model="model.brdgrp.rec.ownref"
                                maxlength="16"
                                placeholder="请输入单据参考号"
                                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">
                    <el-form-item label="Expiry" prop="lidgrp.rec.expdat">
                        <c-date-picker
                            type="date"
                            v-model="model.lidgrp.rec.expdat"
                            style="width: 100%"
                            placeholder="请选择Date of Expiry"
                            disabled
                        ></c-date-picker>
                    </el-form-item>
                </c-col>
            </c-col>

            <!-- ---------------Right--------------- -->
            <c-col :span="12">
                <c-col :span="24">
                    <c-curAmt
                        :model="model"
                        :argadr="{
                            title: 'Opening Amount',
                            trans: 'lidgrp',
                        }"
                    >
                    </c-curAmt>
                </c-col>

                <c-col :span="24">
                    <el-form-item
                        label="Drag  Drop Sender"
                        prop="brtp.lidget.sdamod.dadsnd"
                    >
                        <c-input
                            v-model="model.brtp.lidget.sdamod.dadsnd"
                            placeholder="请输入Drag  Drop Sender"
                            disabled
                        ></c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="Order Date" prop="brdgrp.rec.orddat">
                        <c-date-picker
                            type="date"
                            v-model="model.brdgrp.rec.orddat"
                            style="width: 100%"
                            placeholder="请选择Order Date"
                            disabled
                        ></c-date-picker>
                    </el-form-item>
                </c-col>
            </c-col>
        </c-col>

        <c-col :span="24">
            <c-litTemp
                :model="model"
                :argadr="{
                    title: 'Opening Amount',
                    trans: 'brdgrp',
                }"
                :rol="[
                    {
                        title: '交单行',
                        trans: 'prb',
                    },
                    {
                        title: '开证行',
                        trans: 'ben',
                    },
                    {
                        title: '申请人',
                        trans: 'apl',
                    },
                ]"
                :isAdvdat="true"
                :isMattxtlab="true"
                :isTenmaxday="true"
            >
            </c-litTemp>
        </c-col>

        <c-col :span="24">
            <!-- ---------------Left--------------- -->
            <c-col :span="12">
                <c-col :span="24">
                    <el-form-item
                        label="Further Identification"
                        prop="brtp.furide"
                    >
                        <c-select
                            v-model="model.brtp.furide"
                            style="width: 100%"
                            placeholder="请选择Further Identification"
                        >
                            <el-option
                                v-for="item in codes.furide"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </c-select>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <el-form-item
                        label="Discrep. advised on"
                        prop="brdgrp.rec.disdat"
                    >
                        <c-date-picker
                            type="date"
                            v-model="model.brdgrp.rec.disdat"
                            style="width: 100%"
                            placeholder="请选择Discrep. advised on"
                        ></c-date-picker>
                    </el-form-item>
                </c-col>

                <c-col :span="24">
                    <c-col :span="13">
                        <el-form-item
                            label="Amount to be Paid"
                            prop="brdgrp.rec.totcur"
                        >
                            <c-input
                                v-model="model.brdgrp.rec.totcur"
                                maxlength="3"
                                placeholder="请输入Amount to be Paid"
                                disabled
                            ></c-input>
                        </el-form-item>
                    </c-col>
                    <c-col :span="11">
                        <el-form-item
                            label=""
                            prop="brdgrp.rec.totamt"
                            label-width="5px"
                        >
                            <c-input
                                v-model="model.brdgrp.rec.totamt"
                                placeholder="请输入Total Amount to be Paid"
                            ></c-input>
                        </el-form-item>
                    </c-col>
                </c-col>
            </c-col>

            <!-- ---------------Right--------------- -->
            <c-col :span="12">
                <c-col :span="24">
                    <el-form-item
                        label="Presented by"
                        prop="brdgrp.rec.docprbrol"
                    >
                        <c-select
                            v-model="model.brdgrp.rec.docprbrol"
                            style="width: 100%"
                            placeholder="请选择Presented by"
                        >
                        </c-select>
                    </el-form-item>
                </c-col>
                <c-col :span="24">
                    <c-ptap1
                        :model="model"
                        :argadr="{
                            title: 'Presented by',
                            grp: 'brdgrp',
                            rol: 'prb',
                        }"
                        :disabled="true"
                        :isAdrblk="false"
                    >
                    </c-ptap1>
                </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/Brtacp/Event";

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

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