<template>
  <!--<div class="eibs-tab">-->
  <c-row>
    <!--左边start-->
    <c-col :span="11">
      <c-col :span="22">
        <el-form-item label="Internal Discrepancies" prop="bfdgrp.blk.intdis">
          <c-input
            type="textarea"
            v-model="model.bfdgrp.blk.intdis"
            maxlength="65"
            show-word-limit
            placeholder="请输入Internal Discrepancies"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="2">
        <c-button
          size="small"
          type="primary"
          icon="el-icon-search"
          @click="onIntdisButtxmsel"
        >
          ...
        </c-button>
      </c-col>
      <c-col :span="22">
        <el-form-item label="Comments and Conclusions" prop="bfdgrp.blk.comcon">
          <c-input
            type="textarea"
            v-model="model.bfdgrp.blk.comcon"
            maxlength="65"
            show-word-limit
            placeholder="请输入Comments and Conclusions"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="2">
        <c-button
          size="small"
          type="primary"
          icon="el-icon-search"
          @click="onComconButtxmsel"
        >
          ...
        </c-button>
      </c-col>
      <c-col :span="22">
        <el-form-item
          label="Settlement Instructions transaction field"
          prop="bfdgrp.blk.setinsbe"
        >
          <c-input
            type="textarea"
            v-model="model.bfdgrp.blk.setinsbe"
            maxlength="65"
            show-word-limit
            placeholder="请输入Settlement Instructions transaction field"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="2">
        <c-button
          size="small"
          type="primary"
          icon="el-icon-search"
          @click="onSetinstxmButtxmsel"
        >
          ...
        </c-button>
      </c-col>
      <c-col :span="22">
        <el-form-item label="Discrepancies" prop="bfdgrp.blk.docdis">
          <c-input
            type="textarea"
            v-model="model.bfdgrp.blk.docdis"
            maxlength="50"
            show-word-limit
            placeholder="请输入Discrepancies"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="2">
        <c-button
          size="small"
          type="primary"
          icon="el-icon-search"
          @click="onDocdisButtxmsel"
        >
          ...
        </c-button>
      </c-col>
      <c-col :span="24">
        <c-checkbox v-model="model.bfdsnd.ingdsc"
          >Ignore Discrepancies</c-checkbox
        >
      </c-col>
    </c-col>
    <!--左边end-->
    <!--右边start-->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <c-checkbox v-model="model.bfdgrp.blk.docdisflg"
          >Discrepancies modified</c-checkbox
        >
      </c-col>
      <c-col :span="24">
        <el-form-item label="Further Handling" prop="bftp.folwupopt">
          <c-select
            v-model="model.bftp.folwupopt"
            style="width: 100%"
            placeholder="请选择Further Handling"
          >
            <el-option
              v-for="item in codes.folwupopt"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-checkbox v-model="model.bfdgrp.rec.approvcod"
          >Documents on Approval Basis</c-checkbox
        >
      </c-col>

      <c-col :span="24">
        <c-checkbox v-model="model.bfdsnd.snd732">Create MT 732</c-checkbox>
      </c-col>

      <c-col :span="24">
        <c-checkbox v-model="model.bftp.cre752flg">Create 752</c-checkbox>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Further Identification" prop="bftp.furide">
          <c-select
            v-model="model.bftp.furide"
            style="width: 100%"
            placeholder="请选择Further Identification"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Date of Advice" prop="bfdgrp.rec.disdat">
          <c-date-picker
            type="date"
            v-model="model.bfdgrp.rec.disdat"
            style="width: 100%"
            placeholder="请选择Date of Advice"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Less comm." prop="bfdgrp.rec.lescom">
          <c-input
            v-model="model.bfdgrp.rec.lescom"
            placeholder="请输入Less comm."
          ></c-input>
        </el-form-item>
      </c-col>
      <!--
    <c-col :span="12">
      <el-form-item label="议付" prop="bfdsnd.yf">
        <c-input
          v-model="model.bfdsnd.yf"
          maxlength="10"
          placeholder="请输入议付"
        ></c-input>
      </el-form-item>
    </c-col>
-->
      <c-col :span="24">
        <c-checkbox v-model="model.bfdgrp.rec.docrolflg"
          >Send Documents to Another Address</c-checkbox
        >
      </c-col>

      <c-col :span="24">
        <el-form-item label="Receiver of Documents" prop="bfdgrp.rec.docrol">
          <c-select
            v-model="model.bfdgrp.rec.docrol"
            style="width: 100%"
            placeholder="请选择Receiver of Documents"
          >
            <el-option
              v-for="item in codes.rolall"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-ptap
        :model="model"
        :argadr="{
          title: '寄单行',
          grp: 'bfdgrp',
          rol: 'doc',
        }"
        :disabled="true"
        :isAdrblk="false"
        @onSeainf="onSeainf"
        @onDocpDet="onDocpDet"
      >
      </c-ptap>

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

      <c-col :span="12">
        <el-form-item
          label="External Key of Address"
          prop="bfdgrp.doc.pts.extkey"
        >
          <c-input
            v-model="model.bfdgrp.doc.pts.extkey"
            maxlength="16"
            placeholder="请输入External Key of Address"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="" prop="bftp.docp.ptsget.sdamod.seainf">
          <c-input
            v-model="model.bftp.docp.ptsget.sdamod.seainf"
            placeholder="请输入"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <c-button size="small" type="primary" @click="onDocpDet">
          Details
        </c-button>
      </c-col>

      <c-col :span="12">
        <el-form-item label="名称" prop="bfdgrp.doc.namelc">
          <c-input
            type="textarea"
            v-model="model.bfdgrp.doc.namelc"
            maxlength="35"
            show-word-limit
            placeholder="请输入名称"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="Address Block" prop="bfdgrp.doc.pts.adrblk">
          <c-input
            type="textarea"
            v-model="model.bfdgrp.doc.pts.adrblk"
            maxlength="35"
            show-word-limit
            placeholder="请输入Address Block"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="Chinese address" prop="bfdgrp.doc.dbfadrblkcn">
          <c-input
            type="textarea"
            v-model="model.bfdgrp.doc.dbfadrblkcn"
            maxlength="35"
            show-word-limit
            placeholder="请输入Chinese address"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="地址" prop="bfdgrp.doc.adrelc">
          <c-input
            type="textarea"
            v-model="model.bfdgrp.doc.adrelc"
            maxlength="35"
            show-word-limit
            placeholder="请输入地址"
          ></c-input>
        </el-form-item>
      </c-col>
      -->
    </c-col>
    <!--</div>-->
  </c-row>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bftsnd/Event";
import Ptap from "~/views/Public/Ptap";

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