<template>
  <div class="eibs-tab">
    <!-- <c-col :span="12">
        <el-form-item label="ECIFNO" prop="liaall.limmod.ecifno">
            <c-input  v-model="model.liaall.limmod.ecifno" maxlength="22"  placeholder="请输入ECIFNO"></c-input>
        </el-form-item>
       </c-col>
                  
	<c-col :span="12">
	    <span  v-text="model.liaall.limmod.limpts.wrklab"   data-path=".liaall.limmod.limpts.wrklab" > </span>
	</c-col>
                  
	<c-col :span="12">
	    <span  v-text="model.liaall.limmod.limpts.othlab"   data-path=".liaall.limmod.limpts.othlab" > </span>
	</c-col>
                  
	<c-col :span="12">
	    <span  v-text="model.liaall.limmod.limpts.othlabss"   data-path=".liaall.limmod.limpts.othlabss" > </span>
	</c-col> -->
    <el-row>
      <c-col :span="8">
        <label>国内信用证项下开证授信额度主体</label>
      </c-col>
      <c-col :span="8" :offset="8">
        <el-form-item label="业务编号" prop="liaall.limmod.ownref">
          <c-input
            v-model="model.liaall.limmod.ownref"
            maxlength="16"
            placeholder="请输入国结业务编号"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>
    <!-- <c-col :span="12">
      <el-form-item
        label="Drag  Drop Sender"
        prop="liaall.limmod.wrkp.ptsget.sdamod.dadsnd"
      >
        <c-input
          v-model="model.liaall.limmod.wrkp.ptsget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item
        label="Drag  Drop Sender"
        prop="liaall.limmod.othp.ptsget.sdamod.dadsnd"
      >
        <c-input
          v-model="model.liaall.limmod.othp.ptsget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col> -->
    <el-row>
      <c-col :span="6">
        <el-form-item
          label=""
          prop="liaall.limmod.limpts.wrk.pts.extkey"
          label-width="0px"
        >
          <c-input
            v-model="model.liaall.limmod.limpts.wrk.pts.extkey"
            maxlength="16"
            placeholder="请输入External Key of Address"
          ></c-input>
        </el-form-item>
      </c-col>
      <!-- <c-col :span="1">
        <el-form-item label="" prop="liaall.limmod.wrkp.ptsget.sdamod.seainf">
          <c-input
            v-model="model.liaall.limmod.wrkp.ptsget.sdamod.seainf"
            placeholder="请输入"
          ></c-input>
        </el-form-item>
      </c-col> -->

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

      <c-col :span="6">
        <el-form-item
          label=""
          prop="liaall.limmod.limpts.oth.pts.extkey"
          label-width="0px"
        >
          <c-input
            v-model="model.liaall.limmod.limpts.oth.pts.extkey"
            maxlength="16"
            placeholder="请输入External Key of Address"
          ></c-input>
        </el-form-item>
      </c-col>

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

      <c-col :span="2">
        <c-button size="small" type="primary" @click="onOthpDet">
          Details
        </c-button>
      </c-col>
      <!-- <c-col :span="8">
        <c-ptap
          :model="model"
          :argadr="{
            title: '',
            grp: 'liaall.limmod.limpts',
            rol: 'wrk',
          }"
          :disabled="true"
          :isAdrblk="false"
          @onSeainf="onSeainf"
          @onAplpDet="onWrkpDet"
        >
        </c-ptap>
      </c-col>
      <c-col :span="8">
        <c-ptap
          :model="model"
          :argadr="{
            title: '',
            grp: 'liaall.limmod.limpts',
            rol: 'oth',
          }"
          :disabled="true"
          :isAdrblk="false"
          @onSeainf="onSeainf"
          @onAplpDet="onOthpDet"
        >
        </c-ptap>
      </c-col> -->
      <c-col :span="8">
        <el-form-item label="业务余额" prop="liaall.limmod.comamt">
          <c-input
            v-model="model.liaall.limmod.comamt"
            placeholder="请输入业务余额"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>
    <!-- <c-col :span="12">
      <el-form-item
        label="External Key of Address"
        prop="liaall.limmod.limpts.wrk.pts.extkey"
      >
        <c-input
          v-model="model.liaall.limmod.limpts.wrk.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="liaall.limmod.wrkp.ptsget.sdamod.seainf">
        <c-input
          v-model="model.liaall.limmod.wrkp.ptsget.sdamod.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onWrkpDet">
        Details
      </c-button>
    </c-col>
-->
    <el-row>
      <c-col :span="7">
        <el-form-item
          label=""
          prop="liaall.limmod.limpts.oth.pts.extkey"
          label-width="0px"
        >
          <c-input
            v-model="model.liaall.limmod.limpts.oth.pts.extkey"
            maxlength="16"
            placeholder="请输入External Key of Address"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="7" :offset="1">
        <el-form-item
          label=""
          prop="liaall.limmod.limpts.wrk.pts.nam"
          label-width="0px"
        >
          <c-input
            v-model="model.liaall.limmod.limpts.wrk.pts.nam"
            maxlength="40"
            placeholder="请输入Name of Party"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>

    <!-- <c-col :span="12">
      <el-form-item label="" prop="liaall.limmod.othp.ptsget.sdamod.seainf">
        <c-input
          v-model="model.liaall.limmod.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="Name of Party"
        prop="liaall.limmod.limpts.oth.pts.nam"
      >
        <c-input
          v-model="model.liaall.limmod.limpts.oth.pts.nam"
          maxlength="40"
          placeholder="请输入Name of Party"
        ></c-input>
      </el-form-item>
    </c-col> -->

    <el-row>
      <c-col :span="7">
        <el-form-item label="额度类型" prop="liaall.limmod.limpts.nonrevflg1">
          <c-select
            v-model="model.liaall.limmod.limpts.nonrevflg1"
            style="width: 100%"
            placeholder="请选择Flag to Mark Non-revolving Limits"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="1">
        <c-button size="small" type="primary" @click="onLimptsGet1">
          查询
        </c-button>
      </c-col>

      <c-col :span="7" v-show="false">
        <el-form-item
          label="Flag to Mark Non-revolving Limits"
          prop="liaall.limmod.limpts.nonrevflg2"
        >
          <c-select
            v-model="model.liaall.limmod.limpts.nonrevflg2"
            style="width: 100%"
            placeholder="请选择Flag to Mark Non-revolving Limits"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="1" v-show="false">
        <c-button size="small" type="primary" @click="onLimptsGet2">
          查询
        </c-button>
      </c-col>
      <c-col :span="8" :offset="8">
        <el-form-item label="保证金余额" prop="liaall.limmod.ccvamt">
          <c-input
            v-model="model.liaall.limmod.ccvamt"
            placeholder="请输入保证金余额"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>
    <el-row>
      <!-- <c-col :span="8">
        <span
          v-text="model.liaall.limmod.limpts.lsh"
          data-path=".liaall.limmod.limpts.lsh"
        >
        </span>
      </c-col> -->

      <c-col :span="8">
        <el-form-item label="LSH" prop="liaall.limmod.limpts.pfcod1">
          <c-input
            v-model="model.liaall.limmod.limpts.pfcod1"
            maxlength="14"
            placeholder="LSH"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="8" v-show="false">
        <el-form-item label="LSH" prop="liaall.limmod.limpts.pfcod2">
          <c-input
            v-model="model.liaall.limmod.limpts.pfcod2"
            maxlength="14"
            placeholder="LSH"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="2" :offset="10">
        <c-button size="small" type="primary" @click="onLimmodTrycal">
          试算
        </c-button>
      </c-col>
    </el-row>
  </div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditdla/Event";
import Ptap from "~/views/Public/Ptap1";

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