<template>
  <!-- <div class="eibs-tab" style="overflow: auto;"> -->
  <c-row>
    <!-- <c-col :span="11">
        <el-form-item label="Drag  Drop Sender" prop="betp.ledget.sdamod.dadsnd">
            <c-input  v-model="model.betp.ledget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col> -->
    <c-col :span="24">
      <c-col :span="8">
        <el-form-item label="参考号" prop="ledgrp.rec.ownref">
          <c-input
            v-model="model.ledgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入参考号"
            :disabled="true"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="4">
        <!-- <el-form-item label="" prop="betp.ledget.sdamod.seainf">
            <c-input  v-model="model.betp.ledget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item> -->
        <c-button size="small" type="primary" @click="onSeainf" :disabled="true"
          >i</c-button
        >
        <c-button size="small" type="primary" @click="onCptpGetref" :disabled="true">
          获取
        </c-button>
      </c-col>

      <c-col :span="6">
        <el-form-item label="信用证余额" prop="ledgrp.cbs.opn1.cur">
          <!-- <c-input  v-model="model.ledgrp.cbs.opn1.cur" maxlength="3"  placeholder="请输入Currency"></c-input> -->
          <c-select
            v-model="model.ledgrp.cbs.opn1.cur"
            style="width: 100%"
            placeholder="请选择币种"
            :code="codes.cur"
            :disabled="true"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="5">
        <el-form-item label="" label-width="0" prop="ledgrp.cbs.opn1.amt">
          <!-- <c-input  v-model="model.ledgrp.cbs.opn1.amt"  placeholder="请输入Balance"></c-input> -->
          <c-input-currency
            v-model="model.ledgrp.cbs.opn1.amt"
            style="text-align: left; width: 100%"
            placeholder="请输入信用证余额"
            :disabled="true"
          ></c-input-currency>
        </el-form-item>
      </c-col>
    </c-col>
    <!-- <c-col :span="11">
        <el-form-item label="Drag  Drop Sender" prop="betp.recget.sdamod.dadsnd">
            <c-input  v-model="model.betp.recget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col> -->
    <c-col :span="24">
      <c-col :span="8">
        <el-form-item label="单据参考号" prop="bedgrp.rec.ownref">
          <c-input
            v-model="model.bedgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入单据参考号"
            :disabled="true"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="4">
        <!-- <el-form-item label="" prop="betp.recget.sdamod.seainf">
            <c-input  v-model="model.betp.recget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item> -->
        <c-button size="small" type="primary" @click="onSeainf" :disabled="true"
          >i</c-button
        >
        <c-button size="small" type="primary" @click="onCptpGetref" :disabled="true"> 
          获取
        </c-button>
      </c-col>

      <c-col :span="11">
        <el-form-item label="摘 要" prop="bedgrp.rec.nam">
          <c-input
            v-model="model.bedgrp.rec.nam"
            maxlength="40"
            placeholder="请输入摘要"
            :disabled="true"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-col :span="12">
        <c-col :span="11">
          <el-form-item label="单据金额" prop="bedgrp.cbs.max.cur">
            <c-select
              v-model="model.bedgrp.cbs.max.cur"
              style="width: 100%"
              placeholder="请选择币种"
              :code="codes.cur"
              :disabled="true"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="8">
          <el-form-item label="" label-width="0" prop="bedgrp.cbs.max.amt">
            <c-input-currency
              v-model="model.bedgrp.cbs.max.amt"
              style="text-align: left; width: 100%"
              placeholder="请输入单据金额"
              :disabled="true"
            ></c-input-currency>
          </el-form-item>
        </c-col>

        <c-col :span="3"> 
          <c-checkbox v-model="model.betp.adaflg" :disabled="true">附加金额</c-checkbox>
        </c-col>

        <c-col :span="11">
          <el-form-item label="单据余额" prop="bedgrp.cbs.opn1.cur">
            <c-select
              v-model="model.bedgrp.cbs.opn1.cur"
              maxlength="3"
              placeholder="请选择币种"
              :code="codes.cur"
              :disabled="true"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="11">
          <el-form-item label="" label-width="0" prop="bedgrp.cbs.opn1.amt">
            <c-input
              v-model="model.bedgrp.cbs.opn1.amt"
              placeholder="请输入单据余额"
              :disabled="true"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="22">
          <el-form-item label="单据类型" prop="bedgrp.rec.doctypcod">
            <c-select
              v-model="model.bedgrp.rec.doctypcod"
              style="width: 100%"
              placeholder="请选择单据类型"
              :code="codes.betdrvdoctypcod"
              :disabled="true"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="22">
          <el-form-item label="到期日" prop="bedgrp.rec.matdat">
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.matdat"
              style="width: 100%"
              placeholder="请选择到期日"
              :disabled="true"
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="22">
          <el-form-item label="提示日期" prop="bedgrp.rec.predat">
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.predat"
              style="width: 100%"
              placeholder="提示日期"
              :disabled="true"
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="22">
          <el-form-item label="单据状态" prop="bedgrp.rec.docsta">
            <c-input
              v-model="model.bedgrp.rec.docsta"
              maxlength="40"
              placeholder="请输入单据状态"
              :disabled="true"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="12">
        <c-col :span="22">
          <el-form-item label="交单人" prop="bedgrp.prb.pts.ref">
            <c-input
              v-model="model.bedgrp.prb.pts.ref"
              maxlength="16"
              placeholder="请输入交单人"
              :disabled="true"
            ></c-input>
          </el-form-item>
        </c-col>

        <!-- <c-col :span="11">
	    <c-checkbox v-model="model.betp.adaflg">Add. amount</c-checkbox>
       </c-col> -->

        <c-col :span="22">
          <el-form-item label="交单人名称" prop="bedgrp.prb.pts.nam">
            <c-input
              v-model="model.bedgrp.prb.pts.nam"
              maxlength="40"
              placeholder="请输入交单人名称"
              :disabled="true"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="22">
          <el-form-item label="开证行" prop="bedgrp.iss.pts.ref">
            <c-input
              v-model="model.bedgrp.iss.pts.ref"
              maxlength="16"
              placeholder="请输入开证行"
              :disabled="true"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="22">
          <el-form-item label="开证行名称" prop="bedgrp.iss.pts.nam">
            <c-input
              v-model="model.bedgrp.iss.pts.nam"
              maxlength="40"
              placeholder="请输入开证行名称"
              :disabled="true"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="22">
          <el-form-item label="到单日期" prop="bedgrp.rec.rcvdat">
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.rcvdat"
              style="width: 100%"
              placeholder="请选择到单日期"
              :disabled="true"
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="22">
          <el-form-item label="申请人" prop="bedgrp.apl.pts.ref">
            <c-input
              v-model="model.bedgrp.apl.pts.ref"
              maxlength="16"
              placeholder="请输入申请人"
              :disabled="true"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="22">
          <el-form-item label="申请人名称" prop="bedgrp.apl.pts.nam">
            <c-input
              v-model="model.bedgrp.apl.pts.nam"
              maxlength="40"
              placeholder="请输入申请人名称"
              :disabled="true"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-col :span="12">
        <c-col :span="24" :offset="6">
          <c-checkbox v-model="model.advrefflg">拒付(MT734)</c-checkbox>
        </c-col>
        <c-col> &nbsp; </c-col>

        <c-col :span="24" :offset="6">
          <c-checkbox v-model="model.bedgrp.rec.advdocflg">退单重出</c-checkbox>
        </c-col>
        <c-col> &nbsp; </c-col>

        <c-col :span="24" :offset="6">
          <c-checkbox v-model="model.mtabut.clsflg">闭卷</c-checkbox>
        </c-col>

        <c-col> &nbsp; </c-col>
        <c-col> &nbsp; </c-col>
        <c-col> &nbsp; </c-col>
 
        <c-col :span="24" :offset="6">
          <c-checkbox v-model="model.advdisflg">通知开证行有不符点，不对单据做其他处理(MT750)</c-checkbox>
        </c-col>

        <c-col :span="22">
          <el-form-item label="Tag 72  (MT750)" prop="trnmod.trndoc.addstr750">
            <c-input
              type="textarea"
              v-model="model.trnmod.trndoc.addstr750"
              :disabled="model.advdisflg ? false : true"
              :rows="5"
              maxlength="35"
              show-word-limit
              placeholder="请输入Tag 72  (MT750)"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="12">
        <c-col :span="22">
          <c-ptap
            :model="model"
            :argadr="{
              title: '付款人',
              grp: 'bedgrp',
              rol: 'oth',
            }"
            :disabled="true"
            @onSeainf="onSeainf"
            @onAplpDet="onAplpDet"
          >
          </c-ptap>
        </c-col>

        <c-col :span="22">
          <c-ptap
            :model="model"
            :argadr="{
              title: '交单人',
              grp: 'bedgrp',
              rol: 'prb',
            }"
            :disabled="true"
            @onSeainf="onSeainf"
            @onAplpDet="onAplpDet"
          >
          </c-ptap>
        </c-col>

        <!-- <c-col :span="12">
          <el-form-item label="付款人1111111" prop="bedgrp.rec.payrol">
            <c-select
              v-model="model.bedgrp.rec.payrol"
              style="width: 100%"
              placeholder="请选择付款人"
            >
            </c-select>
          </el-form-item>
        </c-col> -->

        <!-- <c-col :span="12">
          <el-form-item
            label=""
            label-width="0"
            prop="betp.othp.ptsget.sdamod.dadsnd"
          >
            <c-input  v-model="model.betp.othp.ptsget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
            <c-button size="small" type="primary" @click="onSeainf"
              >Sender</c-button
            >
          </el-form-item>
        </c-col> -->

        <!-- <c-col :span="12">
          <el-form-item label="付款人地址" prop="bedgrp.oth.pts.extkey">
            <c-input
              v-model="model.bedgrp.oth.pts.extkey"
              maxlength="16"
              placeholder="请输入付款人地址"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="10"> -->
        <!-- <el-form-item label="" prop="betp.othp.ptsget.sdamod.seainf">
            <c-input  v-model="model.betp.othp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item> -->
        <!-- <c-button size="small" type="primary;width:10%" @click="onSeainf"
            >i</c-button
          >
          <c-button size="small" type="primary" @click="onOthpDet">
            Details
          </c-button>
        </c-col> -->

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

        <!-- <c-col :span="24">
          <el-form-item label="付款人地址" prop="bedgrp.oth.pts.adrblk">
            <c-input
              type="textarea"
              v-model="model.bedgrp.oth.pts.adrblk"
              maxlength="35"
              show-word-limit
              placeholder="请输入付款人地址"
            ></c-input>
          </el-form-item>
        </c-col> -->

        <!-- <c-col :span="24">
          <el-form-item label="付款人中文地址" prop="bedgrp.oth.dbfadrblkcn">
            <c-input
              type="textarea"
              v-model="model.bedgrp.oth.dbfadrblkcn"
              maxlength="35"
              show-word-limit
              placeholder="请输入付款人中文地址"
            ></c-input>
          </el-form-item>
        </c-col> -->

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

        <!-- <c-col :span="24">
          <el-form-item label="交单人" prop="bedgrp.rec.docprbrol">
            <c-select
              v-model="model.bedgrp.rec.docprbrol"
              style="width: 100%"
              placeholder="请选择交单人"
            >
            </c-select>
          </el-form-item>
        </c-col> -->

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

        <!-- <c-col :span="24">
          <el-form-item label="交单人Address" prop="bedgrp.prb.pts.extkey">
            <c-input
              v-model="model.bedgrp.prb.pts.extkey"
              maxlength="16"
              placeholder="请输入交单人 Address"
            ></c-input>
          </el-form-item>
        </c-col> -->

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

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

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

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

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

        <!-- <c-col :span="24">
          <el-form-item label="交单人地址" prop="bedgrp.prb.adrelc">
            <c-input
              type="textarea"
              v-model="model.bedgrp.prb.adrelc"
              maxlength="35"
              show-word-limit
              placeholder="请输入地址"
            ></c-input>
          </el-form-item>
        </c-col> -->
      </c-col>
    </c-col>
    <!-- </div> -->
  </c-row>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Betdcr/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>
