<template>
  <div class="eibs-tab">

    <!-- ====================左边======================= -->
    <c-col :span="12" style="padding-right: 20px">
      <c-col :span="24" class="fieldName">
        <el-form-item label-width="0" style="margin-bottom: 10px;">
          <c-ptap :argadr="{ title: 'Drawee', grp: 'bcdgrp', rol: 'dre' }" 
                  :haveAdrLabel="false" 
                  :isAdrblk="true" 
                  :disabledExtkey="true"
                  :disabledRef="true"
                  :requiredExtkey="true" 
                  :model="model" 
                  :disabled="true"
                  :charmod="0"
                  ptytyp="C" :isLabel120="false"></c-ptap>
        </el-form-item>
      </c-col>

      <c-col :span="24" class="fieldName">
        <el-form-item label-width="0" style="margin-bottom: 0px;">
          <c-ptap :argadr="{ title: 'Remitting Bank', grp: 'bcdgrp', rol: 'rmi' }" 
                  :haveAdrLabel="false" 
                  :noEditNameAndAddress="!!model.bcdgrp.rmi.pts.extkey"
                  :isAdrblk="true" 
                  :disabledRef="typeof this.model.trnInfo !== 'undefined' && this.model.trnInfo.sptHldflg === 'X'"
                  :disabledExtkey="typeof this.model.trnInfo !== 'undefined' && this.model.trnInfo.sptHldflg === 'X'"
                  :model="model" 
                  :charmod="0"
                  ptytyp="B" :isLabel120="false"></c-ptap>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- ====================右边======================= -->
    <c-col :span="12" style="padding-left: 20px">
      <c-col :span="24" class="fieldName">
        <el-form-item label-width="0" style="margin-bottom: 10px;">
          <c-ptap :argadr="{ title: 'Drawer', grp: 'bcdgrp', rol: 'drr' }" 
                  :haveAdrLabel="false" 
                  :noEditNameAndAddress="!!model.bcdgrp.drr.pts.extkey"
                  :requiredNam="true"
                  :disabledRef="typeof this.model.trnInfo !== 'undefined' && this.model.trnInfo.sptHldflg === 'X'"
                  :disabledExtkey="typeof this.model.trnInfo !== 'undefined' && this.model.trnInfo.sptHldflg === 'X'"
                  :model="model" 
                  :charmod="0"
                  ptytyp="C,F" :isLabel120="false"></c-ptap>
        </el-form-item>
      </c-col>
     
      <c-col :span="24" class="fieldName">
        <el-form-item label-width="0" style="margin-bottom: 0;">
          <c-ptap :argadr="{ title: '2nd Collecting Bank', grp: 'bcdgrp', rol: 'co2' }" 
                  :haveAdrLabel="false" 
                  :noEditNameAndAddress="!!model.bcdgrp.co2.pts.extkey"
                  :isAdrblk="true" 
                  :disabledRef="typeof this.model.trnInfo !== 'undefined' && this.model.trnInfo.sptHldflg === 'X'"
                  :disabledExtkey="typeof this.model.trnInfo !== 'undefined' && this.model.trnInfo.sptHldflg === 'X'"
                  :model="model" 
                  :charmod="0"
                  ptytyp="B" :isLabel120="false"></c-ptap>
        </el-form-item>
      </c-col>
    </c-col>
  </div>
</template>
<script>
import event from "../event"

export default {
  components: {},
  inject: ['root'],
  props: ["model", "codes"],
  mixins: [event],
  data() {
    return {}
  },
  methods: {},
  created: function () {

  }
}
</script>
<style>

</style>