<template>
    <div class="eibs-tab">       
    <c-row>
        <!--顶部-->
        <c-col :span="21">
            <c-col :span="12">
                <el-form-item label="参考号" prop="didgrp.rec.ownref">
                    <c-input  
                        v-model="model.didgrp.rec.ownref" 
                        maxlength="16"  
                        placeholder="请输入参考号">
                    </c-input>
                </el-form-item>
            </c-col>
                             
            <c-col :span="12">
                    <el-form-item label="摘要" prop="didgrp.rec.nam">
                        <c-input  
                            v-model="model.didgrp.rec.nam" 
                            maxlength="40"  
                            placeholder="请输入Externally Displayed Name to Identify the Contract"
                        ></c-input>
                    </el-form-item>
            </c-col>
        </c-col>
         <!--左部-->
        <c-col :span="12">
            <c-col :span="24">
                <c-col :span="12">
                    <el-form-item label="信用证金额" prop="didgrp.cbs.nom1.cur">
                        <c-select 
                            v-model="model.didgrp.cbs.nom1.cur" 
                            style="width:100%" 
                            placeholder="请选择金额类型"
                        ></c-select>
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
                    <el-form-item label="" prop="didgrp.cbs.nom1.amt" label-width="0px">
                        <c-input  
                            v-model="model.didgrp.cbs.nom1.amt"  
                            placeholder="请输入信用证金额"
                        ></c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="12">
                    <el-form-item label="单据余额" prop="didgrp.cbs.opn1.cur">
                        <c-select  
                            v-model="model.didgrp.cbs.opn1.cur" 
                            maxlength="3"  
                            placeholder="请选择金额类型"
                        ></c-select>
                    </el-form-item>
                </c-col>
                <c-col :span="12">
                    <el-form-item label="" prop="didgrp.cbs.opn1.amt" label-width="0px">
                        <c-input  
                            v-model="model.didgrp.cbs.opn1.amt"  
                            placeholder="请输入单据余额"
                        ></c-input>
                    </el-form-item>
                </c-col>   
            </c-col>

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

            <c-col :span="24">
                <el-form-item label="兑付方式" prop="didgrp.rec.avbby">
                    <c-select 
                        v-model="model.didgrp.rec.avbby" 
                        style="width:100%" 
                        placeholder="请选择兑付方式"
                    ></c-select>
                </el-form-item>
            </c-col>

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

            <c-col :span="10">
                <el-form-item label="到期日/到期地点" prop="didgrp.rec.expdat">
                    <c-date-picker 
                        type="date"  
                        v-model="model.didgrp.rec.expdat" c
                        style="width:100%"  
                        placeholder="请选择到期日/到期地点"
                    ></c-date-picker>
                </el-form-item>
            </c-col>

            <c-col :span="14">
                <el-form-item label="" prop="didgrp.rec.expplc" label-width="0px">
                    <c-input 
                        type="textarea" 
                        v-model="model.didgrp.rec.expplc" 
                        maxlength="35" 
                        show-word-limit placeholder="请输入expplc" 
                    ></c-input>
                </el-form-item>
            </c-col>

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

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


            <c-col :span="24">
                <el-form-item label="Type of Advice" prop="bddgrp.rec.advtyp">
                    <c-select 
                    v-model="model.bddgrp.rec.advtyp" 
                    style="width:100%" 
                    placeholder="请选择Type of Advice"
                    :code="codes.advtyp"
                ></c-select>
                </el-form-item>
            </c-col>
                                        
                                        
            <c-col :span="12">
                <el-form-item label="Payment" prop="bddgrp.rec.advdat">
                    <c-date-picker 
                        type="date"  
                        v-model="model.bddgrp.rec.advdat" 
                        style="width:100%"  
                        placeholder="请选择Payment advised on"
                    ></c-date-picker>
                </el-form-item>
            </c-col>
                                        
            <c-col :span="12">
                <el-form-item label="Discrep" prop="bddgrp.rec.disdat">
                    <c-date-picker 
                        type="date"  
                        v-model="model.bddgrp.rec.disdat" 
                        style="width:100%"  
                        placeholder="请选择Discrep. advised on"
                    ></c-date-picker>
                </el-form-item>
            </c-col>
                        
            <c-col :span="24">
                <el-form-item label="">
                    <c-checkbox v-model="model.bdtp.setnowflg">Register to Send and Settle Document</c-checkbox>
                    </el-form-item>   
            </c-col>

            <c-col :span="24">
                <el-form-item label="">
                    <c-checkbox v-model="model.bdtp.dcrflg" >Register to Handle Discrepancies</c-checkbox>
                    </el-form-item>   
            </c-col>    
        </c-col>  


        <!--右部-->
        <c-col :span="12">
            <c-col :span="24">
                    <el-form-item label="申请人" prop="bddgrp.apl.pts.ref">
                        <c-input  
                            v-model="model.bddgrp.apl.pts.ref" 
                            maxlength="16"  
                            placeholder="请输入申请人"
                        ></c-input>
                    </el-form-item>
            </c-col>

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

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

            <c-col :span="24">
                <el-form-item label="" prop="bddgrp.ben.pts.nam">
                    <c-input  
                        v-model="model.bddgrp.ben.pts.nam" 
                        maxlength="40"  
                        placeholder="请选择Available by"
                    ></c-input>
                </el-form-item>
            </c-col>

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

            <c-col :span="24">
                <el-form-item label="" prop="bddgrp.prb.pts.nam">
                    <c-input  
                        v-model="model.bddgrp.prb.pts.nam" 
                        maxlength="40"  
                        placeholder="请输入Reference"
                    ></c-input>
                </el-form-item>
            </c-col>
                                                               
            <c-col :span="24">
                <el-form-item label="Document Reference" prop="bddgrp.rec.ownref">
                    <c-input  
                        v-model="model.bddgrp.rec.ownref" 
                        maxlength="16"  
                        placeholder="请输入Document Reference"
                    ></c-input>
                </el-form-item>
            </c-col>
                                
            <c-col :span="24">
                <el-form-item label="Presented" prop="bddgrp.rec.docprbrol">
                    <c-select 
                    v-model="model.bddgrp.rec.docprbrol" 
                    style="width:100%" 
                    placeholder="请选择Presented by"
                ></c-select>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="Reference" prop="bddgrp.prb.pts.ref">
                    <c-input  
                        v-model="model.bddgrp.prb.pts.ref"
                        maxlength="16"  
                        placeholder="请输入Reference"
                    ></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="21">
                <el-form-item label="ExtKey" prop="bddgrp.prb.pts.extkey">
                    <c-input  v-model="model.bddgrp.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 :span="24">
                <el-form-item label="名称" prop="bddgrp.prb.namelc">
                    <c-input type="textarea" v-model="model.bddgrp.prb.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="地址" prop="bddgrp.prb.adrelc">
                    <c-input type="textarea" v-model="model.bddgrp.prb.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
                </el-form-item>
            </c-col>

        </c-col>
    </c-row>
    </div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditdav/Event"

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

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

    }
}
</script>
<style>

</style>
