<template>
  <div class="eibs-tab">
    <!-- =================顶部====================== -->
    <c-col :span="24">
      <c-col :span="8">
        <el-form-item label="Reference" prop="bodgrp.rec.ownref">
          <c-input
            disabled
            v-model="model.bodgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入Reference"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="4">
        <el-form-item label="" label-width="15px">
          <c-button size="small" type="primary;width:10%" @click="onSeainf"
            >i</c-button
          >
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="Name" prop="bodgrp.rec.nam">
          <c-input
            disabled
            v-model="model.bodgrp.rec.nam"
            maxlength="40"
            style="width:88%"
            placeholder="请输入Name"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
    <c-row>
      <!-- ====================左边======================= -->
      <c-col :span="11">
        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="Document Amount" prop="bodgrp.cbs.max.cur">
              <c-select
                v-model="model.bodgrp.cbs.max.cur"
                style="width:100%"
                placeholder="CUR"
              >
              <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
              label=""
              style="text-align: left"
              label-width="20px"
              prop="bodgrp.cbs.max.amt"
            >
              <c-input
                v-model="model.bodgrp.cbs.max.amt"
                placeholder="请输入Document Amount"
              ></c-input
            ></el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="Open Amount" prop="bodgrp.cbs.opn1.cur">
              <c-select
                v-model="model.bodgrp.cbs.opn1.cur"
                style="width:100%"
                placeholder="CUR"
              >
              <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
              label=""
              style="text-align: left"
              label-width="20px"
              prop="bodgrp.cbs.opn1.amt"
            >
              <c-input
                v-model="model.bodgrp.cbs.opn1.amt"
                placeholder="请输入Open Amount"
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
          <el-form-item
            label="Collection Condition"
            prop="bodgrp.rec.doctypcod"
          >
            <c-select
              v-model="model.bodgrp.rec.doctypcod"
              style="width:100%"
              placeholder="请选择Collection Condition"
            >
            <el-option
                  v-for="item in codes.doctyp"
                  :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="Document Set Status" prop="bodgrp.rec.docsta">
            <c-input
              v-model="model.bodgrp.rec.docsta"
              maxlength="40"
              placeholder="请输入Document Set Status"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-col :span="16">
            <el-form-item label="Tenor Specification" prop="bodgrp.rec.matdat">
              <c-date-picker
                type="date"
                v-model="model.bodgrp.rec.matdat"
                style="width:100%"
                placeholder="请选择Maturity Date"
              ></c-date-picker>
            </el-form-item>
          </c-col>

          <c-col :span="4">
            <el-form-item
              label=""
              style="text-align: left"
              label-width="6px"
              prop="bodgrp.rec.matpercnt"
            >
              <c-input
                v-model="model.bodgrp.rec.matpercnt"
                placeholder="0"
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>

        <c-col :span="24">
          <el-form-item label="" prop="bodgrp.rec.matperbeg">
            <c-select
              v-model="model.bodgrp.rec.matperbeg"
              style="width:100%"
              placeholder="请选择Start of Maturity Period MATBEG"
            >
            <el-option
                  v-for="item in codes.matbeg"
                  :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="Order Date" prop="bodgrp.rec.rcvdat">
            <c-date-picker
              type="date"
              v-model="model.bodgrp.rec.rcvdat"
              style="width:50%"
              placeholder="请选择Order Date"
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Narrative" prop="strinf">
            <c-input
              type="textarea"
              v-model="model.strinf"
              maxlength="50"
              show-word-limit
              placeholder="请输入Narrative"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <!-- ====================右边======================= -->
      <c-col :span="11" :offset="1">
        <c-col :span="24">
          <el-form-item label="Drawer.Ref" prop="bodgrp.drr.pts.ref">
            <c-input
              v-model="model.bodgrp.drr.pts.ref"
              maxlength="16"
              style="width:50%"
              placeholder="请输入Drawer"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Drawer.Name" prop="bodgrp.drr.pts.nam">
            <c-input
              v-model="model.bodgrp.drr.pts.nam"
              maxlength="40"
              placeholder="请输入Name of Party"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Collecting Bank.Ref" prop="bodgrp.col.pts.ref">
            <c-input
              v-model="model.bodgrp.col.pts.ref"
              maxlength="16"
              style="width:50%"
              placeholder="请输入Collecting Bank"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Collecting Bank.Name" prop="bodgrp.col.pts.nam">
            <c-input
              v-model="model.bodgrp.col.pts.nam"
              maxlength="40"
              placeholder="请输入Name of Party"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Drawee.Ref" prop="bodgrp.dre.pts.ref">
            <c-input
              v-model="model.bodgrp.dre.pts.ref"
              maxlength="16"
              style="width:50%"
              placeholder="请输入Drawee"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Drawee.Name" prop="bodgrp.dre.pts.nam">
            <c-input
              v-model="model.bodgrp.dre.pts.nam"
              maxlength="40"
              placeholder="请输入Name of Party"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Presentation Date" prop="bodgrp.rec.predat">
            <c-date-picker
              type="date"
              v-model="model.bodgrp.rec.predat"
              style="width:50%"
              placeholder="请选择Presentation Date"
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-checkbox v-model="model.sndmsg">Send Message</c-checkbox>
        </c-col>
      </c-col>

      <!--<c-col :span="12">
	    <span  v-text="model.botp0.matp.mattxtlab"   data-path=".botp0.matp.mattxtlab" > </span>
	   </c-col>                            
	   <c-col :span="12">
	    <span  v-text="model.bodgrp.rec.matpertyp"   data-path=".bodgrp.rec.matpertyp" > </span>
	    </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/Botcan/Event";

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