<template>
  <div class="eibs">
    <!-- ================= 左 ================== -->
    <c-col :span="12" style="padding-right: 20px">
      <c-col :span="24" class="fieldName">
        <c-ptap
          disabled
          :disabledExtkey="typeof this.model.trnInfo !== 'undefined' && this.model.trnInfo.sptHldflg === 'X'"
          :argadr="{ title: 'Advising Bank', grp: 'lidgrp', rol: 'adv' }"
          :haveAdrLabel="true"
          :isAdrblk="true"
          :model="model"
          ptytyp="B"
          :requiredExtkey="true"
          @handleChange="onAdvChange"
          :isLabel120="false"></c-ptap>
      </c-col>
      <c-col :span="24" class="fieldName">
        <c-ptap
          disabled
          :disabledExtkey="true"
          :disabledDetailTrn="true"
          :argadr="{ title: 'Reimbursement Bank(53)', grp: 'lidgrp', rol: 'rmb' }"
          :haveAdrLabel="true"
          :isAdrblk="true"
          :model="model"
          ptytyp="B"
          @change="defaultLidgrpRecAutdatN1000"
          :isLabel120="false"></c-ptap>
      </c-col>
    </c-col>

    <!-- ================右  ==================== -->
    <c-col :span="12" style="padding-left: 20px">
      <c-col :span="24" class="fieldName">
        <c-ptap
          :disabled="typeof this.model.trnInfo !== 'undefined' && this.model.trnInfo.sptHldflg === 'X'"
          :disabledExtkey="typeof this.model.trnInfo !== 'undefined' && this.model.trnInfo.sptHldflg === 'X'"
          :argadr="{ title: '2nd Advising Bank(57)', grp: 'lidgrp', rol: 'a2b' }"
          :haveAdrLabel="true"
          :isAdrblk="true"
          :model="model"
          ptytyp="B"
          :isLabel120="false"
          :charmod="0"></c-ptap>
      </c-col>
      <c-col :span="24" class="fieldName" v-if="model.lidgrp.rec.cnfdet == 'A' || model.lidgrp.rec.cnfdet == 'C'">
        <c-ptap
          :argadr="{ title: 'Requested Confirmation party(58)', grp: 'lidgrp', rol: 'con' }"
          :haveAdrLabel="true"
          :isAdrblk="true"
          :model="model"
          ptytyp="B"
          :requiredExtkey="true"
          @handleChange="onAvbwthChange"
          :isLabel120="false"
          :charmod="0"></c-ptap>
      </c-col>
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "../event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess, Event],
  data() {
    return {};
  },
  methods: {
    handleEdit() {
      console.log("1111测试");
    },

    addRow() {},
    removeRow() {},
    defaultLidgrpRecAutdatN1000() {
      if (this.model.lidgrp.rmb.rolsetflg == "Y") {
        this.model.lidgrp.rec.autdat = new Date();
      }
    },
  },
  watch: {
    "model.lidgrp.ben.pts.ennam": {
      immediate: true,
      handler(val, oldval) {
        this.model.umdmod.bennam = this.model.lidgrp.ben.pts.ennam;
      },
    },
  },
  created: function () {},
};
</script>
<style></style>