<template>
  <div class="eibs-tab">
    <!-- ==========左=============== -->
    <el-col :span="11">
    <c-col :span="24">
        <el-form-item label="Reference" prop="lidgrp.rec.ownref">
            <c-fullbox>
            <c-input  
            v-model="model.lidgrp.rec.ownref" 
            maxlength="16"  
            placeholder="请输入Reference"
            disabled
            ></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>       
            </template>
            </c-fullbox>
        </el-form-item>
       </c-col>
       <c-col :span="24">
        <el-form-item label="Amendment Date" prop="trnmod.swiadd.amedat">
            <c-date-picker type="date"  v-model="model.trnmod.swiadd.amedat" style="width:100%"  placeholder="请选择修改日期"></c-date-picker>
        </el-form-item>
       </c-col>
       <c-col :span="12">
        <el-form-item label="Nominal Amount" prop="lidgrp.cbs.nom1.cur">
            <c-input  
            v-model="model.lidgrp.cbs.nom1.cur" 
            maxlength="3"  
            placeholder="请输入Nominal Amount"
            disabled
            ></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="信用证金额" prop="oldlidgrp.cbs.nom1.amt">
            <c-input  
            v-model="model.oldlidgrp.cbs.nom1.amt"  
            placeholder="请输入信用证金额"
            disabled
            ></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Amount Tolerance +" prop="oldlidgrp.rec.nomtop">
            <c-input  
            v-model="model.oldlidgrp.rec.nomtop"  
            placeholder="请输入Amount Tolerance - Positive"
            disabled
            ></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Amount Tolerance -" prop="oldlidgrp.rec.nomton">
            <c-input  
            v-model="model.oldlidgrp.rec.nomton"  
            placeholder="请输入Amount Tolerance - Negative"
            disabled
            ></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="12">
        <el-form-item label="Amended" prop="trnmod.swiadd.amecur">
            <c-input 
            v-model="model.trnmod.swiadd.amecur" 
            style="width:100%" 
            placeholder="请选择增减金额"
            disabled
            >
            </c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Amended Amount" prop="trnmod.swiadd.ameamt">
            <c-input  v-model="model.trnmod.swiadd.ameamt"  placeholder="请输入增减金额"
            @keyup.enter.native="amendfunc"
            ></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="12">
        <el-form-item label="New Data" prop="trnmod.swiadd.newcur">
            <c-input 
            v-model="model.trnmod.swiadd.newcur" 
            style="width:100%" 
            placeholder="请选择修改后金额"
            disabled
            >
            </c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="New Data Amount" prop="trnmod.swiadd.newamt">
            <c-input  v-model="model.trnmod.swiadd.newamt"  placeholder="请输入修改后金额"></c-input>
        </el-form-item>
       </c-col>
        <c-col :span="12">
        <el-form-item label="New positive tolerance" prop="trnmod.swiadd.newnomtop">
            <c-input  v-model="model.trnmod.swiadd.newnomtop"  placeholder="请输入New positive tolerance"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="New negative tolerance" prop="trnmod.swiadd.newnomton">
            <c-input  v-model="model.trnmod.swiadd.newnomton"  placeholder="请输入New negative tolerance"></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="24">
        <el-form-item label="Amount Specification" prop="trnmod.swiadd.nomspc">
            <c-select 
            disabled
            :code="codes.nomspc"
            v-model="model.trnmod.swiadd.nomspc" style="width:100%" placeholder="请选择金额说明">
            </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Data of Expiry" prop="oldlidgrp.rec.expdat">
            <c-date-picker 
            disabled
            type="date"  v-model="model.oldlidgrp.rec.expdat" style="width:100%"  placeholder="请选择到期日"></c-date-picker>
        </el-form-item>
       </c-col>
       <c-col :span="12">
        <el-form-item label="New Expiry Date" prop="trnmod.swiadd.newexpdat">
            <c-date-picker type="date"  v-model="model.trnmod.swiadd.newexpdat" style="width:100%"  placeholder="请选择新到期日"></c-date-picker>
        </el-form-item>
       </c-col>
        <c-col :span="24">
        <el-form-item label="Purpose of message" prop="trnmod.swiadd.purpos">
            <c-select v-model="model.trnmod.swiadd.purpos" style="width:100%" placeholder="请选择Purpose of message"
            :code="codes.purpos"
            >
              </c-select>
        </el-form-item>
       </c-col>
                                  
       <c-col :span="24">
        <el-form-item label="Presentation Period" prop="oldlidgrp.rec.prepers18">
            <c-input  
            v-model="model.oldlidgrp.rec.prepers18"  
            placeholder="请输入Presentation Period"
            disabled
            ></c-input>
        </el-form-item>
       </c-col>
        <c-col :span="24">
        <el-form-item label="Presentation Period" prop="oldlidgrp.blk.preper">
            <c-input 
            type="textarea" 
            v-model="model.oldlidgrp.blk.preper" 
            maxlength="35" 
            show-word-limit 
            placeholder="请输入Presentation Period" 
            disabled
            ></c-input>
        </el-form-item>
        </c-col>
        <c-col :span="24">
        <el-form-item label="Amendm. charge by" prop="trnmod.swiadd.trnchato">
            <c-select v-model="model.trnmod.swiadd.trnchato" style="width:100%" placeholder="请选择Amendm. charge by"
            :code="codes.trnchato"
            >
              </c-select>
        </el-form-item>
       </c-col>
       <c-col :span="24">
        <el-form-item label="Details for Charges" prop="trnmod.swiadd.trnfeetxt">
            <c-input 
            type="textarea" 
            v-model="model.trnmod.swiadd.trnfeetxt" 
            maxlength="35" 
            show-word-limit 
            placeholder="请输入Details for Charges" 
            disabled
            ></c-input>
        </el-form-item>
        </c-col>
         <!-- <c-col :span="24">
        <el-form-item label="RAMROLLAB" prop="litamep.ramrol">
            <c-select v-model="model.litamep.ramrol" style="width:100%" placeholder="请选择Request of Amendment send to">
              </c-select>
        </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  
            v-model="model.lidgrp.rec.nam" 
            maxlength="40"  
            placeholder="请输入Name"
            disabled
            ></c-input>
        </el-form-item>
       </c-col>
        <c-col :span="12">
        <el-form-item label="Amend.No" prop="trnmod.swiadd.amenbr">
            <c-input  v-model="model.trnmod.swiadd.amenbr"  placeholder="请输入修改次数"></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Actual Amendment No" prop="litamep.amenbr">
            <c-input  
            v-model="model.litamep.amenbr"  
            placeholder="请输入实际修改次数"
            disabled
            ></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="12">
        <el-form-item label="Maximum Amount" prop="oldlidgrp.cbs.max.cur">
            <c-input  
            v-model="model.oldlidgrp.cbs.max.cur" 
            maxlength="3"  
            placeholder="请输入Currency"
            disabled
            ></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="" prop="oldlidgrp.cbs.max.amt">
            <c-input  
            v-model="model.oldlidgrp.cbs.max.amt"  
            placeholder="请输入Balance"
            disabled
            ></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="12">
        <el-form-item label="Total Amendment" prop="litamep.engcur">
            <c-input 
            v-model="model.litamep.engcur" 
            style="width:100%" 
            placeholder="请选择修改总金额"
            disabled
            >
            </c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="" prop="litamep.engamt">
            <c-input  
            v-model="model.litamep.engamt"  
            placeholder="请输入修改总金额"
            disabled
            ></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="12">
        <el-form-item label="Currency of Maximum Amount" prop="litamep.maxcur">
            <c-input  
            v-model="model.litamep.maxcur" 
            maxlength="3"  
            placeholder="请输入Currency of Maximum Amount"
            disabled
            ></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="New Maximum Amount" prop="litamep.maxamt">
            <c-input  
            v-model="model.litamep.maxamt"  
            placeholder="请输入New Maximum Amount"
            disabled
            ></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="12">
        <el-form-item label="Shipment Date" prop="oldlidgrp.rec.shpdat">
            <c-date-picker 
            type="date"  
            v-model="model.oldlidgrp.rec.shpdat" 
            style="width:100%"  
            placeholder="请选择装运日"
            disabled
            ></c-date-picker>
        </el-form-item>
       </c-col>
       <c-col :span="12">
        <el-form-item label="New Shipment Date" prop="trnmod.swiadd.newshpdat">
            <c-date-picker type="date"  v-model="model.trnmod.swiadd.newshpdat" style="width:100%"  placeholder="请选择新装运日"></c-date-picker>
        </el-form-item>
       </c-col>
       <c-col :span="12">
        <el-form-item label="New Presentation Period" prop="trnmod.swiadd.prepers18">
            <c-input  v-model="model.trnmod.swiadd.prepers18"  placeholder="请输入New Presentation Period"></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="12">
        <el-form-item label="Presentation period text" prop="trnmod.swiadd.prepertxts18">
            <c-input  v-model="model.trnmod.swiadd.prepertxts18" maxlength="35"  placeholder="请输入Presentation period text"></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="24">
       <c-col :span="12">
	    <c-checkbox 
        style="margin: 0px 0 10px 150px;"
        v-model="model.litp.aamp.aammod.addamtflg">Add. Amount</c-checkbox>
       </c-col>
       </c-col>           
       
        <c-col :span="12">
        <el-form-item label="Currency" prop="lidgrp.cbs.max2.cur">
            <c-input  
            disabled
            v-model="model.lidgrp.cbs.max2.cur" maxlength="3"  placeholder="请输入Currency"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Additional Amount" prop="trnmod.swiadd.addamt">
            <c-input  
            disabled 
            v-model="model.trnmod.swiadd.addamt"  placeholder="请输入Additional Amount"></c-input>
        </el-form-item>
       </c-col>
        <c-col :span="24">
        <el-form-item label="Additional Amount Covered" prop="trnmod.swiadd.addamtcov">
            <c-input type="textarea" 
            v-model="model.trnmod.swiadd.addamtcov" 
            maxlength="35" 
            show-word-limit 
            placeholder="请输入Additional Amount Covered" 
            disabled
            ></c-input>
        </el-form-item>
        </c-col>
         <c-col :span="12">
	    <c-checkbox 
        style="margin: 0px 0 10px 150px;"
        v-model="model.trnmod.swiadd.reqcan">Cancellation Request</c-checkbox>
       </c-col>
       <c-col :span="12">
	    <c-checkbox 
        style="margin: 0px 0 10px 150px;"
        v-model="model.litamep.cre707flg">Create Amendment Message</c-checkbox>
       </c-col>
    </el-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,
    async amendfunc(){
        let rtnmsg = await this.executeRule("trnmod.swiadd.ameamt")
        if(rtnmsg.respCode==SUCCESS){
            this.updateModel(rtnmsg.data);
        }else{
            this.$notify.error({title: '错误',message: '服务请求失败！'});
        }
    }
    },
    created:function(){

    }
}
</script>
<style>

</style>
<!-- <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="litamep.recget.sdamod.dadsnd">
            <c-input  v-model="model.litamep.recget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col> -->
                                   
       
                  
       <!-- <c-col :span="12">
        <el-form-item label="参考号" prop="litamep.recget.sdamod.seainf">
            <c-input  v-model="model.litamep.recget.sdamod.seainf"  placeholder="请输入参考号"></c-input>
        </el-form-item>
       </c-col> -->
                                   
                  
       <!-- <c-col :span="12">
        <el-form-item label="Presentation period text" prop="oldlidgrp.rec.prepertxts18">
            <c-input  v-model="model.oldlidgrp.rec.prepertxts18" maxlength="35"  placeholder="请输入Presentation period text"></c-input>
        </el-form-item>
       </c-col> -->

       <!-- <c-col :span="12">
	    <span  v-text="model.litamep.ramrollab"   data-path=".litamep.ramrollab" > </span>
	</c-col> -->