<template>
  <div class="eibs-tab">                     
       <c-col :span="24">                                       
      <c-col :span="8">
        <el-form-item label="业务编号" prop="lidgrp.rec.ownref">
          <c-input
            v-model="model.lidgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入Reference"
            :disabled="true"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="3">
        <c-button size="small" type="primary;width:10%" @click="onSeainf"
          >i</c-button
        >
      </c-col>

      <c-col :span="11" :offset="1">
        <el-form-item label="概要" prop="lidgrp.rec.nam">
          <c-input :disabled="true"
            v-model="model.lidgrp.rec.nam"
            maxlength="40"
            placeholder="请输入概要"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
       
     <c-col :span="24">                               
       <c-col :span="6">
        <el-form-item  label="金额" prop="lidgrp.cbs.nom1.cur">
          <!--  <c-select :code="codes.cur"  v-model="model.lidgrp.cbs.nom1.cur" style="width:100%"  :disabled="true">
              </c-select> -->
               <c-input  :disabled="true" v-model="model.lidgrp.cbs.nom1.cur" maxlength="3"  placeholder=""></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="4" >
        <el-form-item prop="lidgrp.cbs.nom1.amt">
            <c-input style="margin-left: -150px;width:100px"  v-model="model.lidgrp.cbs.nom1.amt"  placeholder="请输入信用证金额"  :disabled="true"></c-input>
        </el-form-item>
       </c-col>
       
      <c-col :span="2">
	      <c-checkbox style="margin-left: -50px;" v-model="model.brtp.aammod.addamtflg"  :disabled="true">Add. Amount</c-checkbox>
       </c-col>                             
       <c-col :span="11">
        <el-form-item label="申请人" prop="brdgrp.apl.pts.ref">
            <c-input  v-model="model.brdgrp.apl.pts.ref" maxlength="16"  placeholder="请输入申请人"  :disabled="true"></c-input>
        </el-form-item>
       </c-col>
     </c-col>   
       
    <c-col :span="24">                                
       <c-col :span="6">
        <el-form-item label="余额" prop="lidgrp.cbs.opn1.cur">
            <c-input  :disabled="true" v-model="model.lidgrp.cbs.opn1.cur" maxlength="3"  placeholder=""></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="4" >
        <el-form-item  prop="lidgrp.cbs.opn1.amt" >
            <c-input  style="margin-left: -150px;width:100px" :disabled="true"  v-model="model.lidgrp.cbs.opn1.amt"  placeholder="请输入Balance"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="2">
	    <c-checkbox style="margin-left: -50px;" :disabled="true" v-model="model.lidgrp.rec.revflg">Revolving Flag</c-checkbox>
       </c-col>
                
       <c-col :span="11">
        <el-form-item  label="Name of Party" prop="brdgrp.apl.pts.nam">
            <c-input  :disabled="true" v-model="model.brdgrp.apl.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></c-input>
        </el-form-item>
       </c-col>
        </c-col> 
        

         <c-col>                      
       <c-col :span="11">
        <el-form-item label="指定银行" prop="lidgrp.avbnam">
            <c-input  :disabled="true"  v-model="model.lidgrp.avbnam" maxlength="40"  placeholder="请输入指定银行"></c-input>
        </el-form-item>
       </c-col>
                                                    
       <c-col :span="11" :offset="1">
        <el-form-item  prop="brdgrp.ben.pts.ref">
            <c-input  :disabled="true" v-model="model.brdgrp.ben.pts.ref" maxlength="16"  placeholder="请输入受益人"></c-input>
        </el-form-item>
       </c-col>
                  </c-col>
      
        <c-col>                          
       <c-col :span="6">
        <el-form-item label="Available by" prop="lidgrp.rec.avbby">
            <c-select  :disabled="true" v-model="model.lidgrp.rec.avbby" style="width:100%" placeholder="请选择Available by">
              </c-select>
        </el-form-item>
       </c-col>
        <c-col :span="4" :offset="1">
	    <c-checkbox   :disabled="true" v-model="model.lidgrp.rec.redclsflg">Red/Green Clause</c-checkbox>
       </c-col>           
       <c-col :span="11" :offset="1">
        <el-form-item  prop="brdgrp.ben.pts.nam">
            <c-input  :disabled="true" v-model="model.brdgrp.ben.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></c-input>
        </el-form-item>
       </c-col>
       </c-col> 
       <c-col>                           
       <c-col :span="8">
        <el-form-item label="开证日期" prop="lidgrp.rec.opndat">
            <c-date-picker  :disabled="true" type="date"  v-model="model.lidgrp.rec.opndat" style="width:100%"  placeholder="请选择开证日期"></c-date-picker>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="8" >
        <el-form-item label="最迟装运日期" prop="lidgrp.rec.shpdat">
            <c-date-picker  :disabled="true" type="date"  v-model="model.lidgrp.rec.shpdat" style="width:100%"  placeholder="请选择最迟装运日期"></c-date-picker>
        </el-form-item>
       </c-col>
       </c-col>
       <c-col>                            
       <c-col :span="8">
        <el-form-item label="到期日/到期地点" prop="lidgrp.rec.expdat">
            <c-date-picker  :disabled="true" type="date"  v-model="model.lidgrp.rec.expdat" style="width:100%"  placeholder="请选择到期日/到期地点"></c-date-picker>
        </el-form-item>
       </c-col>
                  
       <c-col :span="8" >
        <el-form-item label="到期日/到期地点" prop="lidgrp.rec.expplc">
            <c-input  :disabled="true" v-model="model.lidgrp.rec.expplc" maxlength="29"  placeholder="请输入到期日/到期地点"></c-input>
        </el-form-item>
       </c-col>
                  
       </c-col>
          <c-col :span="11"  :offset="12">
        <el-form-item label="Reference" prop="brdgrp.prb.pts.ref">
            <c-input   :disabled="true" v-model="model.brdgrp.prb.pts.ref" maxlength="16"  placeholder="请输入Reference"></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="11" :offset="12">
        <el-form-item  prop="brdgrp.prb.pts.nam">
            <c-input  :disabled="true"  v-model="model.brdgrp.prb.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></c-input>
        </el-form-item>
       </c-col>
       <c-col>       
       <c-col :span="11">
        <el-form-item label="信用证类型" prop="lidgrp.rec.lcrtyp">
            <c-select :code="codes.lcrtyp"  :disabled="true" v-model="model.lidgrp.rec.lcrtyp" style="width:100%" placeholder="请选择信用证类型">
              </c-select>
        </el-form-item>
       </c-col>
        </c-col>          
        <c-col>                           
       <c-col :span="8">
        <el-form-item label="Document Reference" prop="brdgrp.rec.ownref">
            <c-input  :disabled="true"  v-model="model.brdgrp.rec.ownref" maxlength="16"  placeholder="请输入Document Reference"></c-input>
        </el-form-item>
       </c-col>
        <c-col :span="3">
        <c-button size="small" type="primary;width:10%" @click="onSeainf"
          >i</c-button
        >
      </c-col>           
                                   
       <c-col :span="11" :offset="1">
        <el-form-item label="Name" prop="brdgrp.rec.nam">
            <c-input  :disabled="true"  v-model="model.brdgrp.rec.nam" maxlength="40"  placeholder="请输入Name"></c-input>
        </el-form-item>
       </c-col>
       </c-col> 
       <c-col>                           
       <c-col :span="11">
        <el-form-item label="Type of Advice" prop="brdgrp.rec.advtyp">
            <c-select :code="codes.advtyp" v-model="model.brdgrp.rec.advtyp" style="width:100%" placeholder="请选择Type of Advice"> 
            </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="11" :offset="1">
        <el-form-item label="Presented by" prop="brdgrp.rec.docprbrol">
            <c-select v-model="model.brdgrp.rec.docprbrol" style="width:100%" placeholder="请选择Presented by">
              </c-select>
        </el-form-item>
       </c-col>
       </c-col>
       <c-col>                            
       <c-col :span="6">
        <el-form-item label="Payment advised on" prop="brdgrp.rec.advdat">
            <c-date-picker type="date"  v-model="model.brdgrp.rec.advdat" style="width:100%"  placeholder="请选择Payment advised on"></c-date-picker>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="6">
        <el-form-item label="Discrep. advised on" prop="brdgrp.rec.disdat">
            <c-date-picker type="date"  v-model="model.brdgrp.rec.disdat" style="width:100%"  placeholder="请选择Discrep. advised on"></c-date-picker>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="11" >
        <el-form-item label="Reference" prop="brdgrp.prb.pts.ref">
            <c-input  v-model="model.brdgrp.prb.pts.ref" maxlength="16"  placeholder="请输入Reference"></c-input>
        </el-form-item>
       </c-col>
        </c-col>
        <c-col>       
       <c-col :span="6" :offset="5">
	    <c-checkbox v-model="model.brtp.setnowflg">Register to Send and Settle Document</c-checkbox>
       </c-col>
                 
       <c-col :span="8" :offset="1">
        <el-form-item label="External Key of Address" prop="brdgrp.prb.pts.extkey">
            <c-input  v-model="model.brdgrp.prb.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="3">
        <c-button size="small" type="primary"  @click="onPrbpDet">
            Details
        </c-button>
       </c-col>
        </c-col>             
         <c-col>         
       <c-col :span="6" :offset="5">
	    <c-checkbox v-model="model.brtp.dcrflg">Register to Handle Discrepancies</c-checkbox>
       </c-col>
                  
       <c-col :span="11" :offset="1">
        <el-form-item v-if="1===0" label="名称" prop="brdgrp.prb.namelc">
            <c-input type="textarea" v-model="model.brdgrp.prb.namelc" maxlength="40" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="11" :offset="1">
        <el-form-item label="Address Block" prop="brdgrp.prb.pts.adrblk">
            <c-input type="textarea" v-model="model.brdgrp.prb.pts.adrblk" maxlength="40" show-word-limit placeholder="请输入Address Block" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col v-if="1===0" :span="11" :offset="1">
        <el-form-item label="Chinese address" prop="brdgrp.prb.dbfadrblkcn">
            <c-input type="textarea" v-model="model.brdgrp.prb.dbfadrblkcn" maxlength="40" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col v-if="1===0" :span="11" :offset="1">
        <el-form-item label="地址" prop="brdgrp.prb.adrelc">
            <c-input type="textarea" v-model="model.brdgrp.prb.adrelc" maxlength="40" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </c-col>
        </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Litdav/Event";
import Utils from "~/utils";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [CommonProcess],
  data() {
    return {};
  },
  methods: { ...Event },
  created: function() {}
};
</script>
<style>
</style>