<template>
  <div class="eibs-tab" >        
    <!--   <el-col :span="12">
        <el-form-item label="Drag  Drop Sender" >
            <c-input  v-model="model.ditp.recget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </el-col>             
    -->
       <el-col :span="8">
        <el-form-item label="参考号">
            <c-input  v-model="model.didgrp.rec.ownref" maxlength="16"  placeholder="请输入Reference"></c-input>
        </el-form-item>
       </el-col>
       <el-col :span="4">
           <el-form-item label="" label-width="15px">
                <c-button size="small" type="primary;width:10%"  @click="onSeainf">i</c-button>
                <c-button size="small" type="primary"  @click="onDitpButgetref">
                获取
                </c-button>
           </el-form-item>
        </el-col>                     

       <!--           
       <el-col :span="10">
        <el-form-item label="i">
            <c-input  v-model="model.ditp.recget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </el-col>  
       -->
         
                                   
       <el-col :span="12" >
        <el-form-item label="摘要">
            <c-input align="middle"  v-model="model.didgrp.rec.nam" maxlength="40"  placeholder="请输入Externally Displayed Name to Identify the Contract"></c-input>
        </el-form-item>
       </el-col>  

        <el-col :span="8">
            <el-form-item label="所属客户经理">
                <c-input  v-model="model.ditp.usr.extkey" maxlength="8"  placeholder="请输入User ID"></c-input>
            </el-form-item>
        </el-col>
        <el-col :span="4">
            <el-form-item label="" label-width="15px">
                <c-checkbox v-model="model.didgrp.rec.resflg">Reserved Contract</c-checkbox>
            </el-form-item>
        </el-col>               
                                   
       <el-col :span="12">
        <el-form-item label="申请人           参考号">
            <c-input  v-model="model.didgrp.apl.pts.ref" maxlength="12"  placeholder="请输入申请人           参考号"></c-input>
        </el-form-item>
       </el-col>             
                  
        <el-col :span="6">
            <el-form-item label="信用证金额">
                <c-select v-model="model.didgrp.cbs.nom1.cur" style="width:100%" placeholder="请选择Currency">
                </c-select>
            </el-form-item>
        </el-col>
        <el-col :span="6" >
            <el-form-item style="text-align:left" label-width="20px">
                <c-input  v-model.lazy="model.didgrp.cbs.nom1.amt" style="text-align:left;width:100%" placeholder="请输入信用证金额"></c-input>
            </el-form-item>
        </el-col>
      
        <!--                           
       <el-col :span="12">
        <el-form-item label=" ">
            <c-input  v-model="model.ditp.usrget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </el-col>             
                  
       <el-col :span="12">
        <el-form-item label="Drag  Drop Sender">
            <c-input  v-model="model.ditp.aplp.ptsget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </el-col>  
       -->           
                  
       <el-col :span="8">
        <el-form-item label="Extkey">
            <c-input  v-model="model.didgrp.apl.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
        </el-form-item>
       </el-col>
       <el-col :span="4">
           <el-form-item label="" label-width="15px">
                <c-button size="small" type="primary;width:10%"  @click="onSeainf">i</c-button>
                <c-button size="small" type="primary"  @click="onAplpDet">
                Details
                </c-button>
           </el-form-item>
        </el-col>                 

       <!--           
       <el-col :span="10">
        <el-form-item label="">
            <c-input  v-model="model.ditp.aplp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </el-col>          -->   
                  

       <el-col :span="12">
        <el-form-item label="大写金额">
            <c-input  v-model="model.ditp.amt" maxlength="76"  placeholder="请输入大写金额"></c-input>
        </el-form-item>
       </el-col>      

                  
       <el-col :span="12">
        <el-form-item label="名称">
            <c-input type="textarea" v-model="model.didgrp.apl.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </el-col>
       <!--           
       <el-col :span="12">
        <el-form-item label="Address Block">
            <c-input type="textarea" v-model="model.didgrp.apl.pts.adrblk" maxlength="35" show-word-limit placeholder="请输入Address Block" ></c-input>
        </el-form-item>
        </el-col>
                  
       <el-col :span="12">
        <el-form-item label="Chinese address">
            <c-input type="textarea" v-model="model.didgrp.apl.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </el-col>
        -->          
        <el-col :span="6">
        <el-form-item label="上下浮动限额">
            <c-input  v-model="model.didgrp.rec.nomtop"  placeholder="请输入Amount Tolerance - Positive"></c-input>
        </el-form-item>
       </el-col>             
                  
       <el-col :span="6" style="text-align:left" >
        <el-form-item label="-" style="text-align:left;margin-left: 12px;" label-width="20px">
            <c-input  v-model="model.didgrp.rec.nomton" maxlength="6"  placeholder="请输入Amount Tolerance - Negative"></c-input>
        </el-form-item>
       </el-col>  
                  
       <el-col :span="12">
        <el-form-item label="地址">
            <c-input type="textarea" v-model="model.didgrp.apl.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </el-col>
                                   
       <el-col :span="12" >
         <el-form-item label="">
        </el-form-item>
       </el-col>    
                                   
       <el-col :span="7">
        <el-form-item label="邮编">
            <c-input  v-model="model.didgrp.apl.pts.youzbm" maxlength="6"  placeholder="请输入邮编"></c-input>
        </el-form-item>
       </el-col>                   
       <el-col :span="5">
        <el-form-item label="电话" label-width="40px" style="margin-left: 12px;">
            <c-input  v-model="model.didgrp.apl.pts.dihdig" maxlength="16"  placeholder="请输入电话"></c-input>
        </el-form-item>
       </el-col> 

       <el-col :span="12" >
         <el-form-item label="">
        </el-form-item>
       </el-col>

       <el-col :span="12">
        <el-form-item label="申请人账号">
            <c-select v-model="model.didgrp.apl.pts.extact" style="width:100%" placeholder="请选择External Account">
              </c-select>
        </el-form-item>
       </el-col>
                                   
       <el-col :span="7">
        <el-form-item label="信用证最大金额">
            <c-select v-model="model.didgrp.cbs.max.cur" style="width:100%" placeholder="请选择Currency">
              </c-select>
        </el-form-item>
       </el-col>
                  
       <el-col :span="5">
        <el-form-item label="" label-width="20px">
            <c-input  v-model="model.didgrp.cbs.max.amt"  placeholder="请输入信用证最大金额" :readonly="true"></c-input>
        </el-form-item>
       </el-col>                 
                                                                     
       <el-col :span="12">
        <el-form-item label="申请人开户行    联行行号">
            <c-input  v-model="model.didgrp.apb.pts.bankno" maxlength="20"  placeholder="请输入Number of bank"></c-input>
        </el-form-item>
       </el-col>             
                  
       <el-col :span="12">
        <el-form-item label="贸易类型">
            <c-select v-model="model.didgrp.rec.mytype" style="width:100%" placeholder="请选择贸易类型">
              </c-select>
        </el-form-item>
       </el-col>
                                   
       <el-col :span="12">
        <el-form-item label="联行名称 ">
            <c-input type="textarea" v-model="model.didgrp.apb.pts.jigomc" maxlength="35" show-word-limit placeholder="请输入联行名称  电证用" ></c-input>
        </el-form-item>
        </el-col>
                                   
       <el-col :span="12">
        <el-form-item label="开证日期">
            <el-date-picker type="date"  v-model="model.didgrp.rec.opndat" style="width:100%"  placeholder="请选择Date L/C Opened/Issued"></el-date-picker>
        </el-form-item>
       </el-col>

    <el-col :span="12">
        <el-form-item label="受益人           参考号">
            <c-input  v-model="model.didgrp.ben.pts.ref" maxlength="16"  placeholder="请输入受益人           参考号"></c-input>
        </el-form-item>
       </el-col>  

       <!--           
	<el-col :span="6">
	    <span  v-text="model.ditp.zchday"   data-path=".ditp.zchday" > </span>
	</el-col> -->
    <el-col :span="12">
        <el-form-item label="最迟货物装运日/最迟服务提供日">
            <el-date-picker type="date"  v-model="model.didgrp.rec.shpdat" style="width:100%"  placeholder="请选择Shipment Date"></el-date-picker>
        </el-form-item>
       </el-col>

    <el-col :span="8">
        <el-form-item label="Extkey">
            <c-input  v-model="model.didgrp.ben.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
        </el-form-item>
       </el-col>
       <el-col :span="4">
           <el-form-item label="" label-width="12px">
            <c-button size="small" type="primary;width:10%"  @click="onSeainf">i</c-button>
            <c-button size="small" type="primary"  @click="onBenpDet">
            Details
            </c-button>
           </el-form-item>
        </el-col>             
                                  
       <el-col :span="12">
        <el-form-item label="有效日期">
            <el-date-picker type="date"  v-model="model.didgrp.rec.expdat" style="width:100%"  placeholder="请选择Date of Expiry"></el-date-picker>
        </el-form-item>
       </el-col>
        <!--          
       <el-col :span="12">
        <el-form-item label="Drag  Drop Sender">
            <c-input  v-model="model.ditp.benp.ptsget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </el-col>   -->          
                  
                 
        <!--          
       <el-col :span="10">
        <el-form-item label="">
            <c-input  v-model="model.ditp.benp.ptsget.sdamod.seainf" placeholder="请输入"></c-input>
        </el-form-item>
       </el-col>             
                  
       <el-col :span="2">
        <c-button size="small" type="primary"  @click="onBenpDet">
            Detials
        </c-button>
       </el-col> -->
       <el-col :span="12">
        <el-form-item label="名称">
            <c-input type="textarea" v-model="model.didgrp.ben.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </el-col>

       <el-col :span="12">
        <el-form-item label="有效地点">
            <c-input type="textarea" v-model="model.didgrp.rec.expplc" maxlength="35" show-word-limit placeholder="请输入Place of Expiry" ></c-input>
        </el-form-item>
        </el-col>
                  


         <!--         
       <el-col :span="12">
        <el-form-item label="Address Block">
            <c-input type="textarea" v-model="model.didgrp.ben.pts.adrblk" maxlength="35" show-word-limit placeholder="请输入Address Block" ></c-input>
        </el-form-item>
        </el-col>
                  
       <el-col :span="12">
        <el-form-item label="Chinese address">
            <c-input type="textarea" v-model="model.didgrp.ben.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </el-col> -->
                  
       <el-col :span="12">
        <el-form-item label="地址">
            <c-input type="textarea" v-model="model.didgrp.ben.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </el-col>
                                   
       <el-col :span="12">
        <el-form-item label="是否通过电证系统">
            <c-select v-model="model.didgrp.rec.elcflg" style="width:100%" placeholder="请选择是否通过电证系统">
              </c-select>
        </el-form-item>
       </el-col>

        <el-col :span="7">
        <el-form-item label="邮编">
            <c-input  v-model="model.didgrp.ben.pts.youzbm" maxlength="6"  placeholder="请输入邮编  电证用"></c-input>
        </el-form-item>
       </el-col>                          
       <el-col :span="5">
        <el-form-item label="电话" label-width="40px" style="margin-left: 12px;">
            <c-input  v-model="model.didgrp.ben.pts.dihdig" maxlength="16"  placeholder="请输入邮编"></c-input>
        </el-form-item>
       </el-col>   

       <el-col :span="12">
        <el-form-item label="开证类型">
            <c-select v-model="model.didgrp.rec.dkflg" style="width:100%" placeholder="请选择开证类型">
              </c-select>
        </el-form-item>
       </el-col>
                                   
       <el-col :span="12">
        <el-form-item label="受益人帐号">
            <c-input  v-model="model.didgrp.ben.pts.extact" maxlength="34"  placeholder="请输入受益人帐号"></c-input>
        </el-form-item>
       </el-col>            
                                   
       <el-col :span="12">
        <el-form-item label="申请人统一社会信用代码">
            <c-input  v-model="model.didgrp.rec.idcode" maxlength="18"  placeholder="请输入申请人统一社会信用代码"></c-input>
        </el-form-item>
       </el-col>             
                                   
       <el-col :span="12">
        <el-form-item label="收益人开户行   联行行号">
            <c-input  v-model="model.didgrp.beb.pts.bankno" maxlength="20"  placeholder="请输入Number of bank"></c-input>
        </el-form-item>
       </el-col>               
                                   
       <el-col :span="12">
        <el-form-item label="货押标识">
            <c-select v-model="model.didgrp.rec.guaflg" style="width:100%" placeholder="请选择货押标识">
              </c-select>
        </el-form-item>
       </el-col>
                                                    
       <el-col :span="12">
        <el-form-item label="联行名称 ">
            <c-input type="textarea" v-model="model.didgrp.beb.pts.jigomc" maxlength="35" show-word-limit placeholder="请输入联行名称  电证用" ></c-input>
        </el-form-item>
        </el-col>         
                                   
       <el-col :span="12">
        <el-form-item label="假远期信用证">
            <c-select v-model="model.didgrp.rec.jyqflg" style="width:100%" placeholder="请选择假远期信用证">
              </c-select>
        </el-form-item>
       </el-col>

  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event"
import CommonProcess from "~/mixin/CommonProcess"

export default {
    props:["model","codes"],
    // mixins: [CommonProcess],
    data(){
        return {
            declareParams:{"fileName":"ditopn.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/ditopn/getElcsRef"},
        }
    },
    methods:{...Event},
    created:function(){

    }
}
</script>
<style>

</style>
