<template>
  <div class="eibs-tab">
    <!-- <c-col :span="24">
        <el-form-item label="Demand Statement" prop="gcdgrp.rec.demstat">
            <c-select v-model="model.gcdgrp.rec.demstat" style="width:100%" 
            placeholder="请选择Demand Statement"
             :code="demstat"
           >
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="24">
        <el-form-item label="Demand Statem. Text " prop="clmtxts20">
            <c-input type="textarea" v-model="model.clmtxts20" maxlength="65" show-word-limit placeholder="请输入Demand Statem. Text " ></c-input>
        </el-form-item>
        </c-col>
                                   
       <c-col :span="24">
        <el-form-item label="Add. Amt. Information" prop="gcdgrp.blk.addamtinf">
            <c-input type="textarea" v-model="model.gcdgrp.blk.addamtinf" maxlength="65" show-word-limit placeholder="请输入Add. Amt. Information" ></c-input>
        </el-form-item>
        </c-col>-->
    <c-col :span="11">
      <c-col :span="24">
        <el-form-item label="Demand Statement" prop="gcdgrp.rec.demstat">
          <c-select
            v-model="model.gcdgrp.rec.demstat"
            style="width: 100%"
            placeholder="请选择Demand Statement"
            :code="demstat"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Demand Statem. Text " prop="clmtxts20">
          <c-input
            type="textarea"
            v-model="model.clmtxts20"
            maxlength="65"
            rows="10"
            show-word-limit
            placeholder="请输入Demand Statem. Text "
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Add. Amt. Information" prop="gcdgrp.blk.addamtinf">
          <c-input
            type="textarea"
            v-model="model.gcdgrp.blk.addamtinf"
            maxlength="65"
            rows="10"
            show-word-limit
            placeholder="请输入Add. Amt. Information"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
    <c-col :span="12" :offset="1">
      <c-col :span="24">
        <el-form-item label="Present. Compl. Det." prop="gcdgrp.blk.presentdet">
          <c-input
            type="textarea"
            v-model="model.gcdgrp.blk.presentdet"
            maxlength="35"
            rows="9"
            show-word-limit
            placeholder="请输入Present. Compl. Det."
            :disabled="model.gcdgrp.rec.demstat != 'INCP'"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Intermediary" prop="gcdgrp.int.pts.extkey">
          <c-fullbox>
            <c-input
              v-model="model.gcdgrp.int.pts.extkey"
              maxlength="16"
              placeholder="请输入External Key of Address"
              @keyup.enter.native="
                showGridPromptDialog(
                  'gcdgrp.int.pts.extkey',
                  model.gcdgrp.int.pts.extkey
                )
              "
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
              <c-button size="small" type="primary" @click="onIntpDet">
                Details
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="" prop="gcdgrp.int.pts.nam">
          <c-input
            type="textarea"
            v-model="model.gcdgrp.int.pts.nam"
            rows="4"
            maxlength="100"
            show-word-limit
            placeholder="请输入Address Block"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Acc.With Instit." prop="gcdgrp.awi.pts.extkey">
          <c-fullbox>
            <c-input
              v-model="model.gcdgrp.awi.pts.extkey"
              maxlength="16"
              placeholder="请输入External Key of Address"
              @keyup.enter.native="
                showGridPromptDialog('gcdgrp.awi.pts.extkey')
              "
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin: 0 10px 0 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
                <span style="font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
              <c-button size="small" type="primary" @click="onAwipDet">
                Details
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="" prop="gcdgrp.awi.pts.nam">
          <c-input
            type="textarea"
            v-model="model.gcdgrp.awi.pts.nam"
            rows="4"
            maxlength="100"
            show-word-limit
            placeholder="请输入Address Block"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
    <!-- <c-col :span="12">
        <el-form-item label="Present. Compl. Det." prop="gcdgrp.blk.presentdet">
            <c-input type="textarea" v-model="model.gcdgrp.blk.presentdet" maxlength="35" show-word-limit placeholder="请输入Present. Compl. Det." ></c-input>
        </el-form-item>
        </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="gctp.intp.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.gctp.intp.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.int.pts.extkey">
            <c-input  v-model="model.gcdgrp.int.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.intp.ptsget.sdamod.seainf">
            <c-input  v-model="model.gctp.intp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onIntpDet">
            Details
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Name of Party" prop="gcdgrp.int.pts.nam">
            <c-input  v-model="model.gcdgrp.int.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="gctp.awip.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.gctp.awip.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.awi.pts.extkey">
            <c-input  v-model="model.gcdgrp.awi.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.awip.ptsget.sdamod.seainf">
            <c-input  v-model="model.gctp.awip.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onAwipDet">
            Details
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Name of Party" prop="gcdgrp.awi.pts.nam">
            <c-input  v-model="model.gcdgrp.awi.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></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/Getcrq/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      demstat: [
        {
          label:
            "COMP	Complete demand, no other doc to accompany or follow this msg",
          value: "COMP",
        },
        {
          label:
            "INCP	Incomplete demand, supporting doc. to be presented separately",
          value: "INCP",
        },
      ],
    };
  },
  methods: { ...Event },
  created: function () {},
  computed: {
    flag() {
      return this.model.didgrp.apl.pts.extkey == "";
    },
  },
};
</script>
<style>
</style>