<template>
  <div class="eibs-tab">
    <!-- left -->
    <c-col :span="11">
      <c-col :span="24">
        <c-col :span="20">
          <el-form-item
            label="Reference"
            prop="ledgrp.rec.ownref"
            style="width: 100%"
          >
            <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入Reference"
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="1">
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
          >
            <span
              style="font-size: 15px; font-family: '宋体'; font-weight: bold"
              >i</span
            >
          </c-button>
        </c-col>
        <c-col :span="2" :offset="1" style="text-align: right">
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="this.flag"
            @click="onDetpButgetref"
          >
            Get
          </c-button>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="L/C Amount" prop="ledgrp.cbs.nom1.cur">
          <c-fullbox>
            <c-input
              v-model="model.ledgrp.cbs.nom1.cur"
              maxlength="3"
              style="width: 50%"
              placeholder="请输入L/C Amount"
              disabled
            ></c-input>
            <c-input
              v-model="model.ledgrp.cbs.nom1.amt"
              style="width: 50%"
              placeholder="请输入Balance"
              disabled
            ></c-input>
            <template slot="footer">
              <c-checkbox
                v-model="model.betp.aammod.addamtflg"
                style="margin-left: 10px"
                disabled
                >Add. Amount</c-checkbox
              >
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Open Amount" prop="ledgrp.cbs.opn1.cur">
          <c-fullbox>
            <c-input
              v-model="model.ledgrp.cbs.opn1.cur"
              maxlength="3"
              style="width: 50%"
              placeholder="请输入Open Amount"
              disabled
            ></c-input>
            <c-input
              v-model="model.ledgrp.cbs.opn1.amt"
              style="width: 50%"
              placeholder="请输入Balance"
              disabled
            ></c-input>
            <template slot="footer">
              <c-checkbox
                v-model="model.ledgrp.rec.revflg"
                style="margin-left: 10px"
                disabled
                >Revolving L/C</c-checkbox
              >
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-form-item label="Available with" prop="ledgrp.avbnam">
          <c-input
            v-model="model.ledgrp.avbnam"
            maxlength="40"
            placeholder="Please input Available with"
            disabled
          ></c-input>
        </c-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="by" prop="ledgrp.rec.avbby">
          <c-fullbox>
            <c-select
              v-model="model.ledgrp.rec.avbby"
              maxlength="3"
              style="width: 100%"
              placeholder="Please input Open Amount"
              disabled
              :code="codes.avbby"
            ></c-select>
            <template slot="footer">
              <c-checkbox
                v-model="model.ledgrp.rec.revflg"
                style="margin-left: 10px"
                disabled
                >Red/Green Clause</c-checkbox
              >
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Date Issued" prop="ledgrp.rec.opndat">
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.opndat"
              style="width: 100%"
              placeholder="Please select Date Issued"
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="Shipment Date" prop="ledgrp.rec.shpdat">
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.shpdat"
              style="width: 100%"
              placeholder="Please select Shipment Date"
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Date/Place of Expiry" prop="ledgrp.rec.expdat">
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.expdat"
              style="width: 100%"
              placeholder="Please select Shipment Date"
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <c-input
            v-model="model.ledgrp.rec.expplc"
            maxlength="40"
            placeholder="Please input Available with"
            disabled
          ></c-input>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item
          label="Form of L/C"
          prop="ledgrp.rec.lcrtyp"
          style="width: 100%"
        >
          <c-select
            v-model="model.ledgrp.rec.lcrtyp"
            style="width: 100%"
            placeholder="Please select Form of L/C"
            disabled
          >
            <el-option
              v-for="item in codes.lcrtyp1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- right -->
    <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="请输入Externally Displayed Name to Identify the Contract"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: 'Applicant',
            grp: 'bedgrp',
            rol: 'apl',
          }"
          :enRef="true"
          :enNam="true"
          :disabled="true"
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: 'Iss. Bank',
            grp: 'bedgrp',
            rol: 'iss',
          }"
          :enRef="true"
          :enNam="true"
          :disabled="true"
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: 'Presented by',
            grp: 'bedgrp',
            rol: 'prb',
          }"
          :enRef="true"
          :enNam="true"
          :disabled="true"
        ></c-ptsmsg>
      </c-col>
    </c-col>

    <c-col :span="24">
      <el-form-item style="margin-left: -150px">
        <el-divider />
      </el-form-item>
    </c-col>

    <!-- next part -->
    <!-- left -->
    <c-col :span="11">
      <c-col :span="24">
      <c-col :span="20">
        <el-form-item
          label="Document Reference"
          prop="bedgrp.rec.ownref"
          style="width: 100%"
        >
          <c-input
            v-model="model.bedgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入Reference"
            style="width: 95%"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="1">
        <c-button
          style="margin: 0 10px 0 0; padding: 0 12px"
          size="small"
          type="primary"
          @click="onSeainf"
        >
          <span style="font-size: 15px; font-family: '宋体'; font-weight: bold"
            >i</span
          >
        </c-button>
      </c-col>
      <c-col :span="2" :offset="1" style="text-align: right">
        <c-button
          style="margin: 0 0"
          size="small"
          type="primary"
          :disabled="this.flag"
          @click="onDetpButgetref"
        >
          Get
        </c-button>
      </c-col>
    </c-col>
      <c-col :span="24">
        <el-form-item
          label="Document Type"
          prop="bedgrp.rec.doctypcod"
          style="width: 100%"
        >
          <c-select
            v-model="model.bedgrp.rec.doctypcod"
            style="width: 100%"
            placeholder="Please select Document Type"
            disabled
          >
            <el-option
              v-for="item in codes.doctypcod1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Document Amount" prop="bedgrp.cbs.max.cur">
            <c-input
              v-model="model.bedgrp.cbs.max.cur"
              maxlength="3"
              placeholder="Please input Document Amount"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max.amt">
            <c-input
              v-model="model.bedgrp.cbs.max.amt"
              placeholder="Please input Balance"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Drawn Add. Amount" prop="bedgrp.cbs.opn2.cur">
            <c-input
              v-model="model.bedgrp.cbs.opn2.cur"
              maxlength="3"
              placeholder="Please input Drawn Add. Amount"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max2.amt">
            <c-input
              v-model="model.bedgrp.cbs.max2.amt"
              placeholder="Please input Balance"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Received on" prop="bedgrp.rec.rcvdat">
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.rcvdat"
              style="width: 100%"
              placeholder="Please select Received on"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="Order Date" prop="bedgrp.rec.orddat">
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.orddat"
              style="width: 100%"
              placeholder="Please select Order Date"
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Maturity Date" prop="bedgrp.rec.matdat">
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.matdat"
              style="width: 100%"
              placeholder="Please select Maturity Date"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="Shipped on" prop="bedgrp.rec.shpdat">
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.shpdat"
              style="width: 100%"
              placeholder="Please select Shipped on"
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Maturity Period" prop="bedgrp.blk.matper">
          <c-input
            type="textarea"
            v-model="model.bedgrp.blk.matper"
            maxlength="65"
            show-word-limit
            placeholder="Please input Maturity Period"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-checkbox
          v-model="model.bedgrp.rec.dscinsflg"
          style="margin-left: 150px"
          disabled
          >Enter Documents, Discrepancies and Instructions</c-checkbox
        >
      </c-col>
      <c-col :span="24">
        <el-form-item
          label="Previous Drawings under this L/C"
          prop="ledgrp.rec.utlnbr"
        >
          <c-input
            v-model.number="model.ledgrp.rec.utlnbr"
            placeholder="Please input Previous Drawings under this L/C"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- right -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
      <el-form-item label="Name" prop="bedgrp.rec.nam">
        <c-input
          v-model="model.bedgrp.rec.nam"
          maxlength="40"
          placeholder="Please input Externally Displayed Name to Identify the Contract"
          disabled
        ></c-input>
      </el-form-item>
    </c-col>
      <c-col :span="24">
        <el-form-item label="Presented by" prop="bedgrp.rec.docprbrol">
          <c-select
            v-model="model.bedgrp.rec.docprbrol"
            style="width: 100%"
            placeholder="Please select Presented by"
          >
            <el-option
              v-for="item in codes.docprbrol"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '',
            grp: 'bedgrp',
            rol: 'prb',
          }"
          :noRef="false"
          :disabled="true"
          :isAdrblk="true"
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>
      </c-col>

      <c-col :span="24">
        <el-form-item
          label="发票类型"
          prop="bedgrp.rec.invtyp"
          style="width: 100%"
        >
          <c-select
            v-model="model.bedgrp.rec.invtyp"
            style="width: 100%"
            placeholder="请选择发票类型"
          >
            <el-option
              v-for="item in codes.invtyp1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- <c-col :span="12">
        <c-form-item label="Drag  Drop Sender" prop="betp.ledget.sdamod.dadsnd">
            <c-input  v-model="model.betp.ledget.sdamod.dadsnd"  :placeholder="$t('other.please_enter')+'Drag  Drop Sender'"></c-input>
        </c-form-item>
       </c-col>
                 S0000160 : Reference
                  
       <c-col :span="12">
        <c-form-item :label="$t('betp.S0000160')" prop="ledgrp.rec.ownref">
            <c-input  v-model="model.ledgrp.rec.ownref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('betp.S0000160')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="" prop="betp.ledget.sdamod.seainf">
            <c-input  v-model="model.betp.ledget.sdamod.seainf"  :placeholder="$t('other.please_enter')+''"></c-input>
        </c-form-item>
       </c-col>
                 S0000170 : 摘要
                  
       <c-col :span="12">
        <c-form-item :label="$t('betp.S0000170')" prop="ledgrp.rec.nam">
            <c-input  v-model="model.ledgrp.rec.nam" maxlength="40"  :placeholder="$t('other.please_enter')+$t('betp.S0000170')"></c-input>
        </c-form-item>
       </c-col>
                 S0000161 : L/C Amount
                  
       <c-col :span="12">
        <c-form-item :label="$t('betp.S0000161')" prop="ledgrp.cbs.nom1.cur">
            <c-input  v-model="model.ledgrp.cbs.nom1.cur" maxlength="3"  :placeholder="$t('other.please_enter')+$t('betp.S0000161')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Balance" prop="ledgrp.cbs.nom1.amt">
            <c-input  v-model="model.ledgrp.cbs.nom1.amt"  :placeholder="$t('other.please_enter')+'Balance'"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.betp.aammod.addamtflg">{{$t('betp.CF000157')}}</c-checkbox>
       </c-col>
                 S0000164 : 申请人
                 S0000174 : 编号
                  
       <c-col :span="12">
        <c-form-item :label="$t('betp.S0000164')" prop="bedgrp.apl.pts.ref">
            <c-input  v-model="model.bedgrp.apl.pts.ref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('betp.S0000164')"></c-input>
        </c-form-item>
       </c-col>
                 S0000162 : 信用证余额
                  
       <c-col :span="12">
        <c-form-item :label="$t('betp.S0000162')" prop="ledgrp.cbs.opn1.cur">
            <c-input  v-model="model.ledgrp.cbs.opn1.cur" maxlength="3"  :placeholder="$t('other.please_enter')+$t('betp.S0000162')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Balance" prop="ledgrp.cbs.opn1.amt">
            <c-input  v-model="model.ledgrp.cbs.opn1.amt"  :placeholder="$t('other.please_enter')+'Balance'"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.ledgrp.rec.revflg">{{$t('betp.CF000159')}}</c-checkbox>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Name of Party" prop="bedgrp.apl.pts.nam">
            <c-input  v-model="model.bedgrp.apl.pts.nam" maxlength="40"  :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
        </c-form-item>
       </c-col>
                 S0000165 : 指定银行
                  
       <c-col :span="12">
        <c-form-item :label="$t('betp.S0000165')" prop="ledgrp.avbnam">
            <c-input  v-model="model.ledgrp.avbnam" maxlength="40"  :placeholder="$t('other.please_enter')+$t('betp.S0000165')"></c-input>
        </c-form-item>
       </c-col>
                 S0000172 : Iss. Bank
                 S0000173 : 编号
                  
       <c-col :span="12">
        <c-form-item :label="$t('betp.S0000172')" prop="bedgrp.iss.pts.ref">
            <c-input  v-model="model.bedgrp.iss.pts.ref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('betp.S0000172')"></c-input>
        </c-form-item>
       </c-col>
                 S0000166 : 兑付方式
                  
       <c-col :span="12">
        <el-form-item label="Available by [AVBBY0]" prop="ledgrp.rec.avbby">
            <c-select v-model="model.ledgrp.rec.avbby" style="width:100%" :placeholder="$t('other.please_enter')+'Available by [AVBBY0]'">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.ledgrp.rec.redclsflg">{{$t('betp.CF000158')}}</c-checkbox>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Name of Party" prop="bedgrp.iss.pts.nam">
            <c-input  v-model="model.bedgrp.iss.pts.nam" maxlength="40"  :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
        </c-form-item>
       </c-col>
                 S0000169 : Date Issued
                  
       <c-col :span="12">
        <el-form-item :label="$t('betp.S0000169')" prop="ledgrp.rec.opndat">
            <c-date-picker type="date"  v-model="model.ledgrp.rec.opndat" style="width:100%"  :placeholder="$t('other.please_enter')+$t('betp.S0000169')"></c-date-picker>
        </el-form-item>
       </c-col>
                 S0000175 : Shipment Date
                  
       <c-col :span="12">
        <el-form-item :label="$t('betp.S0000175')" prop="ledgrp.rec.shpdat">
            <c-date-picker type="date"  v-model="model.ledgrp.rec.shpdat" style="width:100%"  :placeholder="$t('other.please_enter')+$t('betp.S0000175')"></c-date-picker>
        </el-form-item>
       </c-col>
                 S0000177 : 交单人
                 S0000171 : 编号
                  
       <c-col :span="12">
        <c-form-item :label="$t('letdrv.S0000048')" prop="bedgrp.prb.pts.ref">
            <c-input  v-model="model.bedgrp.prb.pts.ref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('letdrv.S0000048')"></c-input>
        </c-form-item>
       </c-col>
                 S0000168 : Date/Place of Expiry
                  
       <c-col :span="12">
        <el-form-item :label="$t('betp.S0000168')" prop="ledgrp.rec.expdat">
            <c-date-picker type="date"  v-model="model.ledgrp.rec.expdat" style="width:100%"  :placeholder="$t('other.please_enter')+$t('betp.S0000168')"></c-date-picker>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item :label="$t('betp.S0000168')" prop="ledgrp.rec.expplc">
            <c-input  v-model="model.ledgrp.rec.expplc" maxlength="29"  :placeholder="$t('other.please_enter')+$t('betp.S0000168')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Name of Party" prop="bedgrp.prb.pts.nam">
            <c-input  v-model="model.bedgrp.prb.pts.nam" maxlength="40"  :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
        </c-form-item>
       </c-col>
                 S0000167 : Form of L/C
                  
       <c-col :span="12">
        <el-form-item :label="$t('betp.S0000167')" prop="ledgrp.rec.lcrtyp">
            <c-select v-model="model.ledgrp.rec.lcrtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('betp.S0000167')">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Drag  Drop Sender" prop="betp.recget.sdamod.dadsnd">
            <c-input  v-model="model.betp.recget.sdamod.dadsnd"  :placeholder="$t('other.please_enter')+'Drag  Drop Sender'"></c-input>
        </c-form-item>
       </c-col>
                 SF000005 : Document Reference
                  
       <c-col :span="12">
        <c-form-item :label="$t('letdrv.SF000005')" prop="bedgrp.rec.ownref">
            <c-input  v-model="model.bedgrp.rec.ownref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('letdrv.SF000005')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="" prop="betp.recget.sdamod.seainf">
            <c-input  v-model="model.betp.recget.sdamod.seainf"  :placeholder="$t('other.please_enter')+''"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onBetmodButgetref">
             {{$t('letdrv.CG000049')}}
        </c-button>
       </c-col>
                 SF000006 : Name
                  
       <c-col :span="12">
        <c-form-item label="Externally Displayed Name to Identify the Contract" prop="bedgrp.rec.nam">
            <c-input  v-model="model.bedgrp.rec.nam" maxlength="40"  :placeholder="$t('other.please_enter')+'Externally Displayed Name to Identify the Contract'"></c-input>
        </c-form-item>
       </c-col>
                 SF000008 : Document Type
                  
       <c-col :span="12">
        <el-form-item :label="$t('letdrv.SF000008')" prop="bedgrp.rec.doctypcod">
            <c-select v-model="model.bedgrp.rec.doctypcod" style="width:100%" :placeholder="$t('other.please_enter')+$t('letdrv.SF000008')">
              </c-select>
        </el-form-item>
       </c-col>
                 S0000044 : Presented by
                  
       <c-col :span="12">
        <el-form-item label="Presented by" prop="bedgrp.rec.docprbrol">
            <c-select v-model="model.bedgrp.rec.docprbrol" style="width:100%" :placeholder="$t('other.please_enter')+'Presented by'">
              </c-select>
        </el-form-item>
       </c-col>
                 SF000004 : Document Amount
                  
       <c-col :span="12">
        <c-form-item :label="$t('letdrv.SF000004')" prop="bedgrp.cbs.max.cur">
            <c-input  v-model="model.bedgrp.cbs.max.cur" maxlength="3"  :placeholder="$t('other.please_enter')+$t('letdrv.SF000004')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Balance" prop="bedgrp.cbs.max.amt">
            <c-input  v-model="model.bedgrp.cbs.max.amt"  :placeholder="$t('other.please_enter')+'Balance'"></c-input>
        </c-form-item>
       </c-col>
                 S0000048 : Reference
                  
       <c-col :span="12">
        <c-form-item :label="$t('letdrv.S0000048')" prop="bedgrp.prb.pts.ref">
            <c-input  v-model="model.bedgrp.prb.pts.ref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('letdrv.S0000048')"></c-input>
        </c-form-item>
       </c-col>
                 S0000006 : 附加金额
                  
       <c-col :span="12">
        <el-form-item :label="$t('aammod.S0000006')" prop="bedgrp.cbs.opn2.cur">
            <c-select v-model="model.bedgrp.cbs.opn2.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('aammod.S0000006')">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item :label="$t('aammod.S0000006')" prop="bedgrp.cbs.max2.amt">
            <c-input  v-model="model.bedgrp.cbs.max2.amt"  :placeholder="$t('other.please_enter')+$t('aammod.S0000006')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Drag  Drop Sender" prop="betp.prbp.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.betp.prbp.ptsget.sdamod.dadsnd"  :placeholder="$t('other.please_enter')+'Drag  Drop Sender'"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="External Key of Address" prop="bedgrp.prb.pts.extkey">
            <c-input  v-model="model.bedgrp.prb.pts.extkey" maxlength="16"  :placeholder="$t('other.please_enter')+'External Key of Address'"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="" prop="betp.prbp.ptsget.sdamod.seainf">
            <c-input  v-model="model.betp.prbp.ptsget.sdamod.seainf"  :placeholder="$t('other.please_enter')+''"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onPrbpDet">
             {{$t('ptsp.CF000081')}}
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="名称" prop="bedgrp.prb.namelc">
            <c-input type="textarea" v-model="model.bedgrp.prb.namelc" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'名称'" ></c-input>
        </c-form-item>
        </c-col>
                 SF000003 : Received on
                  
       <c-col :span="12">
        <el-form-item :label="$t('letdrv.SF000003')" prop="bedgrp.rec.rcvdat">
            <c-date-picker type="date"  v-model="model.bedgrp.rec.rcvdat" style="width:100%"  :placeholder="$t('other.please_enter')+$t('letdrv.SF000003')"></c-date-picker>
        </el-form-item>
       </c-col>
                 SF000045 : Order Date
                  
       <c-col :span="12">
        <el-form-item label="Order Date" prop="bedgrp.rec.orddat">
            <c-date-picker type="date"  v-model="model.bedgrp.rec.orddat" style="width:100%"  :placeholder="$t('other.please_enter')+'Order Date'"></c-date-picker>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Address Block" prop="bedgrp.prb.pts.adrblk">
            <c-input type="textarea" v-model="model.bedgrp.prb.pts.adrblk" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Address Block'" ></c-input>
        </c-form-item>
        </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Chinese address" prop="bedgrp.prb.dbfadrblkcn">
            <c-input type="textarea" v-model="model.bedgrp.prb.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input>
        </c-form-item>
        </c-col>
                 SF000032 : Maturity Date
                  
       <c-col :span="12">
        <el-form-item :label="$t('letdrv.SF000032')" prop="bedgrp.rec.matdat">
            <c-date-picker type="date"  v-model="model.bedgrp.rec.matdat" style="width:100%"  :placeholder="$t('other.please_enter')+$t('letdrv.SF000032')"></c-date-picker>
        </el-form-item>
       </c-col>
                 SF000007 : Shipped on
                  
       <c-col :span="12">
        <el-form-item label="Date of Shipment" prop="bedgrp.rec.shpdat">
            <c-date-picker type="date"  v-model="model.bedgrp.rec.shpdat" style="width:100%"  :placeholder="$t('other.please_enter')+'Date of Shipment'"></c-date-picker>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="地址" prop="bedgrp.prb.adrelc">
            <c-input type="textarea" v-model="model.bedgrp.prb.adrelc" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'地址'" ></c-input>
        </c-form-item>
        </c-col>
                 SF000047 : Maturity Period
                  
       <c-col :span="12">
        <c-form-item label="Maturity Period" prop="bedgrp.blk.matper">
            <c-input type="textarea" v-model="model.bedgrp.blk.matper" maxlength="65" show-word-limit :placeholder="$t('other.please_enter')+'Maturity Period'" ></c-input>
        </c-form-item>
        </c-col>
                 SG000050 : 发票类型
                  
       <c-col :span="12">
        <el-form-item :label="$t('letdrv.SG000050')" prop="bedgrp.rec.invtyp">
            <c-select v-model="model.bedgrp.rec.invtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('letdrv.SG000050')">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.bedgrp.rec.dscinsflg">{{$t('letdrv.CF000046')}}</c-checkbox>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="No. of Existing and not Completely Processed  Document Sets" prop="ledgrp.rec.utlnbr">
            <c-input  v-model="model.ledgrp.rec.utlnbr"  :placeholder="$t('other.please_enter')+'No. of Existing and not Completely Processed  Document Sets'"></c-input>
        </c-form-item>
       </c-col>
                 SF000009 : Previous Drawings under this L/C -->
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import Ptsmsg from "~/views/Public/Ptsmsg";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letdrv/Event";
import Ptap from "~/views/Public/Ptap";

export default {
  components: { "c-ptsmsg": Ptsmsg, "c-ptap": Ptap },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  methods: { ...Event },
  created: function () {},
  computed: {
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
  },
};
</script>
<style>
</style>
