<template>
  <div class="eibs">
     <!-- =================顶部====================== -->
    <c-row>
      <!-- =======左边======== -->
      <c-col :span="12" style="padding-right: 20px">
        <c-col :span="24">
          <c-col :span="20">
            <el-form-item label="转让信用证编号" prop="ltdgrp.rec.ownref" style="width: 100%">
              <c-input
                disabled
                v-model="model.ltdgrp.rec.ownref"
                maxlength="16"
                style="width: 95%"
                placeholder="请输入转让信用证编号"
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="1">
              <c-button size="small" type="primary" style="margin: 0 10px 0 0; padding: 0 12px" @click="onSeainf">
                <i class="el-icon-info" style="font-size:15px"></i>
              </c-button>
          </c-col>
           <c-col :span="2" :offset="1" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="!this.flag && model.ltdgrp.rec.ownref == ''? false:true"
            @click="onDetpButgetref"
          >
            获取
          </c-button>
        </c-col>
        </c-col>


       <c-col :span="24">
        <c-col :span="20">
          <el-form-item
            label="单据编号"
            prop="btdgrp.rec.ownref"
            style="width: 100%"
          >
            <c-input
              v-model="model.btdgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入出口单据编号"
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <!-- <c-col :span="1" style="text-align: right"> -->
        <c-col :span="1">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
          >
            <i class="el-icon-info" style="font-size:15px"></i>
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <c-col :span="2" :offset="1" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="!this.flag && model.btdgrp.rec.ownref == ''? false:true"
            @click="onDetpButgetref"
          >
            获取
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <!-- </c-col> -->
      </c-col>
      </c-col>
      <!-- =====右边 =====-->
    <c-col :span="12" style="padding-left: 20px">
      <c-col :span="24">
          <c-col :span="20">
          <el-form-item
            label="信用证编号"
            prop="ledgrp.rec.ownref"
            style="width: 100%"
          >
            <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入信用证编号"
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <!-- <c-col :span="1" style="text-align: right"> -->
        <c-col :span="1">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
          >
            <i class="el-icon-info" style="font-size:15px"></i>
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <c-col :span="2" :offset="1" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="!this.flag && model.ledgrp.rec.ownref == ''? false:true"
            @click="onDetpButgetref"
          >
            获取
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
      </c-col>

      <c-col :span="24">
        <el-form-item label="票据合同名称" prop="btdgrp.rec.nam">
          <c-input
            disabled
            v-model="model.btdgrp.rec.nam"
            maxlength="40"
            placeholder="请输入票据合同名称"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
    </c-row>

<!-- ================================================= -->
   
      <c-row>
      <c-col :span="12" style="padding-right: 20px">
        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="单据金额" prop="btdgrp.cbs.max.cur">
              <c-select
                v-model="model.btdgrp.cbs.max.cur"
                style="width: 100%"
                placeholder="请选择币种"
                :code="codes.cur"
                disabled
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="7">
            <el-form-item label="" label-width="5px" prop="btdgrp.cbs.max.amt">
              <c-input-currency
                v-model="model.btdgrp.cbs.max.amt"
                style="text-align: left; width: 100%"
                class="m-input-currency"
                placeholder="请输入单据金额"
                @keyup.enter.native="$event.target.blur()"
                disabled
              ></c-input-currency>
            <!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
          </el-form-item>
          </c-col>

          <c-col :span="5">
            <c-checkbox
              v-model="model.bttp0.aammod.addamtflg"
              style="margin-left: 10px"
              disabled
              >附加金额</c-checkbox
            >
          </c-col>
        </c-col>

        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="余额" prop="btdgrp.cbs.opn1.cur">
              <c-select
                v-model="model.btdgrp.cbs.opn1.cur"
                style="width: 100%"
                placeholder="请输入余额"
                :code="codes.cur"
                disabled
              ></c-select>
            </el-form-item>
          </c-col>
          <c-col :span="7">
            <el-form-item label="" label-width="5px" prop="btdgrp.cbs.opn1.amt">
              <c-input
                v-model="model.btdgrp.cbs.opn1.amt"
                style="text-align: left; width: 100%"
                class="m-input-currency"
                placeholder="请输入余额"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>

      <c-col :span="24">
        <el-form-item label="单据类型" prop="btdgrp.rec.doctypcod">
          <c-select
            disabled
            v-model="model.btdgrp.rec.doctypcod"
            style="width: 100%"
            maxlength="1"
            placeholder="请选择单据类型"
          >
            <el-option
              v-for="item in codes.doctypcod"
              :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="到期日" prop="btdgrp.rec.matdat">
          <c-date-picker
            type="date"
            disabled
            v-model="model.btdgrp.rec.matdat"
            value-format="yyyy-MM-dd"
            style="width: 100%"
            placeholder="请选择到期日"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
          label="从第二受益人那收到单据日期"
          prop="btdgrp.rec.rcvdatbe2"
        >
          <c-date-picker
            type="date"
            disabled
            v-model="model.btdgrp.rec.rcvdatbe2"
            value-format="yyyy-MM-dd"
            style="width: 100%"
            placeholder="请选择从第二受益人那收到单据日期"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
          label="从第一受益人那收到单据日期"
          prop="btdgrp.rec.rcvdatbe1"
        >
          <c-date-picker
            type="date"
            disabled
            v-model="model.btdgrp.rec.rcvdatbe1"
            value-format="yyyy-MM-dd"
            style="width: 100%"
            placeholder="请选择从第一受益人那收到单据日期"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="单据状态" prop="btdgrp.rec.docsta">
          <c-select
            disabled
            v-model="model.btdgrp.rec.docsta"
            style="width: 100%"
            maxlength="40"
            placeholder="请选择单据状态"
          >
            <el-option
              v-for="item in codes.docsta"
              :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="更改金额" prop="setmod.doccur">
              <c-select
                v-model="model.setmod.doccur"
                style="width: 100%"
                placeholder="请选择币种"
                :code="codes.cur"
                disabled
              ></c-select>
            </el-form-item>
          </c-col>
          <c-col :span="7">
            <el-form-item label="" label-width="5px" prop="setmod.docamt">
              <c-input
                v-model="model.setmod.docamt"
                style="text-align: left; width: 100%"
                class="m-input-currency"
                placeholder="更改金额"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
    </c-col>
    <!-- ========================右边======================= -->
      <c-col :span="12" style="padding-left: 20px">
        <c-col :span="24">
          <el-form-item label="第一受益人" prop="btdgrp.be1.pts.ref">
            <c-input
              disabled
              v-model="model.btdgrp.be1.pts.ref"
              maxlength="16"
              placeholder="请输入第一受益人"
            ></c-input>
          </el-form-item>
        </c-col>

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

        <c-col :span="24">&nbsp;</c-col>

        <c-col :span="24">
          <el-form-item label="第二受益人" prop="btdgrp.be2.pts.ref">
            <c-input
              disabled
              v-model="model.btdgrp.be2.pts.ref"
              maxlength="16"
              placeholder="请输入第二受益人"
            ></c-input>
          </el-form-item>
        </c-col>

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

        <c-col :span="24">&nbsp;</c-col>
        <c-col :span="24">&nbsp;</c-col>
        <c-col :span="24">&nbsp;</c-col>
        <c-col :span="24">&nbsp;</c-col>
        <c-col :span="24">&nbsp;</c-col>

         <c-col :span="24">
        <el-form-item label="承兑报文的详细内容" prop="trnmod.swiadd.strinf">
          <c-input
            type="textarea"
            v-model="model.trnmod.swiadd.strinf"
            maxlength="35"
            show-word-limit
            placeholder="请输入承兑报文的详细内容"
          ></c-input>
        </el-form-item>
      </c-col>
      </c-col>
    </c-row>
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bttacc/Event";

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