<template>
  <div class="eibs-tab">
    <c-row>
      <c-col :span="11">
        <!-- Available with -->
        <c-col :span="24">
          <el-form-item label="Available with" prop="ltdgrp.rec.avbwth">
            <c-select
              v-model="model.ltdgrp.rec.avbwth"
              style="width: 100%"
              placeholder="请选择Available with"
              :code="codes.avbwth"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '指定银行',
              grp: 'ltdgrp',
              rol: 'avt',
            }"
            :noRef="true"
            :onlySearch="true"
            @onSeainf="onSeainf"
            @onAplpDet="onAvtpDet"
          >
          </c-ptap>
        </c-col>

        <c-col :span="24">
          <el-form-item label="名称地址" prop="ltdgrp.blk.avbwthtxt">
            <c-input
              type="textarea"
              :rows="3"
              v-model="model.ltdgrp.blk.avbwthtxt"
              maxlength="35"
              show-word-limit
              placeholder="请输入名称地址"
            ></c-input>
          </el-form-item>
        </c-col>
        <!-- <c-col :span="12">
      <el-form-item label="Address Block" prop="ltdgrp.avb.pts.adrblk">
        <c-input
          type="textarea"
          v-model="model.ltdgrp.avb.pts.adrblk"
          maxlength="35"
          show-word-limit
          placeholder="请输入Address Block"
        ></c-input>
      </el-form-item>
    </c-col> -->

        <c-col :span="24">
          <el-form-item label="Available by" prop="ltdgrp.rec.avbby">
            <c-select
              v-model="model.ltdgrp.rec.avbby"
              style="width: 100%"
              placeholder="请选择Available by"
              :code="codes.avbby"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item
            label="Deferred Payment Details"
            prop="ltdgrp.blk.defdet"
          >
            <c-input
              type="textarea"
              :rows="3"
              v-model="model.ltdgrp.blk.defdet"
              maxlength="35"
              show-word-limit
              placeholder="请输入Deferred Payment Details"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Drafts at" prop="ltdgrp.blk.dftat">
            <c-input
              type="textarea"
              :rows="3"
              v-model="model.ltdgrp.blk.dftat"
              maxlength="35"
              show-word-limit
              placeholder="请输入Drafts at"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '汇票申请人',
              grp: 'ltdgrp',
              rol: 'drw',
            }"
            :noRef="true"
            @onSeainf="onSeainf"
            @onAplpDet="onDrwpDet"
          >
          </c-ptap>
        </c-col>
      </c-col>

      <c-col :span="11" :offset="1">
        <c-col :span="24">
          <el-form-item label="Mixed Payment Details" prop="ltdgrp.blk.mixdet">
            <c-input
              type="textarea"
              :rows="4"
              v-model="model.ltdgrp.blk.mixdet"
              maxlength="35"
              show-word-limit
              placeholder="请输入Mixed Payment Details"
            ></c-input>
          </el-form-item>
        </c-col>

        <!-- Days of presentation period -->
        <c-col :span="24">
          <el-form-item label="Days of pre.period" prop="ltdgrp.rec.prepers18">
            <c-input
              v-model="model.ltdgrp.rec.prepers18"
              placeholder="请输入Days of presentation period"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Presentation Period" prop="ltdgrp.blk.preper">
            <c-input
              type="textarea"
              v-model="model.ltdgrp.blk.preper"
              maxlength="35"
              show-word-limit
              placeholder="请输入Presentation Period"
            ></c-input>
          </el-form-item>
        </c-col>

        <!-- Additional Details to Code for Charges CHATO -->
        <c-col :span="24">
          <el-form-item
            label="Additional Details to Code for Charges CHATO"
            prop="ltdgrp.blk.feetxt"
          >
            <c-input
              type="textarea"
              :rows="6"
              v-model="model.ltdgrp.blk.feetxt"
              maxlength="35"
              show-word-limit
              placeholder="请输入Additional Details to Code for Charges CHATO"
            ></c-input>
          </el-form-item>
        </c-col>

        <!-- Own Charges Borne by -->
        <c-col :span="18">
          <el-form-item label="Own Charges Borne by" prop="ltdgrp.rec.chato">
            <c-select
              v-model="model.ltdgrp.rec.chato"
              style="width: 100%"
              placeholder="请选择Own Charges Borne by"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="18">
          <el-form-item label="Country or region Code" prop="ltdgrp.rec.stacty">
            <c-select
              v-model="model.ltdgrp.rec.stacty"
              style="width: 100%"
              placeholder="请选择Country or region Code"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="18">
          <el-form-item label="Maximum Tenor" prop="ltdgrp.rec.tenmaxday">
            <c-input
              v-model="model.ltdgrp.rec.tenmaxday"
              placeholder="请输入Maximum Tenor"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
    </c-row>

    <c-row>
      <!-- Dispatch from -->
      <c-col :span="11">
        <el-form-item label="Dispatch from" prop="ltdgrp.rec.shpfro">
          <c-input
            type="textarea"
            :rows="3"
            show-word-limit
            v-model="model.ltdgrp.rec.shpfro"
            maxlength="65"
            placeholder="请输入Dispatch from"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="11" :offset="1">
        <el-form-item label="Air-/Port of Departure" prop="ltdgrp.rec.porloa">
          <c-input
            type="textarea"
            :rows="3"
            v-model="model.ltdgrp.rec.porloa"
            maxlength="65"
            show-word-limit
            placeholder="请输入Air-/Port of Departure"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="11">
        <el-form-item label="Air-/Port of Destination" prop="ltdgrp.rec.pordis">
          <c-input
            type="textarea"
            :rows="3"
            v-model="model.ltdgrp.rec.pordis"
            maxlength="65"
            show-word-limit
            placeholder="Air-/Port of Destination"
          ></c-input>
        </el-form-item>
      </c-col>

      <!-- Final Destination -->
      <c-col :span="11" :offset="1">
        <el-form-item label="Final Destination" prop="ltdgrp.rec.shpto">
          <c-input
            type="textarea"
            :rows="3"
            v-model="model.ltdgrp.rec.shpto"
            maxlength="65"
            show-word-limit
            placeholder="请输入Final Destination"
          ></c-input>
        </el-form-item>
      </c-col>

      <!-- Shipment Period -->
      <c-col :span="11">
        <el-form-item label="Shipment Period" prop="ltdgrp.blk.shpper">
          <c-input
            type="textarea"
            :rows="3"
            v-model="model.ltdgrp.blk.shpper"
            maxlength="65"
            show-word-limit
            placeholder="请输入Shipment Period"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-row>
  </div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Ptap from "~/views/Public/Ptap";
import Event from "~/model/Lttame/Event";

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