<template>
  <div class="eibs-tab">

    <el-col :span="11">
        <c-col :span="24">
        <el-form-item label="Applicant's Bank Ref." prop="lidgrp.ini.pts.ref">
            <c-input 
            disabled
             v-model="model.lidgrp.ini.pts.ref" maxlength="16"  placeholder="请输入Applicant's Bank"></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="24">
        <el-form-item label="External Key of Address" prop="lidgrp.ini.pts.extkey">
            <c-fullbox>
            <c-input 
            disabled
             v-model="model.lidgrp.ini.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click=""
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
                @click=""
              >
                获取
              </c-button>
            </template>
            </c-fullbox>
        </el-form-item>
       </c-col>
        <!-- <c-col :span="24">
        <el-form-item label="名称" prop="lidgrp.ini.namelc">
            <c-input type="textarea" v-model="model.lidgrp.ini.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col> -->
        <c-col :span="24">
        <el-form-item label="Address Block" prop="lidgrp.ini.pts.adrblk">
            <c-input 
            :rows="4"
            type="textarea" v-model="model.lidgrp.ini.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="lidgrp.ini.dbfadrblkcn">
            <c-input type="textarea" v-model="model.lidgrp.ini.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </c-col>

        <c-col :span="24">
        <el-form-item label="地址" prop="lidgrp.ini.adrelc">
            <c-input type="textarea" v-model="model.lidgrp.ini.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </c-col> -->
        <c-col :span="24">
        <el-form-item label="Reimbursement Bank Ref." prop="lidgrp.rmb.pts.ref">
            <c-input  v-model="model.lidgrp.rmb.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="lidgrp.rmb.pts.extkey">
            <c-fullbox>
            <c-input
              v-model="model.lidgrp.rmb.pts.extkey"
              maxlength="16"
              disabled
              placeholder="请输入Reference"
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click=""
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
                @click=""
              >
                获取
              </c-button>
            </template>
          </c-fullbox>
        
        </el-form-item>
       </c-col>
    <c-col :span="24">
        <el-form-item label="Name of Party" prop="lidgrp.rmb.pts.nam">
            <c-input  v-model="model.lidgrp.rmb.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></c-input>
        </el-form-item>
       </c-col>
    <c-col :span="24">
        <el-form-item label="Requested Confirmation party Ref." prop="lidgrp.con.pts.ref">
            <c-input  v-model="model.lidgrp.con.pts.ref" maxlength="16"  placeholder="请输入Requested Confirmation party"></c-input>
            
        </el-form-item>
       </c-col>
       <c-col :span="24">
        <el-form-item label="External Key of Address" prop="lidgrp.con.pts.extkey">
            <c-fullbox>
            <c-input
             v-model="model.lidgrp.con.pts.extkey"
              maxlength="16"
              disabled
              placeholder="请输入Reference"
              @keyup.enter.native="showGridPromptDialog('lidgrp.con.pts.extkey')"
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click=""
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
                @click=""
              >
                获取
              </c-button>
            </template>
          </c-fullbox>
        
        </el-form-item>
       </c-col>
        <!-- <c-col :span="24">
        <el-form-item label="名称" prop="lidgrp.con.namelc">
            <c-input type="textarea" v-model="model.lidgrp.con.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col> -->
                  
       <c-col :span="24">
        <el-form-item label="Address Block" prop="lidgrp.con.pts.adrblk">
            <c-input 
            :rows="4"
            type="textarea" v-model="model.lidgrp.con.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="lidgrp.con.dbfadrblkcn">
            <c-input type="textarea" v-model="model.lidgrp.con.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="24">
        <el-form-item label="地址" prop="lidgrp.con.adrelc">
            <c-input type="textarea" v-model="model.lidgrp.con.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </c-col> -->
    </el-col>
<!-- ==========================右 ===================================-->
    <el-col :span="11" :offset="1">
         <c-col :span="24">
        <el-form-item label="2nd Advising Bank" prop="lidgrp.a2b.pts.ref">
            <c-input  v-model="model.lidgrp.a2b.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="lidgrp.a2b.pts.extkey">
        
            <c-fullbox>
            <c-input
              v-model="model.lidgrp.a2b.pts.extkey"
              maxlength="16"
              @keyup.enter.native="showGridPromptDialog('lidgrp.a2b.pts.extkey')"
              placeholder=""
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click=""
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
                @click=""
              >
                获取
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
       </c-col>
       <!-- <c-col :span="24">
        <el-form-item label="名称" prop="lidgrp.a2b.namelc">
            <c-input type="textarea" v-model="model.lidgrp.a2b.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col> -->
        <c-col :span="24">
        <el-form-item label="Address Block" prop="lidgrp.a2b.pts.adrblk">
            <c-input 
            :rows="4"
            type="textarea" v-model="model.lidgrp.a2b.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="lidgrp.a2b.dbfadrblkcn">
            <c-input type="textarea" v-model="model.lidgrp.a2b.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </c-col>
        <c-col :span="24">
        <el-form-item label="地址" prop="lidgrp.a2b.adrelc">
            <c-input type="textarea" v-model="model.lidgrp.a2b.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </c-col> -->
        <c-col :span="24">
        <el-form-item label="Available With Bank Ref." prop="lidgrp.avb.pts.ref">
            <c-input  
            disabled
            v-model="model.lidgrp.avb.pts.ref" maxlength="16"  placeholder="请输入Reference for Address Optional"></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="24">
       <el-form-item label="Extkey" prop="lidgrp.avb.pts.extkey">
        <c-fullbox>
            <c-input
              v-model="model.lidgrp.avb.pts.extkey"
              maxlength="16"
              disabled
              placeholder=""
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click=""
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
              <c-button
                style="margin: 0 0"
                size="small"
                type="primary"
                @click=""
              >
                获取
              </c-button>
            </template>
          </c-fullbox>
       </el-form-item>
       </c-col>
       <!-- <c-col :span="24">
        <el-form-item label="名称" prop="lidgrp.avb.namelc">
            <c-input type="textarea" v-model="model.lidgrp.avb.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col> -->
        <c-col :span="24">
        <el-form-item label="Address Block" prop="lidgrp.avb.pts.adrblk">
            <c-input 
            :rows="4"
            disabled
            type="textarea" v-model="model.lidgrp.avb.pts.adrblk" maxlength="135" show-word-limit placeholder="请输入Address Block" ></c-input>
        </el-form-item>
        </c-col>
                  
       <!-- <c-col :span="24">
        <el-form-item label="Chinese address" prop="lidgrp.avb.dbfadrblkcn">
            <c-input type="textarea" v-model="model.lidgrp.avb.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </c-col>
        <c-col :span="24">
        <el-form-item label="地址" prop="lidgrp.avb.adrelc">
            <c-input type="textarea" v-model="model.lidgrp.avb.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </c-col> -->
    </el-col>
                                                
       
                                                    
      
                                   
       <!-- <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="litp.inip.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.litp.inip.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="litp.a2bp.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.litp.a2bp.ptsget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col> -->
                  
       
                  
       <!-- <c-col :span="12">
        <el-form-item label="" prop="litp.inip.ptsget.sdamod.seainf">
            <c-input  v-model="model.litp.inip.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col> -->
                  
       <!-- <c-col :span="12">
        <c-button size="small" type="primary"  @click="onInipDet">
            Details
        </c-button>
       </c-col> -->
                  
       
                  
       <!-- <c-col :span="12">
        <el-form-item label="" prop="litp.a2bp.ptsget.sdamod.seainf">
            <c-input  v-model="model.litp.a2bp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col> -->
                  
       <!-- <c-col :span="12">
        <c-button size="small" type="primary"  @click="onA2bpDet">
            Details
        </c-button>
       </c-col> -->
                  
      
                  
       
                  
       
                  
       
                  
      
                  
       
                                                    
       
                  
	<!-- <c-col :span="12">
	    <span  v-text="model.litp.avblab"   data-path=".litp.avblab" > </span>
	</c-col> -->
                  
       
                  
       <!-- <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="litp.rmbp.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.litp.rmbp.ptsget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col> -->
                  
      
                  
       <!-- <c-col :span="12">
        <el-form-item label="" prop="litp.rmbp.ptsget.sdamod.seainf">
            <c-input  v-model="model.litp.rmbp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onRmbpDet">
            Details
        </c-button>
       </c-col> -->
                  
       
                                                    
       
                  
       <!-- <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="litp.conp.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.litp.conp.ptsget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col> -->
                  
       
                  
       <!-- <c-col :span="12">
        <el-form-item label="" prop="litp.conp.ptsget.sdamod.seainf">
            <c-input  v-model="model.litp.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="23">
        <div class="e-table-wrapper">
            <c-table
                :data="model.litp.ptsaddp.ptsaddg"
                style="width: 100%"
                >
                <c-table-column
                  prop="rol"
                  label="Role"
                  sortable
                  width="300">
                </c-table-column>
                <c-table-column
                  prop="ptyextkey"
                  label="Party"
                  sortable
                  width="300">
                </c-table-column>
                <c-table-column
                  prop="nam"
                  label="Name of Party"
                  sortable
                  width="300">
                </c-table-column>
                <c-table-column
                  prop="ref"
                  label="Reference for Address"
                  sortable
                  width="300">
                </c-table-column>
                <el-table-column label="" prop="det" width="80px" fixed="right">
                    <template slot-scope="scope" slot="header">
                        <el-button
                            circle
                            style="padding:4px"
                            class="el-icon-plus"
                            size="mini"
                            @click="addRow(scope)"
                        >
                        </el-button>
                        <el-button
                            style="padding:4px"
                            circle
                            class="el-icon-minus"
                            size="mini"
                            @click="removeRow(scope)"
                        >
                        </el-button>
                    </template>
                    <template slot-scope="scoped">
                        <el-button
                            style="margin-left:0"
                            size="small"
                            type="primary"
                            @click="detail1(scoped.$index, scoped.row)"
                            >详情</el-button
                        >
                    </template>
                </el-table-column>
              </c-table>
              
       </div>
       </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Litame/Event"

export default {
    inject: ['root'],
    props:["model","codes"],
    mixins: [commonProcess],
    data(){
        return {

        }
    },
    methods:{...Event},
    created:function(){

    }
}
</script>
<style>

</style>