<template>
  <div class="eibs-tab">
    <!-- 顶部 -->
    <c-col :span="24">
      <c-col :span="11">
        <el-form-item
          label="Reference of L/C"
          prop="ledgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="16"
              placeholder="Please input Reference"
              style="width: 95%"
              :disabled="true"
            ></c-input>
            <template slot="footer">
              <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-button
                style="margin: 0 0"
                size="small"
                type="primary"
                :disabled="true"
                @click="onLetpButgetref"
              >
                Get
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="11" :offset="1">
        <el-form-item label="Name" prop="ledgrp.rec.nam">
          <c-input
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
            placeholder="Please input Name"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-col :span="11">
        <el-form-item
          label="Reference"
          prop="ltdgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.ltdgrp.rec.ownref"
              maxlength="16"
              placeholder="Please input Reference"
              style="width: 95%"
              :disabled="true"
            ></c-input>
            <template slot="footer">
              <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-button
                style="margin: 0 0"
                size="small"
                type="primary"
                :disabled="true"
                @click="onLetpButgetref"
              >
                Get
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="11" :offset="1">
        <el-form-item label="Name" prop="ltdgrp.rec.nam">
          <c-input
            v-model="model.ltdgrp.rec.nam"
            maxlength="40"
            placeholder="Please input Name"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- left -->
    <c-col :span="11">
      <c-col :span="24">
        <el-form-item label="Form of Transfer" prop="ltdgrp.rec.lcrtyp">
          <c-select
            v-model="model.ltdgrp.rec.lcrtyp"
            style="width: 100%"
            placeholder="Please select Form of L/C"
            :code="codes.lcrtyp1"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
          label="Responsible User"
          prop="lttp.usr.extkey"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.lttp.usr.extkey"
              maxlength="8"
              placeholder="Please input Reference"
              disabled
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin-left:10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
                <span
                  style="
                    font-size: 15px;
                    font-family: '宋体';
                    font-weight: bold;
                  "
                  >i</span
                >
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Nominal Amount" prop="ltdgrp.cbs.nom1.cur">
            <c-select
              v-model="model.ltdgrp.cbs.nom1.cur"
              style="width: 100%"
              placeholder="Please select cur"
              @keyup.enter.native="nom1CurEvent"
              :code="codes.curtxt1"
              disabled
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="7">
          <el-form-item label="" label-width="20px" prop="ledgrp.cbs.nom1.amt">
            <c-input-currency
              v-model="model.ltdgrp.cbs.nom1.amt"
              style="text-align: left; width: 100%"
              placeholder="Please input Nominal Amount"
              @keyup.enter.native="
                defaultFunction(
                  'ltdgrp.cbs.nom1.amt',
                  model.ltdgrp.cbs.nom1.amt
                )
              "
            ></c-input-currency>
          </el-form-item>
        </c-col>

        <c-col :span="5">
          <c-checkbox
            v-model="model.lttp.aamp.aammod.addamtflg"
            style="margin-left: 10px"
            disabled
            >Add. Amount</c-checkbox
          >
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="15">
          <el-form-item label="Amount Tolerance +/-" prop="ltdgrp.rec.nomtop">
            <c-input
              v-model.number="model.ltdgrp.rec.nomtop"
              maxlength="2"
              style="width: 100%"
              placeholder="Please input Amount Tolerance +/-"
              class="m-input-currency"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="9">
          <el-form-item label="" label-width="20px" prop="ltdgrp.rec.nomton">
            <c-input
              v-model.number="model.ltdgrp.rec.nomton"
              maxlength="2"
              style="width: 100%"
              placeholder="Please input Amount Tolerance - Negative"
              class="m-input-currency"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Amount Specification" prop="ltdgrp.rec.nomspc">
          <c-select
            v-model="model.ltdgrp.rec.nomspc"
            style="width: 100%"
            placeholder="Please select Amount Specification"
            :code="codes.nomspc"
            :disabled="true"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Maximum Amount" prop="ltdgrp.cbs.max.cur">
            <c-select
              v-model="model.ltdgrp.cbs.max.cur"
              style="width: 100%"
              placeholder="Please select cur"
              disabled
              :code="codes.curtxt1"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="" label-width="20px" prop="ltdgrp.cbs.max.amt">
            <c-input
              v-model="model.ltdgrp.cbs.max.amt"
              placeholder="Please input Maximum Amount"
              class="m-input-currency"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

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

        <c-col :span="24">
          <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="Please select Shipment Date"
            ></c-date-picker>
          </el-form-item>
        </c-col>


      <c-col :span="24">
        <el-form-item label="Expiring on" prop="ltdgrp.rec.expdat">
          <c-date-picker
            type="date"
            v-model="model.ltdgrp.rec.expdat"
            style="width: 100%"
            placeholder="Please select Expiring on"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="in" prop="ltdgrp.rec.expplc">
          <c-select
            v-model="model.ltdgrp.rec.expplc"
            style="width: 100%"
            placeholder="Please input in"
          ></c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Partial Shipment" prop="ltdgrp.rec.shppar">
          <c-select
            v-model="model.ltdgrp.rec.shppar"
            style="width: 100%"
            placeholder="Please select Partial Shipment"
            :code="codes.shptrss18"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Transshipment" prop="ltdgrp.rec.shptrss18">
          <c-select
            v-model="model.ltdgrp.rec.shptrss18"
            style="width: 100%"
            placeholder="Please select Transshipment"
            :code="codes.shptrss18"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Applicable Rules" prop="ltdgrp.rec.apprul">
          <c-select
            v-model="model.ltdgrp.rec.apprul"
            style="width: 100%"
            placeholder="Please select Applicable Rules"
            :code="codes.apprul1"
            @change="apprulChange"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
          label="Other Applicable Rules"
          prop="ltdgrp.rec.apprultxt"
        >
          <c-input
            v-model="model.ltdgrp.rec.apprultxt"
            maxlength="35"
            placeholder="Please input Other Applicable Rules"
            :disabled="model.ltdgrp.rec.apprul === 'OTHR' ? false : true"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
          label="Confirmation Instruct."
          prop="ltdgrp.rec.cnfins"
        >
          <c-select
            v-model="model.ltdgrp.rec.cnfins"
            style="width: 100%"
            placeholder="Please select Confirmation Instruct. Received"
            :code="codes.cnfflg1"
          >
          </c-select>
        </el-form-item>
      </c-col>
  
    </c-col>

    <!-- right -->
    <c-col :span="11" :offset="1">
      <c-ptap
        :model="model"
        :argadr="{
          title: '1st Beneficiary',
          grp: 'ltdgrp',
          rol: 'be1',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onBenpDet"
        :onlySearch="true"
      >
      </c-ptap>
      <c-col :span="24">

          <el-form-item label="" prop="ltdgrp.be1.pts.nam">
          <c-input
            v-model="model.ltdgrp.be1.pts.nam"
            maxlength="40"
            placeholder="Please input nam"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-ptap
        :model="model"
        :argadr="{
          title: 'Advising Bank',
          grp: 'ltdgrp',
          rol: 'adt',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onIsspDet"
      >
      </c-ptap>

      <c-ptap
        :model="model"
        :argadr="{
          title: '2nd Beneficiary',
          grp: 'ltdgrp',
          rol: 'be2',
        }"
        :disabled="true"
        @onSeainf="onSeainf"
        @onAplpDet="onAplpDet"
      >
      </c-ptap>
    </c-col>

    <!-- <c-col :span="12">
        <c-form-item label="Drag  Drop Sender" prop="lttp.ledget.sdamod.dadsnd">
            <c-input  v-model="model.lttp.ledget.sdamod.dadsnd"  :placeholder="$t('other.please_enter')+'Drag  Drop Sender'"></c-input>
        </c-form-item>
       </c-col>
                 SF000216 : Reference of L/C
                  
       <c-col :span="12">
        <c-form-item :label="$t('letp0.SF000158')" prop="ledgrp.rec.ownref">
            <c-input  v-model="model.ledgrp.rec.ownref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('letp0.SF000158')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000216')" prop="lttp.ledget.sdamod.seainf">
            <c-input  v-model="model.lttp.ledget.sdamod.seainf"  :placeholder="$t('other.please_enter')+$t('lttp.SF000216')"></c-input>
        </c-form-item>
       </c-col>
                 SF000217 : Name
                  
       <c-col :span="12">
        <c-form-item :label="$t('letp0.SF000168')" prop="ledgrp.rec.nam">
            <c-input  v-model="model.ledgrp.rec.nam" maxlength="40"  :placeholder="$t('other.please_enter')+$t('letp0.SF000168')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Drag  Drop Sender" prop="lttp.recget.sdamod.dadsnd">
            <c-input  v-model="model.lttp.recget.sdamod.dadsnd"  :placeholder="$t('other.please_enter')+'Drag  Drop Sender'"></c-input>
        </c-form-item>
       </c-col>
                 SF000191 : Reference
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000191')" prop="ltdgrp.rec.ownref">
            <c-input  v-model="model.ltdgrp.rec.ownref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('lttp.SF000191')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="" prop="lttp.recget.sdamod.seainf">
            <c-input  v-model="model.lttp.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="onLttpButgetref">
             {{$t('lttp.CG000370')}}
        </c-button>
       </c-col>
                 SF000195 : Name
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000195')" prop="ltdgrp.rec.nam">
            <c-input  v-model="model.ltdgrp.rec.nam" maxlength="40"  :placeholder="$t('other.please_enter')+$t('lttp.SF000195')"></c-input>
        </c-form-item>
       </c-col>
                 SF000192 : Form of Transfer
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000192')" prop="ltdgrp.rec.lcrtyp">
            <c-select v-model="model.ltdgrp.rec.lcrtyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000192')">
              </c-select>
        </el-form-item>
       </c-col>
                 SF000215 : 1st Beneficiary   Ref.
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000215')" prop="ltdgrp.be1.pts.ref">
            <c-input  v-model="model.ltdgrp.be1.pts.ref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('lttp.SF000215')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Drag  Drop Sender" prop="lttp.be1p.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.lttp.be1p.ptsget.sdamod.dadsnd"  :placeholder="$t('other.please_enter')+'Drag  Drop Sender'"></c-input>
        </c-form-item>
       </c-col>
                 SF000213 : Responsible User
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000213')" prop="lttp.usr.extkey">
            <c-input  v-model="model.lttp.usr.extkey" maxlength="8"  :placeholder="$t('other.please_enter')+$t('lttp.SF000213')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="" prop="lttp.usrget.sdamod.seainf">
            <c-input  v-model="model.lttp.usrget.sdamod.seainf"  :placeholder="$t('other.please_enter')+''"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="External Key of Address" prop="ltdgrp.be1.pts.extkey">
            <c-input  v-model="model.ltdgrp.be1.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="lttp.be1p.ptsget.sdamod.seainf">
            <c-input  v-model="model.lttp.be1p.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="onBe1pDet">
             {{$t('ptsp.CF000082')}}
        </c-button>
       </c-col>
                 SF000196 : Nominal Amount
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000196')" prop="ltdgrp.cbs.nom1.cur">
            <c-select v-model="model.ltdgrp.cbs.nom1.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000196')">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000196')" prop="ltdgrp.cbs.nom1.amt">
            <c-input  v-model="model.ltdgrp.cbs.nom1.amt"  :placeholder="$t('other.please_enter')+$t('lttp.SF000196')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.lttp.aamp.aammod.addamtflg">{{$t('lttp.CF000325')}}</c-checkbox>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Name of Party" prop="ltdgrp.be1.pts.nam">
            <c-input  v-model="model.ltdgrp.be1.pts.nam" maxlength="40"  :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
        </c-form-item>
       </c-col>
                 SF000197 : Amount Tolerance +/-
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000197')" prop="ltdgrp.rec.nomtop">
            <c-input  v-model="model.ltdgrp.rec.nomtop"  :placeholder="$t('other.please_enter')+$t('lttp.SF000197')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Amount Tolerance - Negative" prop="ltdgrp.rec.nomton">
            <c-input  v-model="model.ltdgrp.rec.nomton"  :placeholder="$t('other.please_enter')+'Amount Tolerance - Negative'"></c-input>
        </c-form-item>
       </c-col>
                 SF000193 : Advising Bank     Ref.
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000193')" prop="ltdgrp.adt.pts.ref">
            <c-input  v-model="model.ltdgrp.adt.pts.ref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('lttp.SF000193')"></c-input>
        </c-form-item>
       </c-col>
                 SF000198 : Amount Specification
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000198')" prop="ltdgrp.rec.nomspc">
            <c-select v-model="model.ltdgrp.rec.nomspc" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000198')">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Drag  Drop Sender" prop="lttp.adtp.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.lttp.adtp.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="ltdgrp.adt.pts.extkey">
            <c-input  v-model="model.ltdgrp.adt.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="lttp.adtp.ptsget.sdamod.seainf">
            <c-input  v-model="model.lttp.adtp.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="onAdtpDet">
             {{$t('ptsp.CF000081')}}
        </c-button>
       </c-col>
                 SF000199 : Maximum Amount
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000017')" prop="ltdgrp.cbs.max.cur">
            <c-select v-model="model.ltdgrp.cbs.max.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000017')">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000199')" prop="ltdgrp.cbs.max.amt">
            <c-input  v-model="model.ltdgrp.cbs.max.amt"  :placeholder="$t('other.please_enter')+$t('lttp.SF000199')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="名称" prop="ltdgrp.adt.namelc">
            <c-input type="textarea" v-model="model.ltdgrp.adt.namelc" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'名称'" ></c-input>
        </c-form-item>
        </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Address Block" prop="ltdgrp.adt.pts.adrblk">
            <c-input type="textarea" v-model="model.ltdgrp.adt.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="ltdgrp.adt.dbfadrblkcn">
            <c-input type="textarea" v-model="model.ltdgrp.adt.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input>
        </c-form-item>
        </c-col>
                 SF000200 : Issued on
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000200')" prop="ltdgrp.rec.opndat">
            <c-date-picker type="date"  v-model="model.ltdgrp.rec.opndat" style="width:100%"  :placeholder="$t('other.please_enter')+$t('lttp.SF000200')"></c-date-picker>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="地址" prop="ltdgrp.adt.adrelc">
            <c-input type="textarea" v-model="model.ltdgrp.adt.adrelc" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'地址'" ></c-input>
        </c-form-item>
        </c-col>
                 SF000202 : Shipment Date
                  
       <c-col :span="12">
        <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="$t('other.please_enter')+'Shipment Date'"></c-date-picker>
        </el-form-item>
       </c-col>
                 SF000205 : Expiring on
                  
       <c-col :span="12">
        <el-form-item label="Date of Expiry" prop="ltdgrp.rec.expdat">
            <c-date-picker type="date"  v-model="model.ltdgrp.rec.expdat" style="width:100%"  :placeholder="$t('other.please_enter')+'Date of Expiry'"></c-date-picker>
        </el-form-item>
       </c-col>
                 SF000194 : 2nd Beneficiary   Ref.
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000194')" prop="ltdgrp.be2.pts.ref">
            <c-input  v-model="model.ltdgrp.be2.pts.ref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('lttp.SF000194')"></c-input>
        </c-form-item>
       </c-col>
                 SF000206 : in
                  
       <c-col :span="12">
        <el-form-item label="Place of Expiry" prop="ltdgrp.rec.expplc">
            <c-select v-model="model.ltdgrp.rec.expplc" style="width:100%" :placeholder="$t('other.please_enter')+'Place of Expiry'">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Drag  Drop Sender" prop="lttp.be2p.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.lttp.be2p.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="ltdgrp.be2.pts.extkey">
            <c-input  v-model="model.ltdgrp.be2.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="lttp.be2p.ptsget.sdamod.seainf">
            <c-input  v-model="model.lttp.be2p.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="onBe2pDet">
             {{$t('ptsp.CF000081')}}
        </c-button>
       </c-col>
                 SF000207 : Partial Shipment
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000207')" prop="ltdgrp.rec.shppar">
            <c-select v-model="model.ltdgrp.rec.shppar" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000207')">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000207')" prop="ltdgrp.rec.shppars18">
            <c-select v-model="model.ltdgrp.rec.shppars18" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000207')">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="名称" prop="ltdgrp.be2.namelc">
            <c-input type="textarea" v-model="model.ltdgrp.be2.namelc" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'名称'" ></c-input>
        </c-form-item>
        </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Address Block" prop="ltdgrp.be2.pts.adrblk">
            <c-input type="textarea" v-model="model.ltdgrp.be2.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="ltdgrp.be2.dbfadrblkcn">
            <c-input type="textarea" v-model="model.ltdgrp.be2.dbfadrblkcn" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'Chinese address'" ></c-input>
        </c-form-item>
        </c-col>
                 SF000209 : Transhipment
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000209')" prop="ltdgrp.rec.shptrs">
            <c-select v-model="model.ltdgrp.rec.shptrs" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000209')">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000209')" prop="ltdgrp.rec.shptrss18">
            <c-select v-model="model.ltdgrp.rec.shptrss18" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000209')">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="地址" prop="ltdgrp.be2.adrelc">
            <c-input type="textarea" v-model="model.ltdgrp.be2.adrelc" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'地址'" ></c-input>
        </c-form-item>
        </c-col>
                 SF000359 : Applicable Rules
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.SF000359')" prop="ltdgrp.rec.apprul">
            <c-select v-model="model.ltdgrp.rec.apprul" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.SF000359')">
              </c-select>
        </el-form-item>
       </c-col>
                 SF000360 : Other Applicable Rules
                  
       <c-col :span="12">
        <c-form-item :label="$t('lttp.SF000360')" prop="ltdgrp.rec.apprultxt">
            <c-input type="textarea" v-model="model.ltdgrp.rec.apprultxt" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+$t('lttp.SF000360')" ></c-input>
        </c-form-item>
        </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.ltdgrp.rec.rmbflg">{{$t('lttp.CF000187')}}</c-checkbox>
       </c-col>
                 S0000329 : Confirmation Instruct.
                  
       <c-col :span="12">
        <el-form-item :label="$t('lttp.S0000329')" prop="ltdgrp.rec.cnfins">
            <c-select v-model="model.ltdgrp.rec.cnfins" style="width:100%" :placeholder="$t('other.please_enter')+$t('lttp.S0000329')">
              </c-select>
        </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/Lttopn/Event";
import Ptap from "~/views/Public/Ptap";
import Utils from "~/utils";

export default {
  components: { "c-ptap": Ptap },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  computed: {
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
    // resflg: {
    //   get() {
    //     return this.model.ltdgrp.rec.resflg != "";
    //   },
    //   set(val) {
    //     this.model.ltdgrp.rec.resflg = val ? "X" : "";
    //   },
    // },
  },
  methods: {
    ...Event,
    nom1CurEvent() {
      this.executeDefault("ltdgrp.cbs.nom1.cur").then((res) => {
        if (res.respCode == SUCCESS) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
    apprulChange(v) {
      if (v !== "OTHR") {
        this.model.ltdgrp.rec.apprultxt = "";
      }
    },
  },
  created: function () {},
};
</script>
<style>
.centerLable {
  margin-left: -10px;
  height: 32px;
  line-height: 32px;
  padding-bottom: 2px;
}
.marginLable {
  padding-left: 160px;
}
</style>