<template>
  <!-- <div class="eibs-tab"> -->
  <c-row>
    <!-- ====================左边======================= -->
    <c-col :span="11">
      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '第二通知行',
            grp: 'ltdgrp',
            rol: 'a2t',
          }"
          @onSeainf="onSeainf"
          @onAplpDet="onA2tpDet"
        >
        </c-ptap>
      </c-col>
      <c-col :span="24">
        <el-form-item label="第二通知行名称" prop="ltdgrp.a2t.pts.nam">
          <c-input
            v-model="model.ltdgrp.a2t.pts.nam"
            maxlength="40"
            placeholder="请输入第二通知行名称"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '保兑行',
            grp: 'ltdgrp',
            rol: 'con',
          }"
          @onSeainf="onSeainf"
          @onAplpDet="onConpDet"
        >
        </c-ptap>
      </c-col>
      <c-col :span="24">
        <el-form-item label="保兑行名称" prop="ltdgrp.con.pts.nam">
          <c-input
            v-model="model.ltdgrp.con.pts.nam"
            maxlength="40"
            placeholder="请输入保兑行名称"
          ></c-input>
        </el-form-item>
      </c-col>
      <!-- <c-col :span="24">
        <el-form-item label="2nd Advising Bank" prop="ltdgrp.a2t.pts.ref">
            <c-input  v-model="model.ltdgrp.a2t.pts.ref" maxlength="16"  placeholder="请输入2nd Advising Bank"></c-input>
        </el-form-item>
       </c-col> -->
      <!-- <c-col :span="24">
        <el-form-item label="External Key of Address" prop="ltdgrp.a2t.pts.extkey">
            <c-input  v-model="model.ltdgrp.a2t.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
        </el-form-item> -->
      <!-- <c-col :span="24">
        <el-form-item label="External Key of Address" prop="ltdgrp.a2t.pts.extkey">
            <c-input  
            v-model="model.ltdgrp.a2t.pts.extkey" 
            maxlength="16"  
            placeholder="请输入External Key of Address"
            ></c-input>
        </el-form-item>
     <c-col :span="18">
        <el-form-item label="External Key of Address" prop="ltdgrp.a2t.pts.extkey">
            <c-input  
            v-model="model.ltdgrp.con.pts.extkey" 
            maxlength="16"  
            placeholder="请输入External Key of Address"
            @keyup.enter.native="showGridPromptDialog('ltdgrp.a2t.pts.extkey')"
            ></c-input>
        </el-form-item>
       </c-col>
             <c-col :span="2">
                <el-form-item label="" label-width="5px">
                    <c-button
                        size="small"
                        type="primary"
                        icon="el-icon-search"
                        @click="onSeainf('ltdgrp.a2t.pts.extkey')"
                        ></c-button
                    >
                </el-form-item>
            </c-col>
            <c-col :span="4">
                <el-form-item label="" label-width="5px">
                    <c-button size="small" type="primary" @click="onAplpDet">
                        Details
                    </c-button>
                </el-form-item>
            </c-col>
       </c-col>   -->
      <!-- <c-col :span="24">
        <el-form-item label="名称" prop="ltdgrp.a2t.namelc">
            <c-input type="textarea" v-model="model.ltdgrp.a2t.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col>     
        <c-col :span="24">
        <el-form-item label="地址" prop="ltdgrp.a2t.adrelc">
            <c-input type="textarea" v-model="model.ltdgrp.a2t.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </c-col>    -->
      <!-- <c-col :span="24">
        <el-form-item label="Confirming Bank" prop="ltdgrp.con.pts.ref">
            <c-input  v-model="model.ltdgrp.con.pts.ref" maxlength="16"  placeholder="请输入Confirming Bank"></c-input>
        </el-form-item>
       </c-col>  
       <c-col :span="24">
        <el-form-item label="External Key of Address" prop="ltdgrp.con.pts.extkey">
            <c-input  
            v-model="model.ltdgrp.con.pts.extkey" 
            maxlength="16"  
            placeholder="请输入External Key of Address"
            ></c-input>
        </el-form-item>
     <c-col :span="18">
        <el-form-item label="External Key of Address" prop="ltdgrp.con.pts.extkey">
            <c-input  
            v-model="model.ltdgrp.con.pts.extkey" 
            maxlength="16"  
            placeholder="请输入External Key of Address"
            @keyup.enter.native="showGridPromptDialog('ltdgrp.con.pts.extkey')"
            ></c-input>
        </el-form-item>
       </c-col>
             <c-col :span="2">
                <el-form-item label="" label-width="5px">
                    <c-button
                        size="small"
                        type="primary"
                        icon="el-icon-search"
                        @click="onSeainf('ltdgrp.con.pts.extkey')"
                        ></c-button
                    >
                </el-form-item>
            </c-col>
            <c-col :span="4">
                <el-form-item label="" label-width="5px">
                    <c-button size="small" type="primary" @click="onAplpDet">
                        Details
                    </c-button>
                </el-form-item>
            </c-col>
       </c-col>-->
      <!-- <c-col :span="24">
        <el-form-item label="External Key of Address" prop="ltdgrp.con.pts.extkey">
            <c-input  v-model="model.ltdgrp.con.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
        </el-form-item>
       </c-col> -->
      <!-- <c-col :span="24">
        <el-form-item label="名称" prop="ltdgrp.con.namelc">
            <c-input type="textarea" v-model="model.ltdgrp.con.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col>
       <c-col :span="24">
        <el-form-item label="地址" prop="ltdgrp.con.adrelc">
            <c-input type="textarea" v-model="model.ltdgrp.con.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </c-col>
    </c-col>-->
    </c-col>
    <!-- ====================右边======================= -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '偿付行',
            grp: 'ltdgrp',
            rol: 'rmt',
          }"
          @onSeainf="onSeainf"
          @onAplpDet="onRmtpDet"
        >
        </c-ptap>
      </c-col>
      <c-col :span="24">
        <el-form-item label="偿付行名称" prop="ltdgrp.rmt.pts.nam">
          <c-input
            v-model="model.ltdgrp.rmt.pts.nam"
            maxlength="40"
            placeholder="偿付行名称"
          ></c-input>
        </el-form-item>
      </c-col>
      <!-- <c-col :span="24">
        <el-form-item label="Reimbursement Bank" prop="ltdgrp.rmt.pts.ref">
            <c-input  v-model="model.ltdgrp.rmt.pts.ref" maxlength="16"  placeholder="请输入Reimbursement Bank"></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="24">
        <el-form-item label="External Key of Address" prop="ltdgrp.rmt.pts.extkey">
            <c-input  
            v-model="model.ltdgrp.rmt.pts.extkey" 
            maxlength="16"  
            placeholder="请输入External Key of Address"
            ></c-input>
        </el-form-item>
     <c-col :span="18">
        <el-form-item label="External Key of Address" prop="ltdgrp.rmt.pts.extkey">
            <c-input  
            v-model="model.ltdgrp.rmt.pts.extkey" 
            maxlength="16"  
            placeholder="请输入External Key of Address"
            @keyup.enter.native="showGridPromptDialog('ltdgrp.rmt.pts.extkey')"
            ></c-input>
        </el-form-item>
       </c-col>
             <c-col :span="2">
                <el-form-item label="" label-width="5px">
                    <c-button
                        size="small"
                        type="primary"
                        icon="el-icon-search"
                        @click="onSeainf('ltdgrp.rmt.pts.extkey')"
                        ></c-button
                    >
                </el-form-item>
            </c-col>
            <c-col :span="4">
                <el-form-item label="" label-width="5px">
                    <c-button size="small" type="primary" @click="onAplpDet">
                        Details
                    </c-button>
                </el-form-item>
            </c-col>
       </c-col> -->
      <!-- <c-col :span="24">
        <el-form-item label="External Key of Address" prop="ltdgrp.rmt.pts.extkey">
            <c-input  v-model="model.ltdgrp.rmt.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
        </el-form-item>
       </c-col>        -->
      <!-- <c-col :span="24">
        <el-form-item label="名称" prop="ltdgrp.rmt.namelc">
            <c-input type="textarea" v-model="model.ltdgrp.rmt.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col> 
        <c-col :span="24">
        <el-form-item label="地址" prop="ltdgrp.rmt.adrelc">
            <c-input type="textarea" v-model="model.ltdgrp.rmt.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </c-col> -->
      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: 'Available with Bank',
            grp: 'ltdgrp',
            rol: 'avt',
          }"
          @onSeainf="onSeainf"
          @onAplpDet="onAvtpDet"
        >
        </c-ptap>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Available with Bank" prop="ltdgrp.avt.pts.nam">
          <c-input
            v-model="model.ltdgrp.avt.pts.nam"
            maxlength="40"
            placeholder="Available with Bank"
          ></c-input>
        </el-form-item>
      </c-col>
      <!-- <c-col :span="24">
        <el-form-item label="Available with Bank" prop="ltdgrp.avt.pts.ref">
            <c-input  v-model="model.ltdgrp.avt.pts.ref" maxlength="16"  placeholder="请输入Available with Bank"></c-input>
        </el-form-item>
       </c-col>   
    <c-col :span="24">
        <el-form-item label="External Key of Address" prop="ltdgrp.avt.pts.extkey">
            <c-input  
            v-model="model.ltdgrp.avt.pts.extkey" 
            maxlength="16"  
            placeholder="请输入External Key of Address"
            ></c-input>
        </el-form-item>
     <c-col :span="18">
        <el-form-item label="External Key of Address" prop="ltdgrp.avt.pts.extkey">
            <c-input  
            v-model="model.ltdgrp.avt.pts.extkey" 
            maxlength="16"  
            placeholder="请输入External Key of Address"
            @keyup.enter.native="showGridPromptDialog('ltdgrp.avt.pts.extkey')"
            ></c-input>
        </el-form-item>
       </c-col>
             <c-col :span="2">
                <el-form-item label="" label-width="5px">
                    <c-button
                        size="small"
                        type="primary"
                        icon="el-icon-search"
                        @click="onSeainf('ltdgrp.avt.pts.extkey')"
                        ></c-button
                    >
                </el-form-item>
            </c-col>
            <c-col :span="4">
                <el-form-item label="" label-width="5px">
                    <c-button size="small" type="primary" @click="onAplpDet">
                        Details
                    </c-button>
                </el-form-item>
            </c-col>
       </c-col> -->
      <!-- <c-col :span="24">
        <el-form-item label="External Key of Address" prop="ltdgrp.avt.pts.extkey">
            <c-input  v-model="model.ltdgrp.avt.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
        </el-form-item>
       </c-col>        -->
      <!-- <c-col :span="24">
        <el-form-item label="名称" prop="ltdgrp.avt.namelc">
            <c-input type="textarea" v-model="model.ltdgrp.avt.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col> 
        <c-col :span="24">
        <el-form-item label="地址" prop="ltdgrp.avt.adrelc">
            <c-input type="textarea" v-model="model.ltdgrp.avt.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </c-col>   
    </c-col>   -->
      <!-- <c-col :span="24">
        <c-button size="small" type="primary"  @click="onA2tpDet">
            Details
        </c-button>
       </c-col>
                  
       <c-col :span="24">
        <el-form-item label="" prop="lttp.rmtp.ptsget.sdamod.seainf">
            <c-input  v-model="model.lttp.rmtp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="24">
        <c-button size="small" type="primary"  @click="onRmtpDet">
            Details
        </c-button>
       </c-col>
       
       <c-col :span="24">
        <el-form-item label="Address Block" prop="ltdgrp.a2t.pts.adrblk">
            <c-input type="textarea" v-model="model.ltdgrp.a2t.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="Chinese address" prop="ltdgrp.a2t.dbfadrblkcn">
            <c-input type="textarea" v-model="model.ltdgrp.a2t.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="24">
        <el-form-item label="Address Block" prop="ltdgrp.rmt.pts.adrblk">
            <c-input type="textarea" v-model="model.ltdgrp.rmt.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="Chinese address" prop="ltdgrp.rmt.dbfadrblkcn">
            <c-input type="textarea" v-model="model.ltdgrp.rmt.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </c-col> -->

      <!-- <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="lttp.a2tp.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.lttp.a2tp.ptsget.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="lttp.rmtp.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.lttp.rmtp.ptsget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col>         
       <c-col :span="12">
        <el-form-item label="" prop="lttp.a2tp.ptsget.sdamod.seainf">
            <c-input  v-model="model.lttp.a2tp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>     
     
       <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="lttp.conp.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.lttp.conp.ptsget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col>
      
       <c-col :span="12">
        <el-form-item label="" prop="lttp.conp.ptsget.sdamod.seainf">
            <c-input  v-model="model.lttp.conp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onConpDet">
            Details
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Address Block" prop="ltdgrp.con.pts.adrblk">
            <c-input type="textarea" v-model="model.ltdgrp.con.pts.adrblk" maxlength="35" show-word-limit placeholder="请输入Address Block" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Chinese address" prop="ltdgrp.con.dbfadrblkcn">
            <c-input type="textarea" v-model="model.ltdgrp.con.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </c-col>-->
    </c-col>
    <c-edit-table :model="model" v-bind="ptsaddg">
      <el-table-column label="操作" align="center">
        <template slot-scope="scope">
          <el-button
            size="mini"
            @click="handleEdit(scope.$index, scope.row)"
            type="primary"
            >详情</el-button
          >
        </template>
      </el-table-column>
    </c-edit-table>
  </c-row>
  <!-- </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";
export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [CommonProcess],
  components: { "c-ptap": Ptap },
  data() {
    return {
      ptsaddg: {
        columns: [
          {
            title: "角色",
            width: "120px",
            dataIndex: "rol",
            show: "select",
          },
          {
            title: "机构实体",
            width: "180px",
            dataIndex: "ptyextkey",
            show: "input",
          },
          {
            title: "名称",
            width: "300px",
            dataIndex: "nam",
          },
          {
            title: "参考地址",
            width: "300px",
            dataIndex: "ref",
          },
        ],
        urls: "lttp.ptsaddp.ptsaddg",
      },
    };
  },
  methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>
