<template>
  <div class="eibs-tab">
    <c-row>
      <!--    左边   shift+Alt+F 格式化代码 -->
      <c-col :span="11">
        <c-col :span="20">
          <el-form-item label="L/C Reference" prop="ledgrp.rec.ownref">
            <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入L/C Reference"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="4">
                <el-form-item label="" label-width="15px">
                    <c-button
                        size="small"
                        type="primary;width:10%"
                        @click="onSeainf"
                        >i</c-button
                    >
                    <!--c-button
                        size="small"
                        type="primary"
                        :disabled="this.flag"
                        @click="onLttpButgetref"
                    >
                        获取
                    </c-button-->
                </el-form-item>
            </c-col>
        <c-col :span="20">
          <el-form-item label="Transfer Reference" prop="ltdgrp.rec.ownref">
            <c-input
              v-model="model.ltdgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入Transfer Reference"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="4">
                <el-form-item label="" label-width="15px">
                    <c-button
                        size="small"
                        type="primary;width:10%"
                        @click="onSeainf"
                        >i</c-button
                    >
                    <!--c-button
                        size="small"
                        type="primary"
                        :disabled="this.flag"
                        @click="onLttpButgetref"
                    >
                        获取
                    </c-button-->
                </el-form-item>
            </c-col>
        <c-col :span="8">
          <el-form-item label="L/C Amount" prop="ltdgrp.cbs.nom1.cur">
            <c-select
              v-model="model.ltdgrp.cbs.nom1.cur"
              maxlength="3"
              placeholder="CUR"
            ></c-select>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item prop="ltdgrp.cbs.nom1.amt">
            <c-input
              v-model="model.ltdgrp.cbs.nom1.amt"
              placeholder="0.000"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="4">
          <c-checkbox v-model="model.bttp.aammod.addamtflg"
            >Add. Amount</c-checkbox
          >
        </c-col>
        <c-col :span="8">
          <el-form-item label="Open Amount" prop="ltdgrp.cbs.opn1.cur">
            <c-select
              v-model="model.ltdgrp.cbs.opn1.cur"
              maxlength="3"
              placeholder="CUR"
            ></c-select>
          </el-form-item>
          </c-col>
        <c-col :span="12">
          <el-form-item prop="ltdgrp.cbs.opn1.amt">
            <c-input
              v-model="model.ltdgrp.cbs.opn1.amt"
              placeholder="0.000"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Available with" prop="ltdgrp.avbnam">
            <c-input
              v-model="model.ltdgrp.avbnam"
              maxlength="40"
              placeholder="请输入Available with"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="15">
          <el-form-item label="Available by" prop="ltdgrp.rec.avbby">
            <c-select
              v-model="model.ltdgrp.rec.avbby"
              style="width: 100%"
              placeholder="请选择Available by"
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="9">
          <el-form-item label="Shipment Date" prop="ltdgrp.rec.shpdat">
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.shpdat"
              style="width: 100%"
              placeholder="请选择Shipment Date"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="9">
          <el-form-item label="Date Issued/Form" prop="ltdgrp.rec.opndat">
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.opndat"
              style="width: 100%"
              placeholder="请选择Date Issued/Form"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="15">
          <el-form-item label="" prop="ltdgrp.rec.lcrtyp">
            <c-select
              v-model="model.ltdgrp.rec.lcrtyp"
              style="width: 100%"
              placeholder="请选择Date Issued/Form"
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="9">
          <el-form-item label="Date / Place of Expiry" prop="ltdgrp.rec.expdat">
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.expdat"
              style="width: 100%"
              placeholder="请选择Date / Place of Expiry"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="15">
          <el-form-item label="" prop="ltdgrp.rec.expplc">
            <c-input
              v-model="model.ltdgrp.rec.expplc"
              maxlength="29"
              placeholder="请输入Date / Place of Expiry"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="Document Set Ref." prop="btdgrp.rec.ownref">
            <c-input
              v-model="model.btdgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入Document Set Ref."
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="4">
                <el-form-item label="" label-width="15px">
                    <c-button
                        size="small"
                        type="primary;width:10%"
                        @click="onSeainf"
                        >i</c-button
                    >
                </el-form-item>
            </c-col>
        <!--c-col :span="1">
      <el-form-item label="i" prop="bttp.recget.sdamod.seainf">
        <c-input
          v-model="model.bttp.recget.sdamod.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
    </c-col-->
        <c-col :span="6">
          <c-button size="small" type="primary" @click="onBttmodButgetref">
            Get Ref
          </c-button>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Document Type" prop="btdgrp.rec.doctypcod">
            <c-select
              v-model="model.btdgrp.rec.doctypcod"
              style="width: 100%"
              placeholder="请选择Document Type"
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="9">
          <el-form-item label="Document Amount" prop="btdgrp.cbs.max.cur">
            <c-select
              v-model="model.btdgrp.cbs.max.cur"
              style="width: 100%"
              placeholder="CUR"
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="15">
          <el-form-item label="" prop="btdgrp.cbs.max.amt">
            <c-input
              v-model="model.btdgrp.cbs.max.amt"
              placeholder="0.000"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="9">
          <el-form-item label="附加金额" prop="btdgrp.cbs.opn2.cur">
            <c-select
              v-model="model.btdgrp.cbs.opn2.cur"
              style="width: 100%"
              placeholder="CUR"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="15">
          <el-form-item label="" prop="btdgrp.cbs.max2.amt">
            <c-input
              v-model="model.btdgrp.cbs.max2.amt"
              placeholder="0.000"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item
            label="Received on (2nd Ben)"
            prop="btdgrp.rec.rcvdatbe2"
          >
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.rcvdatbe2"
              style="width: 100%"
              placeholder="请选择Received on (2nd Ben)"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item
            label="Order Date (2nd Ben)"
            prop="btdgrp.rec.orddatbe2"
          >
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.orddatbe2"
              style="width: 100%"
              placeholder="请选择Order Date 2nd Beneficiary"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="Maturity Date" prop="btdgrp.rec.matdat">
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.matdat"
              style="width: 100%"
              placeholder="请选择Maturity Date"
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="Date of Shipment" prop="btdgrp.rec.shpdat">
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.shpdat"
              style="width: 100%"
              placeholder="请选择Date of Shipment"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Maturity Period" prop="btdgrp.blk.matper">
            <c-input
              type="textarea"
              v-model="model.btdgrp.blk.matper"
              maxlength="65"
              show-word-limit
              placeholder="请输入Maturity Period"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-checkbox v-model="model.btdgrp.rec.dscinsflg"
            >Enter Docs, Discrep. and Instructions</c-checkbox
          >
        </c-col>
        <c-col :span="12">
          <el-form-item label="Number of Utilizations" prop="ltdgrp.rec.utlnbr">
            <c-input
              v-model="model.ltdgrp.rec.utlnbr"
              placeholder="请输入Number of Utilizations"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24"></c-col>
      </c-col>
      <!--  右边    -->
      <c-col :span="11" :offset="1">
        <c-col :span="24">
          <el-form-item label="Name" prop="ledgrp.rec.nam">
            <c-input
              v-model="model.ledgrp.rec.nam"
              maxlength="40"
              placeholder="请输入Name"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Name" prop="ltdgrp.rec.nam">
            <c-input
              v-model="model.ltdgrp.rec.nam"
              maxlength="40"
              placeholder="请输入Name"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="1st Beneficiary" prop="btdgrp.be1.pts.ref">
            <c-input
              v-model="model.btdgrp.be1.pts.ref"
              maxlength="16"
              placeholder="请输入1st Beneficiary"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="" prop="btdgrp.be1.pts.nam">
            <c-input
              v-model="model.btdgrp.be1.pts.nam"
              maxlength="40"
              placeholder="请输入Name of Party"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="2nd Beneficiary" prop="btdgrp.be2.pts.ref">
            <c-input
              v-model="model.btdgrp.be2.pts.ref"
              maxlength="16"
              placeholder="请输入2nd Beneficiary"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="" prop="btdgrp.be2.pts.nam">
            <c-input
              v-model="model.btdgrp.be2.pts.nam"
              maxlength="40"
              placeholder="请输入Name of Party"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Presenting Bank" prop="btdgrp.prb.pts.ref">
            <c-input
              v-model="model.btdgrp.prb.pts.ref"
              maxlength="16"
              placeholder="请输入Presenting Bank"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="" prop="btdgrp.prb.pts.nam">
            <c-input
              v-model="model.btdgrp.prb.pts.nam"
              maxlength="40"
              placeholder="请输入Name of Party"
            ></c-input>
          </el-form-item>
        </c-col>
        <!--c-col :span="12">
      <el-form-item label="Description" prop="bttp.ltdget.sdamod.seainf">
        <c-input
          v-model="model.bttp.ltdget.sdamod.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
    </c-col-->
        <c-col :span="24">
          <el-form-item label="Description" prop="btdgrp.rec.nam">
            <c-input
              v-model="model.btdgrp.rec.nam"
              maxlength="40"
              placeholder="请输入Description"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Presented by" prop="btdgrp.rec.docprbrol">
            <c-select
              v-model="model.btdgrp.rec.docprbrol"
              style="width: 100%"
              placeholder="请选择Presented by"
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item
            label="External Key of Address"
            prop="btdgrp.prb.pts.extkey"
          >
            <c-input
              v-model="model.btdgrp.prb.pts.extkey"
              maxlength="16"
              placeholder="请输入External Key of Address"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <c-button size="small" type="primary" @click="onPrbpDet">
            Details
          </c-button>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Address Block" prop="btdgrp.prb.pts.adrblk">
            <c-input
              type="textarea"
              v-model="model.btdgrp.prb.pts.adrblk"
              maxlength="35"
              show-word-limit
              placeholder="请输入Address Block"
            ></c-input>
          </el-form-item>
        </c-col>
        <!--c-col :span="24">
      <el-form-item label="名称" prop="btdgrp.prb.namelc">
        <c-input
          type="textarea"
          v-model="model.btdgrp.prb.namelc"
          maxlength="35"
          show-word-limit
          placeholder="请输入名称"
        ></c-input>
      </el-form-item>
    </c-col-->
        <!--c-col :span="12">
      <el-form-item label="" prop="bttp.prbp.ptsget.sdamod.seainf">
        <c-input
          v-model="model.bttp.prbp.ptsget.sdamod.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
    </c-col-->
        <c-col :span="12">
          <c-checkbox v-model="model.ltdgrp.rec.docsubflg"
            >Documents to be Substituted</c-checkbox
          >
        </c-col>
        <c-col :span="24"></c-col>
      </c-col>
    </c-row>

    <!--c-col :span="12">
      <el-form-item label="Drag  Drop Sender" prop="bttp.recget.sdamod.dadsnd">
        <c-input
          v-model="model.bttp.recget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col-->

    <!--c-col :span="12">
      <el-form-item label="" prop="bttp.ledget.sdamod.seainf">
        <c-input
          v-model="model.bttp.ledget.sdamod.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
    </c-col-->

    <!--c-col :span="12">
      <el-form-item label="Drag  Drop Sender" prop="bttp.ltdget.sdamod.dadsnd">
        <c-input
          v-model="model.bttp.ltdget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col-->

    <!--c-col :span="12">
      <el-form-item
        label="Drag  Drop Sender"
        prop="bttp.prbp.ptsget.sdamod.dadsnd"
      >
        <c-input
          v-model="model.bttp.prbp.ptsget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col-->

    <!--c-col :span="12">
      <el-form-item label="Chinese address" prop="btdgrp.prb.dbfadrblkcn">
        <c-input
          type="textarea"
          v-model="model.btdgrp.prb.dbfadrblkcn"
          maxlength="35"
          show-word-limit
          placeholder="请输入Chinese address"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="地址" prop="btdgrp.prb.adrelc">
        <c-input
          type="textarea"
          v-model="model.btdgrp.prb.adrelc"
          maxlength="35"
          show-word-limit
          placeholder="请输入地址"
        ></c-input>
      </el-form-item>
    </c-col-->
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Lttdck/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>