<template>
  <div class="eibs-tab">
        <c-row>
        <c-col :span="24">
            <c-col :span="16">
               <c-col :span="24">
                    <el-form-item label="Guarantee Text with Variables" prop="gidgrp.blk.gtxgidtxt">
                        <c-input :disabled="model.gitp.gidtxtmodflgc == ''" type="textarea" rows="15" v-model="model.gidgrp.blk.gtxgidtxtc" maxlength="65" show-word-limit placeholder="请输入Guarantee Text with Variables" ></c-input>
                    </el-form-item>
               </c-col>
            </c-col>
            <c-col :span="6">
                    <c-col :span="24">
                            <c-input
                                style="margin:5px 0 0 10px;width:50%"
                                v-model="model.gidgrp.rec.ownref"
                                maxlength="16"
                                placeholder="请输入Reference"
                            ></c-input>
                    </c-col>
                    <c-col :span="24">
                         <c-button
                                style="margin:5px 0 0 10px"
                                size="small"
                                type="primary"
                                @click="onGitpButgetref"
                                >
                                获取
                                </c-button>
                    </c-col>
                    <c-col :span="24">
                        <c-checkbox  v-model="model.gitp.gidtxtmodflgc" style="margin:0 0 0 10px">Modify Guarantee Text</c-checkbox>
                    </c-col>
                    <c-col :span="24">
                        <c-checkbox v-model="model.gitp.chkgidtxtc" style="margin:0 0 0 10px">Allow *</c-checkbox>
                    </c-col>
                   
                    <c-col :span="24">
                         <c-button disabled size="small" type="primary" style="margin:5px 0 0 10px;width:50%" @click="onGitpButdifc">
                             vs. &System
                         </c-button>
                    </c-col>

                    <c-col :span="24">
                        <c-button disabled size="small" type="primary" style="margin:5px 0 0 10px;width:50%"  @click="onGitpButdifhisc">
                            vs. &History
                        </c-button>
                    </c-col>

                    <template v-if="model.gitp.gidtxtmodflgc=='X'">
                        <c-col :span="24">
                            <c-button size="small" type="primary" style="margin:5px 0 0 10px;width:50%" @click="onGitpShwgidtxtc">
                                Show&Text
                            </c-button>
                        </c-col>
                    </template>
                    

                    <c-col :span="24">
                        <c-button disabled size="small" type="primary" style="margin:5px 0 0 10px;width:50%" @click="onGitpGidtxtmodc">
                            修改中文保函文本
                        </c-button>
                    </c-col>
            </c-col>
        </c-col>
    </c-row>                                       
       <!-- <c-col :span="12">
        <el-form-item label="Guarantee Text  local undertaking" prop="gidgrp.blk.gidtxtc">
            <c-input type="textarea" v-model="model.gidgrp.blk.gidtxtc" maxlength="65" show-word-limit placeholder="请输入Guarantee Text  local undertaking" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Guarantee Text with Variables - Counter Undertaking" prop="gidgrp.blk.gtxgidtxtc">
            <c-input type="textarea" v-model="model.gidgrp.blk.gtxgidtxtc" maxlength="1" show-word-limit placeholder="请输入Guarantee Text with Variables - Counter Undertaking" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onGitpButgetrefc">
            Get &Ref.
        </c-button>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.gitp.gidtxtmodflgc">Modify Guarantee Text - Local Undertaking Seq. C</c-checkbox>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.gitp.chkgidtxtc">Allow *</c-checkbox>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onGitpButdifc">
            vs. S&ystem
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onGitpButdifhisc">
            vs. &History
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onGitpShwgidtxtc">
            Sho&w Text
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onGitpGidtxtmodc">
            修改中文保函文本
        </c-button>
       </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>
