<template>
  <div class="eibs-tab">
      <!-- =======左========== -->
      <el-col :span="11">
        <c-col :span="24">
        <el-form-item label="References" prop="lidgrp.rec.ownref">
            <c-input  
            disabled
            v-model="model.lidgrp.rec.ownref" maxlength="16"  placeholder="请输入参考号"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="10">
        <el-form-item label="L/C Amount" prop="lidgrp.cbs.nom1.cur">
            <c-input 
            disabled
            v-model="model.lidgrp.cbs.nom1.cur" style="width:100%" placeholder="请选择信用证金额">
            </c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="10">
        <el-form-item label="" label-width="10px" prop="lidgrp.cbs.nom1.amt">
            <c-input  
            disabled
            v-model="model.lidgrp.cbs.nom1.amt"  placeholder="请输入信用证金额"></c-input>
        </el-form-item>
       </c-col>

        <c-col :span="4">
	    <c-checkbox disabled v-model="model.brtp.aammod.addamtflg">Add. Amount</c-checkbox>
       </c-col>

       <c-col :span="10">
        <el-form-item label="Open Amount" prop="lidgrp.cbs.opn1.cur">
            <c-input  
            disabled
            v-model="model.lidgrp.cbs.opn1.cur" maxlength="3"  placeholder="请输入信用证余额"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="10">
        <el-form-item label="" label-width="10px" prop="lidgrp.cbs.opn1.amt">
            <c-input  
            disabled
            v-model="model.lidgrp.cbs.opn1.amt"  placeholder="请输入Balance"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="4">
	    <c-checkbox disabled v-model="model.lidgrp.rec.revflg">Revolving L/C</c-checkbox>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Availabled with" prop="lidgrp.avbnam">
            <c-input disabled v-model="model.lidgrp.avbnam" maxlength="40"  placeholder="请输入指定银行"></c-input>
        </el-form-item>
       </c-col>

                                  
       <c-col :span="12">
        <el-form-item label="Available by" prop="lidgrp.rec.avbby">
            <c-select 
            disabled
            v-model="model.lidgrp.rec.avbby" style="width:100%" placeholder="请选择Available by">
              </c-select>
        </el-form-item>
       </c-col>

       <c-col :span="12">
	    <c-checkbox 
        disabled
        v-model="model.lidgrp.rec.redclsflg"
        style="margin-left:25px;padding: 0 10px;"
        >Red/Green Clause</c-checkbox>
       </c-col>

        <c-col :span="24">
        <el-form-item label="Date Issued" prop="lidgrp.rec.opndat">
            <c-date-picker 
            disabled
            type="date"  v-model="model.lidgrp.rec.opndat" style="width:100%"  placeholder="请选择开证日期"></c-date-picker>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Shipment Date" prop="lidgrp.rec.shpdat">
            <c-date-picker 
            disabled
            type="date"  v-model="model.lidgrp.rec.shpdat" style="width:100%"  placeholder="请选择最迟装运日期"></c-date-picker>
        </el-form-item>
       </c-col>

       <c-col :span="12">
        <el-form-item label="Date of Expiry" prop="lidgrp.rec.expdat">
            <c-date-picker 
            disabled
            type="date"  v-model="model.lidgrp.rec.expdat" style="width:100%"  placeholder="请选择到期日/到期地点"></c-date-picker>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Place of Expiry" prop="lidgrp.rec.expplc">
            <c-input disabled v-model="model.lidgrp.rec.expplc" maxlength="29"  placeholder="请输入到期日/到期地点"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Form of L/C" prop="lidgrp.rec.lcrtyp">
            <c-input disabled v-model="model.lidgrp.rec.lcrtyp" style="width:100%" placeholder="请选择信用证类型">
            </c-input>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Shipping Gua. Ref." prop="brdgrp.rec.shgref">
           <c-fullbox>
            <c-input disabled v-model="model.brdgrp.rec.shgref" maxlength="16"  placeholder="请输入Shipping Gua. Ref."></c-input>
        
            <template slot="footer">
            <c-button size="small" type="primary"  @click="onGetref">
            Getref
            </c-button>
            </template>
           </c-fullbox>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Document Number" prop="brdgrp.rec.ownref">
            
            <c-fullbox>
            <c-input disabled v-model="model.brdgrp.rec.ownref" maxlength="16"  placeholder="请输入Document Number"></c-input>
            <template slot="footer">
        <c-button size="small" type="primary"  @click="onBrtmodButgetref">
            Get Ref
        </c-button>
       </template>
            </c-fullbox>
        </el-form-item>
       </c-col>

       <c-col :span="14">
        <el-form-item label="Amount of Shipment" prop="brdgrp.cbs.max.cur">
            <c-input disabled v-model="model.brdgrp.cbs.max.cur" maxlength="3"  placeholder="请输入Amount of Shipment"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="10">
        <el-form-item label="" label-width="10px" prop="brdgrp.cbs.max.amt">
            <c-input  v-model="model.brdgrp.cbs.max.amt"  placeholder="请输入Balance"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Shipping Mark" prop="shpmar">
            <c-input 
            :rows="3"
            type="textarea" v-model="model.shpmar" maxlength="40" show-word-limit placeholder="请输入Shipping Mark" ></c-input>
        </el-form-item>
        </c-col>

        <c-col :span="24">
        <el-form-item label="Pieces in Total" prop="pietat">
            <c-input  v-model="model.pietat" maxlength="80"  placeholder="请输入Pieces in Total"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="担保银行" prop="guabnkval">
            <c-input  v-model="model.guabnkval" maxlength="40"  placeholder="请输入担保银行"></c-input>
        </el-form-item>
       </c-col>
      </el-col>

      <!-- ========右========= -->
      <el-col :span="11" :offset="1">
      <c-col :span="24">
        <el-form-item label="Name" prop="lidgrp.rec.nam">
            <c-input disabled v-model="model.lidgrp.rec.nam" maxlength="40"  placeholder="请输入简略信息"></c-input>
        </el-form-item>
       </c-col>

         <c-col :span="24">
        <el-form-item label="Application Ref." prop="brdgrp.apl.pts.ref">
            <c-input disabled v-model="model.brdgrp.apl.pts.ref" maxlength="16"  placeholder="请输入申请人"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Name of Party" prop="brdgrp.apl.pts.nam">
            <c-input disabled v-model="model.brdgrp.apl.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Beneficiary Ref." prop="brdgrp.ben.pts.ref">
            <c-input disabled v-model="model.brdgrp.ben.pts.ref" maxlength="16"  placeholder="请输入受益人"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Name of Party" prop="brdgrp.ben.pts.nam">
            <c-input disabled v-model="model.brdgrp.ben.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Presented by Ref." prop="brdgrp.prb.pts.ref">
            <c-input disabled v-model="model.brdgrp.prb.pts.ref" maxlength="16"  placeholder="请输入交单行"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Name of Party" prop="brdgrp.prb.pts.nam">
            <c-input disabled v-model="model.brdgrp.prb.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Name" prop="brdgrp.rec.nam">
            <c-input disabled v-model="model.brdgrp.rec.nam" maxlength="40"  placeholder="请输入Name"></c-input>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Mortgage Flag" prop="brdgrp.rec.guaflg">
            <c-select 
            v-model="model.brdgrp.rec.guaflg" 
            style="width:100%" 
            placeholder="请选择Mortgage Flag"
            :code="codes.guaflg"
            >
              </c-select>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Presented by" prop="brdgrp.rec.docprbrol">
            <c-input disabled v-model="model.brdgrp.rec.docprbrol" style="width:100%" placeholder="请选择Presented by">
            </c-input>
        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="External Key of Address" prop="brdgrp.prb.pts.extkey">
            <c-fullbox>
            <c-input  
            v-model="model.brdgrp.prb.pts.extkey" 
            maxlength="16"  
            placeholder="请输入External Key of Address"
            @keyup.enter.native="showGridPromptDialog('brdgrp.prb.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=""
              >
                Details
              </c-button>
            </template>
          </c-fullbox>

        </el-form-item>
       </c-col>

       <c-col :span="24">
        <el-form-item label="Address Block" prop="brdgrp.prb.pts.adrblk">
            <c-input
            :rows="5" 
            type="textarea" 
            v-model="model.brdgrp.prb.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="(提货担保面函落款)发票类型" prop="brdgrp.rec.invtyp">
            <c-select 
            v-model="model.brdgrp.rec.invtyp" 
            style="width:100%" 
            placeholder="请选择(提货担保面函落款)"
            :code="codes.invtyp"
            >
              </c-select>
        </el-form-item>
       </c-col>
      </el-col>
                              
       <!-- <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="brtp.lidget.sdamod.dadsnd">
            <c-input  v-model="model.brtp.lidget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col> -->
                                   
       
                  
       <!-- <c-col :span="12">
        <el-form-item label="" prop="brtp.lidget.sdamod.seainf">
            <c-input  v-model="model.brtp.lidget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col> -->
                                   
       
                                   
       
                                                    
      
                  
       
                                   
       
                  
       
                  
       
                                   
       
                                                    
       
                  
       
        
                  
       
                                   
      
                                   
       
                                                    
       
                                   
       
                  
       
                                   
       
                  
       <!-- <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="brtp.recget.sdamod.dadsnd">
            <c-input  v-model="model.brtp.recget.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="brtp.prbp.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.brtp.prbp.ptsget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col> -->
                  
       
                  
       <!-- <c-col :span="12">
        <el-form-item label="" prop="brtp.prbp.ptsget.sdamod.seainf">
            <c-input  v-model="model.brtp.prbp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col> -->
                  
       <!-- <c-col :span="12">
        <c-button size="small" type="primary"  @click="onPrbpDet">
            Details
        </c-button>
       </c-col> -->
                                   
       
                  
       <!-- <c-col :span="12">
        <el-form-item label="名称" prop="brdgrp.prb.namelc">
            <c-input type="textarea" v-model="model.brdgrp.prb.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col>
                  
       
                  
       <c-col :span="12">
        <el-form-item label="Chinese address" prop="brdgrp.prb.dbfadrblkcn">
            <c-input type="textarea" v-model="model.brdgrp.prb.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <el-form-item label="地址" prop="brdgrp.prb.adrelc">
            <c-input type="textarea" v-model="model.brdgrp.prb.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </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/Litrog/Event"

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

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

    }
}
</script>
<style>

</style>
