<template>
  <div class="eibs-tab">
    <c-row>
            <c-col :span="24">
                <c-col :span="12"> 
                         <c-col :span="24">
                            <el-form-item label="Requested Issue Date" prop="gidgrp.rec.opndatc">
                                <c-date-picker type="date"  v-model="model.gidgrp.rec.opndatc" style="width:100%"  placeholder="请选择Requested Issue Date"></c-date-picker>
                            </el-form-item>
                        </c-col>

                        <c-col :span="24">
                            <c-col :span="12">
                                <el-form-item label="Guarantee Amount" prop="gidgrp.cbs.mac.cur">
                                    <c-select v-model="model.gidgrp.cbs.mac.cur" style="width:100%" placeholder="请选择Guarantee Amount">
                                        <el-option
                                            v-for="item in codes.cur"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value"
                                            >
                                            </el-option>
                                    </c-select>
                                </el-form-item>
                            </c-col>
                            <c-col :span="8">
                                    <c-input  v-model="model.gidgrp.cbs.mac.amt" style="margin: 0 0 0 10px; width: 80%" placeholder="请输入Guarantee Amount"></c-input>
                            </c-col>
                            <c-col :span="4" class="centerLable">
                                    <c-checkbox v-model="model.gitp.aacp.aacmod.addamtflg">Add. Amount</c-checkbox>
                            </c-col>
                        </c-col>
                        <c-col :span="24">
                            <c-col :span="12">
                                <el-form-item label="Undertaking Type " prop="gidgrp.rec.gartypc">
                                    <c-select v-model="model.gidgrp.rec.gartypc" style="width:100%" placeholder="请选择Undertaking Type ">
                                                <el-option
                                                v-for="item in codes.gartypc"
                                                :key="item.value"
                                                :label="item.label"
                                                :value="item.value"
                                                >
                                                </el-option>
                                    </c-select>
                                </el-form-item>
                            </c-col>
                            <c-col :span="8">
                                <c-input  v-model="model.gidgrp.blk.gartyptxtc" style="margin: 0 0 0 10px; width: 80%"  placeholder="请输入Undertaking Type "></c-input>
                            </c-col>   
                        </c-col>

                         <c-col :span="24">
                            <el-form-item label="Form of Undertaking" prop="gidgrp.rec.legfrmc">
                                <c-select v-model="model.gidgrp.rec.legfrmc" style="width:100%" placeholder="请选择Form of Undertaking">
                                                <el-option
                                                v-for="item in codes.legfrmc"
                                                :key="item.value"
                                                :label="item.label"
                                                :value="item.value"
                                                >
                                                </el-option>            
                                </c-select>
                            </el-form-item>
                        </c-col>
                        <c-col :span="24">
                            <el-form-item label="Demand Indicator " prop="gidgrp.rec.demandc">
                                <c-select v-model="model.gidgrp.rec.demandc" style="width:100%" placeholder="请选择Demand Indicator ">
                                                <el-option
                                                v-for="item in codes.demandc"
                                                :key="item.value"
                                                :label="item.label"
                                                :value="item.value"
                                                >
                                                </el-option>
                                </c-select>
                            </el-form-item>
                        </c-col>
                        <c-col :span="24">
                            <el-form-item label="Requested Language" prop="gidgrp.rec.stdwrduilc">
                                <c-select v-model="model.gidgrp.rec.stdwrduilc" style="width:100%" placeholder="请选择Requested Language">
                                                <el-option
                                                v-for="item in codes.uiltxt"
                                                :key="item.value"
                                                :label="item.label"
                                                :value="item.value"
                                                >
                                                </el-option>
                                </c-select>
                            </el-form-item>
                        </c-col>
                </c-col>
                <c-col :span="11" :offset="1">
                     <c-col :span="24">
                        <el-form-item label="Choice of Text" prop="gidgrp.rec.gtxinrc">
                            <c-select v-model="model.gidgrp.rec.gtxinrc" style="width:100%" placeholder="请选择Choice of Text">
                                                <el-option
                                                v-for="item in codes.gtxinr"
                                                :key="item.value"
                                                :label="item.label"
                                                :value="item.value"
                                                >
                                                </el-option>  
                            </c-select>
                        </el-form-item>
                    </c-col>

                    <c-col :span="24">
                        <c-col :span="12">
                            <el-form-item label="Applicable Rules" prop="gidgrp.blk.apprulc">
                                <c-select v-model="model.gidgrp.blk.apprulc" style="width:100%" placeholder="请选择Applicable Rules">
                                    <el-option
                                        v-for="item in codes.apprulc"
                                        :key="item.value"
                                        :label="item.label"
                                        :value="item.value"
                                        >
                                        </el-option>  
                                </c-select>
                            </el-form-item>
                        </c-col>
                        <c-col :span="8">
                            <c-input :disabled="model.gidgrp.blk.apprulc=='URDG'||model.gidgrp.blk.apprulc=='NONE'||model.gidgrp.blk.apprulc=='UCPR'" style="margin: 0 0 0 10px; width: 80%" v-model="model.gidgrp.blk.apprultxtc" maxlength="35"  placeholder="请输入Applicable Rules"></c-input>
                        </c-col>
                    </c-col>

                    <c-col :span="24">
                          <el-form-item label="Expiry Type" prop="gidgrp.rec.exptyp">
                              <c-select v-model="model.gidgrp.rec.exptyp" style="width:100%" placeholder="请选择Expiry Type">
                              <el-option
                                      v-for="item in codes.exptyp"
                                      :key="item.value"
                                      :label="item.label"
                                      :value="item.value"
                                      >
                              </el-option>
                              </c-select>
                          </el-form-item>
              </c-col>
              <c-col :span="24">
                  <el-form-item  label="Validity until" prop="gidgrp.rec.expdat">
                      <c-date-picker :disabled="model.gidgrp.rec.exptyp=='OPEN'"
                        type="date"
                        v-model="model.gidgrp.rec.expdat"
                        style="width: 100%"
                        placeholder="请选择Validity until"
                        ></c-date-picker>
                  </el-form-item>
              </c-col>

              <c-col :span="24">
                    <c-col :span="20">
                        <el-form-item label="Expiry Condition/ Evt." prop="gidgrp.blk.exptxt">
                            <c-input type="textarea" rows="4" :disabled="model.gitp.exptxtmodflg==''"   v-model="model.gidgrp.blk.exptxt" maxlength="65" show-word-limit placeholder="请输入Expiry Condition/ Evt." ></c-input>
                        </el-form-item>
                    </c-col>
                    <c-col :span="4">
                        <c-checkbox v-model="model.gitp.exptxtmodflg" :disabled="model.gidgrp.rec.exptyp=='FIXD'||model.gidgrp.rec.exptyp=='OPEN'||model.gidgrp.rec.exptyp==''"  style="margin:0 0 0 10px">Modify Text</c-checkbox>
                        <c-button disabled size="small" type="primary" style="margin:5px 0 0 10px"  @click="onGitpButdifexptxt">
                            vs. &System
                        </c-button>
                        <c-button disabled size="small" type="primary" style="margin:5px 0 0 10px"  @click="onGitpButdifhisexptxt">
                            vs. &History
                        </c-button>
                    </c-col>
              </c-col>

                </c-col>
            </c-col>
        </c-row>
                                               
       <!-- <c-col :span="12">
        <el-form-item label="Requested Issue Date" prop="gidgrp.rec.opndatc">
            <c-date-picker type="date"  v-model="model.gidgrp.rec.opndatc" style="width:100%"  placeholder="请选择Requested Issue Date"></c-date-picker>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.gidgrp.rec.autrnwflgc">Auto-Renewal - Local Undertaking Seq. C</c-checkbox>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Guarantee Amount" prop="gidgrp.cbs.mac.cur">
            <c-select v-model="model.gidgrp.cbs.mac.cur" style="width:100%" placeholder="请选择Guarantee Amount">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Guarantee Amount" prop="gidgrp.cbs.mac.amt">
            <c-input  v-model="model.gidgrp.cbs.mac.amt"  placeholder="请输入Guarantee Amount"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.gitp.aacp.aacmod.addamtflg">Add. Amount</c-checkbox>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Undertaking Type " prop="gidgrp.rec.gartypc">
            <c-select v-model="model.gidgrp.rec.gartypc" style="width:100%" placeholder="请选择Undertaking Type ">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Undertaking Type " prop="gidgrp.blk.gartyptxtc">
            <c-input  v-model="model.gidgrp.blk.gartyptxtc" maxlength="35"  placeholder="请输入Undertaking Type "></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Form of Undertaking" prop="gidgrp.rec.legfrmc">
            <c-select v-model="model.gidgrp.rec.legfrmc" style="width:100%" placeholder="请选择Form of Undertaking">
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Demand Indicator " prop="gidgrp.rec.demandc">
            <c-select v-model="model.gidgrp.rec.demandc" style="width:100%" placeholder="请选择Demand Indicator ">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.gidgrp.rec.stdwrdc">Standard wording required</c-checkbox>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Requested Language" prop="gidgrp.rec.stdwrduilc">
            <c-select v-model="model.gidgrp.rec.stdwrduilc" style="width:100%" placeholder="请选择Requested Language">
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Choice of Text" prop="gidgrp.rec.gtxinrc">
            <c-select v-model="model.gidgrp.rec.gtxinrc" style="width:100%" placeholder="请选择Choice of Text">
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Applicable Rules" prop="gidgrp.blk.apprulc">
            <c-select v-model="model.gidgrp.blk.apprulc" style="width:100%" placeholder="请选择Applicable Rules">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Applicable Rules" prop="gidgrp.blk.apprultxtc">
            <c-input  v-model="model.gidgrp.blk.apprultxtc" maxlength="35"  placeholder="请输入Applicable Rules"></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/Gitopn/Event"

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

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

    }
}
</script>
<style>

</style>
