<template>
  <div class="eibs-tab">
    <c-row>
      <c-col :span="24">
        <!-- ====================左边======================= -->
        <c-col :span="11">
            <c-ptap
              :model="model"
              :argadr="{
                title: '偿付银行',
                grp: 'ltdgrp',
                rol: 'rmt',
              }"
              @onSeainf="onSeainf"
              @onAplpDet="onRmtpDet"
            >
            </c-ptap>
        </c-col>
        <c-col :span="24">
          <c-col :span="11">
            <el-form-item
              label="Account Identification"
              prop="ltdgrp.rmt.pts.dftact"
            >
              <c-select
                v-model="model.ltdgrp.rmt.pts.dftact"
                style="width: 100%"
                placeholder="请选择Account Identification"
                
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="11" :offset="1">
            <el-form-item
              label="Reimbursing Bank Account Identification"
              label-width="280px"
              prop="ltdgrp.rec.rmbact"
            >
              <c-input
                v-model="model.ltdgrp.rec.rmbact"
                maxlength="35"
                placeholder="请输入Reimbursing Bank Account Identification"
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
        <!-- <c-col :span="24">
        <el-form-item label="Reimbursement Bank" prop="ltdgrp.rmt.pts.ref">
            <c-input  v-model="model.ltdgrp.rmt.pts.ref" maxlength="16"  placeholder="请输入Reimbursement Bank"></c-input>
        </el-form-item>
       </c-col>
       <c-col :span="24">
        <el-form-item label="External Key of Address" prop="ltdgrp.rmt.pts.extkey">
            <c-input  
            v-model="model.ltdgrp.rmt.pts.extkey" 
            maxlength="16"  
            placeholder="请输入External Key of Address"
            ></c-input>
        </el-form-item>
     <c-col :span="18">
        <el-form-item label="External Key of Address" prop="ltdgrp.rmt.pts.extkey">
            <c-input  
            v-model="model.ltdgrp.rmt.pts.extkey" 
            maxlength="16"  
            placeholder="请输入External Key of Address"
            @keyup.enter.native="showGridPromptDialog('ltdgrp.rmt.pts.extkey')"
            ></c-input>
        </el-form-item>
       </c-col>
             <c-col :span="2">
                <el-form-item label="" label-width="5px">
                    <c-button
                        size="small"
                        type="primary"
                        icon="el-icon-search"
                        @click="onSeainf('ltdgrp.rmt.pts.extkey')"
                        ></c-button
                    >
                </el-form-item>
            </c-col>
            <c-col :span="4">
                <el-form-item label="" label-width="5px">
                    <c-button size="small" type="primary" @click="onAplpDet">
                        Details
                    </c-button>
                </el-form-item>
            </c-col>   
            </c-col>  -->
        <c-col :span="11">
          <c-col :span="24">
            <el-form-item label="Charges Definition" prop="ltdgrp.rec.rmbcha">
              <c-select
                v-model="model.ltdgrp.rec.rmbcha"
                style="width: 100%"
                placeholder="请选择Charges Definition"
              >
              </c-select>
            </el-form-item>
          </c-col>

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

          <c-col :span="24">
            <el-form-item label="MT747 :77A:" prop="lttp.rmbnar">
              <c-input
                type="textarea"
                v-model="model.lttp.rmbnar"
                maxlength="35"
                show-word-limit
                placeholder="请输入MT747 :77A:"
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
        <c-col :span="24">
          <c-col :span="11">
            <el-form-item
              label="Applicable Rules RMB"
              prop="ltdgrp.rec.apprulrmb"
            >
              <c-select
                v-model="model.ltdgrp.rec.apprulrmb"
                style="width: 100%"
                placeholder="请选择Applicable Rules RMB"
                :code="codes.apprulrmb"
              >
              </c-select>
            </el-form-item>
          </c-col>

          <c-col :span="11" :offset="1">
            <el-form-item
              label="Date of Authorisation to Reimburse"
              label-width="250px"
              prop="ltdgrp.rec.autdat"
            >
              <c-date-picker
                type="date"
                v-model="model.ltdgrp.rec.autdat"
                style="width: 100%"
                placeholder="请选择Date of Authorisation to Reimburse"
              ></c-date-picker>
            </el-form-item>
          </c-col>
        </c-col>
      </c-col>
    </c-row>
  </div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Lttopn/Event";
import Ptap from "~/views/Public/Ptap";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [CommonProcess],
  components: { "c-ptap": Ptap },
  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: "lttp.ptsaddp.ptsaddg",
      },
    };
  },
  methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>
