<template>
  <div class="eibs-tab">
    <!-- ====================左边======================= -->
    <c-col :span="11">
      <c-col :span="24">
        <el-form-item label="Reference" prop="gidgrp.rec.ownref">
          <c-fullbox>
            <c-input
              v-model="model.gidgrp.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="onSeainf"
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <!-- <c-col :span="24">
      <c-col :span="12">
        <el-form-item label="Guarantee Amount" prop="gidgrp.cbs.max.cur">
          <c-select
            v-model="model.gidgrp.cbs.max.cur"
            style="width: 100%"
            placeholder="请选择Currency"
            @keyup.enter.native="nom1CurEvent"
            disabled
          >
            <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">
        <el-form-item
          style="text-align: left"
          label-width="5px"
          prop="gidgrp.cbs.max.amt"
        >
          <c-input-currency
            disabled
            v-model="model.gidgrp.cbs.max.amt"
            style="margin: 0 0 0 10px; width: 80%"
            placeholder=""
            @keyup.enter.native="
              defaultFunction('gidgrp.cbs.max.amt', model.gidgrp.cbs.max.amt)
            "
          ></c-input-currency>
        </el-form-item>
      </c-col>
      <c-col :span="4">
        <el-form-item prop="model.gitp0.gitp0s20">
          <c-checkbox disabled v-model="model.gitp0.gitp0s20"
            >Add.Amount</c-checkbox
          >
        </el-form-item>
      </c-col>
      </c-col> -->

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="Guarantee Amount" prop="gidgrp.cbs.max.cur">
            <c-select
              v-model="model.gidgrp.cbs.max.cur"
              style="width: 100%"
              placeholder="请选择Currency"
              disabled
            >
              <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
            disabled
            v-model="model.gidgrp.cbs.max.amt"
            style="margin: 0 0 0 5px; width: 90%"
          ></c-input>
        </c-col>
        <c-col :span="4" class="centerLable">
          <c-checkbox disabled v-model="model.gitp0.gitp0s20"
            >Add. Amount</c-checkbox
          >
        </c-col>
      </c-col>

      <c-col :span="12">
        <el-form-item label="Open Amount" prop="gidgrp.cbs.opn1.cur">
          <c-select
            disabled
            v-model="model.gidgrp.cbs.opn1.cur"
            style="width: 100%"
            placeholder="请选择Currency"
            @keyup.enter.native="nom1CurEvent"
          >
            <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="12">
        <el-form-item
          style="text-align: left"
          label-width="5px"
          prop="gidgrp.cbs.opn1.amt"
        >
          <c-input-currency
            disabled
            v-model="model.gidgrp.cbs.opn1.amt"
            style="text-align: left; width: 100%"
            placeholder=""
            @keyup.enter.native="
              defaultFunction('gidgrp.cbs.opn1.amt', model.gidgrp.cbs.opn1.amt)
            "
          ></c-input-currency>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Incoming Purpose" prop="gidgrp.rec.purposin">
          <c-select
            v-model="model.gidgrp.rec.purposin"
            style="width: 100%"
            placeholder="请选择Incoming Purpose "
            :code="codes.purposin"
            disabled
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Purpose of Message" prop="gidgrp.rec.purpos">
          <c-select
            v-model="model.gidgrp.rec.purpos"
            style="width: 100%"
            placeholder="请选择Purpose of Message"
            :code="codes.purpos"
            disabled
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Undertaking Type" prop="gidgrp.rec.gartyp">
          <c-select
            disabled
            v-model="model.gidgrp.rec.gartyp"
            style="width: 100%"
            placeholder="请选择Undertaking Type"
            :code="codes.typgar"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <!-- <c-col :span="24">
        <el-form-item label="Valid until" prop="gidgrp.rec.expdat">
            <c-date-picker disabled type="date"  v-model="model.gidgrp.rec.expdat" style="width:100%"  placeholder="请选择Valid until"></c-date-picker>
        </el-form-item>
      </c-col> -->

      <c-col :span="13">
        <el-form-item label="Expiry" prop="gidgrp.rec.expdat">
          <c-date-picker
            disabled
            type="date"
            v-model="model.gidgrp.rec.expdat"
            style="width: 100%"
            placeholder="请选择Expiry"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="11">
        <el-form-item
          style="text-align: left"
          label-width="5px"
          prop="gidgrp.rec.exptyp"
        >
          <c-select
            v-model="model.gidgrp.rec.exptyp"
            style="width: 100%"
            placeholder="请选择Expiry Type"
            :code="codes.exptyp"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Reference Date " prop="setmod.refdat">
          <c-date-picker
            disabled
            type="date"
            v-model="model.setmod.refdat"
            style="width: 100%"
            placeholder="请选择Reference Date "
          ></c-date-picker>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- ========================右边======================= -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <el-form-item label="Name" prop="gidgrp.rec.nam">
          <c-input
            disabled
            v-model="model.gidgrp.rec.nam"
            maxlength="40"
            placeholder="请输入Name"
          ></c-input>
        </el-form-item>
      </c-col>

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

      <c-col :span="24">
        <el-form-item label="Beneficiary" prop="gidgrp.ben.pts.nam">
          <c-input
            disabled
            v-model="model.gidgrp.ben.pts.nam"
            maxlength="40"
            placeholder="请输入Beneficiary"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Accountee" prop="gidgrp.ctr.pts.nam">
          <c-input
            disabled
            v-model="model.gidgrp.ctr.pts.nam"
            maxlength="40"
            placeholder="请输入Accountee"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Issuing Bank" prop="gidgrp.iss.pts.nam">
          <c-input
            disabled
            v-model="model.gidgrp.iss.pts.nam"
            maxlength="40"
            placeholder="请输入Issuing Bank"
          ></c-input>
        </el-form-item>
      </c-col>

      <!-- <c-col :span="24">
        <el-form-item label="" prop="model.gitp0.gitp0s20">
          <c-checkbox disabled v-model="model.gitp0.gitp0s20"
            >Add.Amount</c-checkbox
          >
        </el-form-item>
      </c-col> -->
    </c-col>

    <!-- <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop=".recget.sdamod.dadsnd">
            <c-input  v-model="model.gitp0.recget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col>
                                   
    
                  
       <c-col :span="12">
        <el-form-item label="" prop="gitp0.recget.sdamod.seainf">
            <c-input  v-model="model.gitp0.recget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>
                                                    
        -->

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

    <!-- <c-col :span="12">
        <el-form-item label="Currency" prop="gidgrp.cbs.max.cur">
            <c-input  v-model="model.gidgrp.cbs.max.cur" maxlength="3"  placeholder="请输入Currency"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Balance" prop="gidgrp.cbs.max.amt">
            <c-input  v-model="model.gidgrp.cbs.max.amt"  placeholder="请输入Balance"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Name of Party" prop="gidgrp.apl.pts.nam">
            <c-input  v-model="model.gidgrp.apl.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Currency" prop="gidgrp.cbs.opn1.cur">
            <c-input  v-model="model.gidgrp.cbs.opn1.cur" maxlength="3"  placeholder="请输入Currency"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Balance" prop="gidgrp.cbs.opn1.amt">
            <c-input  v-model="model.gidgrp.cbs.opn1.amt"  placeholder="请输入Balance"></c-input>
        </el-form-item>
       </c-col> -->

    <!-- <c-col :span="12">
        <el-form-item label="Handling Type" prop="gidgrp.rec.hndtyp">
            <c-select v-model="model.gidgrp.rec.hndtyp" style="width:100%" placeholder="请选择Handling Type">
              </c-select>
        </el-form-item>
       </c-col> -->

    <!-- <c-col :span="12">
        <el-form-item label="Name of Party" prop="gidgrp.ben.pts.nam">
            <c-input  v-model="model.gidgrp.ben.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></c-input>
        </el-form-item>
       </c-col>
                                   
       
                                                    
       <c-col :span="12">
        <el-form-item label="Name of Party" prop="gidgrp.ctr.pts.nam">
            <c-input  v-model="model.gidgrp.ctr.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></c-input>
        </el-form-item>
       </c-col> -->

    <!-- <c-col :span="12">
	    <span  v-text="model.gitp0.expfldlab"   data-path=".gitp0.expfldlab" > </span>
	</c-col>
                  
       
                  
	<c-col :span="12">
	    <span  v-text="model.gitp0.explab"   data-path=".gitp0.explab" > </span>
	</c-col>
                                                    
	<c-col :span="12">
	    <span  v-text="model.gitp0.liafldlab"   data-path=".gitp0.liafldlab" > </span>
	</c-col>
                   -->
    <!-- <c-col :span="12">
        <el-form-item label="Liability until" prop="gidgrp.rec.liadat">
            <c-date-picker type="date"  v-model="model.gidgrp.rec.liadat" style="width:100%"  placeholder="请选择Liability until"></c-date-picker>
        </el-form-item>
       </c-col> -->
    <!--                   
	<c-col :span="12">
	    <span  v-text="model.gitp0.lialab"   data-path=".gitp0.lialab" > </span>
	</c-col> -->
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitcom/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  methods: {
    ...Event,
    onSeainf(data) {
      this.$emit("onSeainf", data);
    },
  },
  created: function () {},
};
</script>
<style>
</style>
