<template>
  <div class="eibs-tab">
    <c-row>
      <c-col :span="6">
        <el-form-item label="Guarantee" prop="gidgrp.rec.ownref">
          <c-input
            v-model="model.gidgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入Guarantee"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="1">
        <el-form-item label="" label-width="15px">
          <c-button size="mini" type="primary" icon="el-icon-search"></c-button>
        </el-form-item>
      </c-col>
      <c-col :span="5">
        <el-form-item label="Valid until" prop="gidgrp.rec.expdat">
          <c-date-picker
            type="date"
            v-model="model.gidgrp.rec.expdat"
            style="width: 100%"
            placeholder="请选择Valid until"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="6">
        <el-form-item label="Currency" prop="gidgrp.cbs.opn1.cur">
          <c-input
            v-model="model.gidgrp.cbs.opn1.cur"
            maxlength="3"
            placeholder="请输入Currency"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="6">
        <el-form-item label="Balance" prop="gidgrp.cbs.opn1.amt">
          <c-input
            v-model="model.gidgrp.cbs.opn1.amt"
            placeholder="请输入Balance"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-row>

    <c-row>
      <c-col :span="6">
        <el-form-item label="Claim Number" prop="gcdgrp.rec.ownref">
          <c-input
            v-model="model.gcdgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入Claim Number"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="1">
        <el-form-item label="" label-width="15px">
          <c-button size="mini" type="primary" icon="el-icon-search"></c-button>
        </el-form-item>
      </c-col>
      <c-col :span="5">
        <c-button size="small" type="primary" @click="onGctpGetrefbut">
          Get ref.
        </c-button>
      </c-col>
      <c-col :span="12">
        <el-form-item
          label="Externally Displayed Name to Identify the Contract"
          prop="gcdgrp.rec.nam"
        >
          <c-input
            v-model="model.gcdgrp.rec.nam"
            maxlength="40"
            placeholder="请输入Externally Displayed Name to Identify the Contract"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-row>
    <c-row>
      <c-col :span="4">
        <el-form-item label="Amount Claimed" prop="gcdgrp.cbs.max.cur">
          <c-input
            v-model="model.gcdgrp.cbs.max.cur"
            maxlength="3"
            placeholder="请输入Amount Claimed"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="4">
        <el-form-item label="Balance" prop="gcdgrp.cbs.max.amt">
          <c-input
            v-model="model.gcdgrp.cbs.max.amt"
            placeholder="请输入Balance"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="4">
        <c-checkbox v-model="model.gctp.adaflg">Add. Amount</c-checkbox>
      </c-col>
      <c-col :span="12">
        <el-form-item label="Applicant" prop="gcdgrp.apl.pts.ref">
          <c-input
            v-model="model.gcdgrp.apl.pts.ref"
            maxlength="16"
            placeholder="请输入Applicant"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-row>

    <c-row>
      <c-col :span="4">
        <el-form-item label="Open Amount" prop="gcdgrp.cbs.opn1.cur">
          <c-input
            v-model="model.gcdgrp.cbs.opn1.cur"
            maxlength="3"
            placeholder="请输入Open Amount"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="8">
        <el-form-item label="Balance" prop="gcdgrp.cbs.opn1.amt">
          <c-input
            v-model="model.gcdgrp.cbs.opn1.amt"
            placeholder="请输入Balance"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="Name of Party" prop="gcdgrp.apl.pts.nam">
          <c-input
            v-model="model.gcdgrp.apl.pts.nam"
            maxlength="40"
            placeholder="请输入Name of Party"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-row>

    <c-row>
      <c-col :span="24">
        <el-form-item label="Type of Undertaking" prop="gidgrp.rec.gartyp">
          <c-select
            v-model="model.gidgrp.rec.gartyp"
            style="width: 100%"
            placeholder="请选择Type of Undertaking"
          >
          </c-select>
        </el-form-item>
      </c-col>
    </c-row>

    <c-row>
      <c-col :span="12">
        <el-form-item label="Liability until" prop="gidgrp.rec.liadat">
          <c-date-picker
            type="date"
            v-model="model.gidgrp.rec.liadat"
            style="width: 100%"
            placeholder="请选择Liability until"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="Beneficiary" prop="gcdgrp.ben.pts.ref">
          <c-input
            v-model="model.gcdgrp.ben.pts.ref"
            maxlength="16"
            placeholder="请输入Beneficiary"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-row>
    <c-row>
      <c-col :span="12">
        <el-form-item label="Date of Claim" prop="gcdgrp.rec.clmdat">
          <c-date-picker
            type="date"
            v-model="model.gcdgrp.rec.clmdat"
            style="width: 100%"
            placeholder="请选择Date of Claim"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="Date of Claim" prop="gcdgrp.ben.pts.nam">
          <c-input
            v-model="model.gcdgrp.ben.pts.nam"
            maxlength="40"
            placeholder="请输入Date of Claim"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-row>
    <c-row>
      <c-col :span="6">
        <el-form-item label="Amount Claimed" prop="gcdgrp.cbs.max.cur">
          <c-input
            v-model="model.gcdgrp.cbs.max.cur"
            maxlength="3"
            placeholder="请输入Amount Claimed"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="6">
        <el-form-item label="Balance" prop="gcdgrp.cbs.max.amt">
          <c-input
            v-model="model.gcdgrp.cbs.max.amt"
            placeholder="请输入Balance"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="Presented by" prop="gcdgrp.rec.docprbrol">
          <c-select
            v-model="model.gcdgrp.rec.docprbrol"
            style="width: 100%"
            placeholder="请选择Presented by"
          >
          </c-select>
        </el-form-item>
      </c-col>
    </c-row>

    <c-row>
      <c-col :span="12">
        <c-col :span="12">
          <el-form-item label="附加金额" prop="gcdgrp.cbs.opn2.cur">
            <c-select
              v-model="model.gcdgrp.cbs.opn2.cur"
              style="width: 100%"
              placeholder="请选择附加金额"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="附加金额" prop="gcdgrp.cbs.max2.amt">
            <c-input
              v-model="model.gcdgrp.cbs.max2.amt"
              placeholder="请输入附加金额"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Date of Claim" prop="gcdgrp.rec.clmdat">
            <c-date-picker
              type="date"
              v-model="model.gcdgrp.rec.clmdat"
              style="width: 100%"
              placeholder="请选择Date of Claim"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Further Processing" prop="nxtflg">
            <c-select
              v-model="model.nxtflg"
              style="width: 100%"
              placeholder="请选择Further Processing"
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Text of Claim" prop="clmtxt">
            <c-input
              type="textarea"
              v-model="model.clmtxt"
              maxlength="50"
              show-word-limit
              placeholder="请输入Text of Claim"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24" offset="4">
          <c-checkbox v-model="model.extpay">Extend or Pay</c-checkbox>
        </c-col>
        <c-col :span="12">
          <el-form-item label="Validity Requested" prop="gcdgrp.rec.newexpdat">
            <c-date-picker
              type="date"
              v-model="model.gcdgrp.rec.newexpdat"
              style="width: 100%"
              placeholder="请选择Validity Requested"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="赔付工作日" prop="payday">
            <c-input
              v-model="model.payday"
              placeholder="请输入赔付工作日"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="申报类型" prop="outlen.szflg">
            <c-select
              v-model="model.outlen.szflg"
              style="width: 100%"
              placeholder="请选择申报类型"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="款项去向" prop="outlen.acttyp">
            <c-select
              v-model="model.outlen.acttyp"
              style="width: 100%"
              placeholder="请选择款项去向"
            >
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="12">
        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '第一通知行',
              grp: 'gcdgrp',
              rol: 'prb',
            }"
            @onSeainf="onSeainf"
            @onAplpDet="onPrdpDet"
          >
          </c-ptap>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Payer" prop="gcdgrp.rec.payrol">
            <c-select
              v-model="model.gcdgrp.rec.payrol"
              style="width: 100%"
              placeholder="请选择Payer"
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <c-ptap
            :model="model"
            :argadr="{
              title: '申请人',
              grp: 'gcdgrp',
              rol: 'oth',
            }"
            @onSeainf="onSeainf"
            @onAplpDet="onOthpDet"
          >
          </c-ptap>
        </c-col>
      </c-col>
    </c-row>
    <!-- <c-col :span="12">
      <el-form-item label="Drag  Drop Sender" prop="gctp.gidget.sdamod.dadsnd">
        <c-input
          v-model="model.gctp.gidget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="" prop="gctp.gidget.sdamod.seainf">
        <c-input
          v-model="model.gctp.gidget.sdamod.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <span v-text="model.gctp.expfldlab" data-path=".gctp.expfldlab"> </span>
    </c-col>

    <c-col :span="12">
      <span v-text="model.gctp.explab" data-path=".gctp.explab"> </span>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Drag  Drop Sender" prop="gctp.recget.sdamod.dadsnd">
        <c-input
          v-model="model.gctp.recget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <span v-text="model.gctp.aplmullab" data-path=".gctp.aplmullab"> </span>
    </c-col>

    <c-col :span="12">
      <span v-text="model.gctp.liafldlab" data-path=".gctp.liafldlab"> </span>
    </c-col>

    <c-col :span="12">
      <span v-text="model.gctp.lialab" data-path=".gctp.lialab"> </span>
    </c-col> -->
    <c-row> </c-row>
    <c-row> </c-row>
    <!--<c-col :span="12">
        <el-form-item label="Reference " prop="gcdgrp.prb.pts.ref">
          <c-input
            v-model="model.gcdgrp.prb.pts.ref"
            maxlength="16"
            placeholder="请输入Reference "
          ></c-input>
        </el-form-item>
      </c-col> 
      <c-col :span="12">
      <el-form-item
        label="Drag  Drop Sender"
        prop="gctp.prbp.ptsget.sdamod.dadsnd"
      >
        <c-input
          v-model="model.gctp.prbp.ptsget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="" prop="gctp.prbp.ptsget.sdamod.seainf">
        <c-input
          v-model="model.gctp.prbp.ptsget.sdamod.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onPrbpDet">
        Details
      </c-button>
    </c-col>

    <c-col :span="12">
      <el-form-item label="名称" prop="gcdgrp.prb.namelc">
        <c-input
          type="textarea"
          v-model="model.gcdgrp.prb.namelc"
          maxlength="35"
          show-word-limit
          placeholder="请输入名称"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Address Block" prop="gcdgrp.prb.pts.adrblk">
        <c-input
          type="textarea"
          v-model="model.gcdgrp.prb.pts.adrblk"
          maxlength="35"
          show-word-limit
          placeholder="请输入Address Block"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Chinese address" prop="gcdgrp.prb.dbfadrblkcn">
        <c-input
          type="textarea"
          v-model="model.gcdgrp.prb.dbfadrblkcn"
          maxlength="35"
          show-word-limit
          placeholder="请输入Chinese address"
        ></c-input>
      </el-form-item>
    </c-col>

    

    <c-col :span="12">
      <el-form-item label="地址" prop="gcdgrp.prb.adrelc">
        <c-input
          type="textarea"
          v-model="model.gcdgrp.prb.adrelc"
          maxlength="35"
          show-word-limit
          placeholder="请输入地址"
        ></c-input>
      </el-form-item>
    </c-col>

    

    

    <c-col :span="12">
      <el-form-item label="Reference " prop="gcdgrp.oth.pts.ref">
        <c-input
          v-model="model.gcdgrp.oth.pts.ref"
          maxlength="16"
          placeholder="请输入Reference "
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item
        label="Drag  Drop Sender"
        prop="gctp.othp.ptsget.sdamod.dadsnd"
      >
        <c-input
          v-model="model.gctp.othp.ptsget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item
        label="External Key of Address"
        prop="gcdgrp.oth.pts.extkey"
      >
        <c-input
          v-model="model.gcdgrp.oth.pts.extkey"
          maxlength="16"
          placeholder="请输入External Key of Address"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="" prop="gctp.othp.ptsget.sdamod.seainf">
        <c-input
          v-model="model.gctp.othp.ptsget.sdamod.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onOthpDet">
        Details
      </c-button>
    </c-col>

    

    

    <c-col :span="12">
      <el-form-item label="名称" prop="gcdgrp.oth.namelc">
        <c-input
          type="textarea"
          v-model="model.gcdgrp.oth.namelc"
          maxlength="35"
          show-word-limit
          placeholder="请输入名称"
        ></c-input>
      </el-form-item>
    </c-col>

    

    <c-col :span="12">
      <el-form-item label="Address Block" prop="gcdgrp.oth.pts.adrblk">
        <c-input
          type="textarea"
          v-model="model.gcdgrp.oth.pts.adrblk"
          maxlength="35"
          show-word-limit
          placeholder="请输入Address Block"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Chinese address" prop="gcdgrp.oth.dbfadrblkcn">
        <c-input
          type="textarea"
          v-model="model.gcdgrp.oth.dbfadrblkcn"
          maxlength="35"
          show-word-limit
          placeholder="请输入Chinese address"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="地址" prop="gcdgrp.oth.adrelc">
        <c-input
          type="textarea"
          v-model="model.gcdgrp.oth.adrelc"
          maxlength="35"
          show-word-limit
          placeholder="请输入地址"
        ></c-input>
      </el-form-item>
    </c-col>

    -->
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitcrq/Event";
import Ptap from "~/views/Public/Ptap";

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