<template>
	<div class="eibs-tab">
		<!-- ==================左边================ -->
		<c-col :span="12" style="padding-right: 20px;">
      <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:100%" placeholder="" :disabled="!model.bodgrp.drr.pts.ptainr">
          </c-input>
        </el-form-item>
      </c-col>
			<c-col :span="24">
				<c-ptap :disabled="true" :disabledRef="!model.bodgrp.drr.pts.ptainr" :disabledExtkey="true" :model="model" :isAdrblk="true" :haveAdrLabel="false" :argadr="{ title: 'Drawer', grp: 'bodgrp', rol: 'drr'}" :ptytyp="'C'" :isLabel120="false"></c-ptap>
			</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" style="width:100%" placeholder="" maxlength="16" :disabled="!model.bodgrp.dre.pts.ptainr">
          </c-input>
        </el-form-item>
      </c-col>
			<c-col :span="24">
				<c-ptap :disabled="true" :disabledRef="!model.bodgrp.dre.pts.ptainr" :disabledExtkey="true" :model="model" :isAdrblk="true" :haveAdrLabel="false" :argadr="{ title: 'Drawee', grp: 'bodgrp', rol: 'dre'}" :ptytyp="'C'" :isLabel120="false"></c-ptap>
			</c-col>
		</c-col>

		<!-- ============右边================= -->
		<c-col :span="12" style="padding-left: 20px;">
      <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" style="width:100%" placeholder="" maxlength="16" :disabled="!model.bodgrp.col.pts.ptainr">
          </c-input>
        </el-form-item>
      </c-col>
			<c-col :span="24">
				<c-ptap :disabled="true" :disabledRef="!model.bodgrp.col.pts.ptainr" :disabledExtkey="true" :model="model" :isAdrblk="true" :haveAdrLabel="false" :argadr="{ title: 'Collecting Bank', grp: 'bodgrp', rol: 'col'}" :ptytyp="'B'" :isLabel120="false"></c-ptap>
			</c-col>
		</c-col>
	</div>
</template>
<script>
import event from "../event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [event],
  data() {
    return {
      ptsaddg: {
        columns: [
          {
            title: "角色",
            width: "120px",
            dataIndex: "rol",
            show: "select"
          },
          {
            title: "机构实体",
            width: "180px",
            dataIndex: "ptyextkey",
            show: "input"
          },
          {
            title: "名称",
            width: "300px",
            dataIndex: "nam"
          },
          {
            title: "参考地址",
            width: "300px",
            dataIndex: "ref"
          }
        ],
        urls: "botp.ptsaddp.ptsaddg"
      }
    };
  },
  methods: {},
  created() {}
};
</script>
<style>
</style>