<template>
  <div class="eibs-tab">
    <c-col :span="12">
                      <el-form-item label="是否SWIFT格式" prop="gitp.swiftflg">
                          <c-select v-model="model.gitp.swiftflg" style="width:100%" placeholder="请选择是否SWIFT格式">
                              <el-option
                                v-for="item in codes.swiftflg"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                              >
                              </el-option>
                          </c-select>
                      </el-form-item>
         </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="是否对外担保" prop="gidgrp.rec.fingua">
            <c-select  v-model="model.gidgrp.rec.fingua" style="width:100%" placeholder="请选择是否对外担保">
              <el-option
                    v-for="item in codes.fingua"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  >
              </el-option>
            </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
         <c-col :span="20">
            <el-form-item  label="对外担保类型" prop="gidgrp.rec.cfaguatyp">
                 <c-select :disabled="model.gidgrp.rec.fingua=='N'||model.gidgrp.rec.fingua==''" v-model="model.gidgrp.rec.cfaguatyp" style="width:90%" placeholder="请选择对外担保类型">
                    <el-option
                     v-for="item in codes.cfaguatyp"
                     :key="item.value"
                     :label="item.label"
                     :value="item.value"
                    >
                    </el-option>
                   </c-select>
                    </el-form-item>
          </c-col>
                      <c-col :span="4" class="centerLable">
                          <c-checkbox v-if="model.gidgrp.cbs.max.cur=='CNY'" disabled v-model="model.gidgrp.rec.cmtflg">跨境人民币保函</c-checkbox>
                      </c-col>
                      <!-- <c-checkbox v-if="model.gidgrp.rec.fingua=='Y'" disabled v-model="model.gidgrp.rec.cmtflg">跨境人民币保函</c-checkbox> -->
       </c-col>
                                               
       <!-- <c-col :span="12">
        <el-form-item label="是否SWIFT格式" prop="gitp.swiftflg">
            <c-select v-model="model.gitp.swiftflg" style="width:100%" placeholder="请选择是否SWIFT格式">
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="是否对外担保" prop="gidgrp.rec.fingua">
            <c-select v-model="model.gidgrp.rec.fingua" style="width:100%" placeholder="请选择是否对外担保">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="对外担保类型" prop="gidgrp.rec.cfaguatyp">
            <c-select v-model="model.gidgrp.rec.cfaguatyp" style="width:100%" placeholder="请选择对外担保类型">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.gidgrp.rec.cmtflg">跨境人民币保函</c-checkbox>
       </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 {
        }
    },
     computed: {
      //  cmtflg:{
      //   get() {
      //       return this.model.gidgrp.rec.fingua=='Y';
      //   },
      //   set(val) {
      //       this.model.gidgrp.rec.cmtflg = val ? 'X' : '';
      //   },
       
    // },
  },
    methods:{...Event},
    created:function(){

    }
}
</script>
<style>

</style>
