<template>
  <div class="eibs-tab">
    <!-- =================左边============== -->
    <c-col :span="11">
      <c-col :span="24">
        <el-form-item label="Our Referance" prop="cpdgrp.rec.ownref">
          <c-fullbox>
            <c-input v-model="model.cpdgrp.rec.ownref" disabled></c-input>
            <template slot="footer">
              <c-button type="primary"
                ><span style="font-family: '宋体'; font-weight: bold"
                  >i</span
                ></c-button
              >
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="Payment Amount" prop="cpdgrp.cbs.nom1.cur">
            <c-input v-model="model.cpdgrp.cbs.nom1.cur" disabled></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="11">
          <el-form-item
            style="text-align: left"
            label-width="5px"
            prop="cpdgrp.cbs.nom1.amt"
          >
            <c-input-currency
              v-model="model.cpdgrp.cbs.nom1.amt"
              style="text-align: left; width: 100%"
              placeholder="请输入汇款金额"
              disabled
              
            ></c-input-currency>
            <!-- @keyup.enter.native="
                defaultFunction(
                  'cpdgrp.cbs.nom1.amt',
                  model.cpdgrp.cbs.nom1.amt
                )
              " -->
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="Received Amount" prop="cpdgrp.cbs.max.cur">
            <c-input v-model="model.cpdgrp.cbs.max.cur" disabled></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="11">
          <el-form-item
            style="text-align: left"
            label-width="5px"
            prop="cpdgrp.cbs.max.amt"
          >
            <c-input-currency
              v-model="model.cpdgrp.cbs.max.amt"
              style="text-align: left; width: 100%"
               placeholder="请输入汇款金额"
              disabled
              @keyup.enter.native="
                defaultFunction(
                  'cpdgrp.cbs.nom1.amt',
                  model.cpdgrp.cbs.nom1.amt
                )
              "
            ></c-input-currency>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24"> 
          <el-form-item label="Value Date" prop="cpdgrp.rec.valdat">
              <c-date-picker
              type="date"
              v-model="model.cpdgrp.rec.valdat"
              style="width: 100%"
              disabled
            ></c-date-picker>
          </el-form-item>
      </c-col>

      <c-col :span="24"> 
          <el-form-item label="Payment Type" prop="cpdgrp.rec.paytyp" >
            <c-select
              v-model="model.cpdgrp.rec.paytyp" 
              style="width:100%"
              disabled
            >
              <el-option
                v-for="item in paytyp"
                :key="item.value"
                :value="item.value"
                :label="item.label"
              ></el-option>
            </c-select>
          </el-form-item>
      </c-col>   
    </c-col> 
    <!-- =================右边====================== -->
    <c-col :span="11" :offset="1"> 
        <c-col :span="24">
            <el-form-item label="Name" prop="cpdgrp.rec.nam">
                <c-input v-model="model.cpdgrp.rec.nam" disabled></c-input>
            </el-form-item>
        </c-col>

        <c-col :span="24">
            <el-form-item label="Ordering Customer" prop="cpdgrp.orc.pts.nam">
            <c-input type="textarea" v-model="model.cpdgrp.orc.pts.nam" disabled></c-input>
            </el-form-item>
        </c-col>

        <c-col :span="24">
            <el-form-item label="Ordering Institution" prop="cpdgrp.ori.pts.nam">
            <c-input type="textarea" v-model="model.cpdgrp.ori.pts.nam" disabled></c-input>
            </el-form-item>
        </c-col>

        <c-col :span="24">
            <el-form-item label="Pay Bank" prop="cpdgrp.pyb.pts.pts">
            <c-input type="textarea" v-model="model.cpdgrp.pyb.pts.pts" disabled></c-input>
            </el-form-item>
        </c-col>

        <c-col :span="24">
            <el-form-item label="Payee" prop="cpdgrp.pye.pts.nam">
            <c-input type="textarea" v-model="model.cpdgrp.pye.pts.nam" disabled></c-input>
            </el-form-item>
        </c-col>
    </c-col>

    <c-col :span="24">
        <c-col :span="11">
            <el-form-item label="Narrative" prop="strinf">
            <c-input type="textarea" v-model="model.strinf" rows="4"></c-input>
            </el-form-item>
        </c-col>
        <c-col :span="6" :offset="1">
            <c-checkbox v-model="model.sndsmg">Send Message</c-checkbox>
        </c-col>
    </c-col>

    <!-- =================原码================ -->
    <!-- <c-col :span="12">
        <c-form-item label="Drag  Drop Sender" prop="cptp0.recget.sdamod.dadsnd">
            <c-input  v-model="model.cptp0.recget.sdamod.dadsnd"  :placeholder="$t('other.please_enter')+'Drag  Drop Sender'"></c-input>
        </c-form-item>
       </c-col>
                  SF000104 : Our Reference 
                  
       <c-col :span="12">
        <c-form-item :label="$t('cptp0.SF000104')" prop="cpdgrp.rec.ownref">
            <c-input  v-model="model.cpdgrp.rec.ownref" maxlength="16"  :placeholder="$t('other.please_enter')+$t('cptp0.SF000104')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="" prop="cptp0.recget.sdamod.seainf">
            <c-input  v-model="model.cptp0.recget.sdamod.seainf"  :placeholder="$t('other.please_enter')+''"></c-input>
        </c-form-item>
       </c-col>
                  SF000110 : Name 
                  
       <c-col :span="12">
        <c-form-item :label="$t('cptp0.SF000110')" prop="cpdgrp.rec.nam">
            <c-input  v-model="model.cpdgrp.rec.nam" maxlength="40"  :placeholder="$t('other.please_enter')+$t('cptp0.SF000110')"></c-input>
        </c-form-item>
       </c-col>
                  SF000106 : Ordering Customer 
                  SF000103 : Payment Amount 
                  
       <c-col :span="12">
        <c-form-item :label="$t('cptp0.SF000103')" prop="cpdgrp.cbs.nom1.cur">
            <c-input  v-model="model.cpdgrp.cbs.nom1.cur" maxlength="3"  :placeholder="$t('other.please_enter')+$t('cptp0.SF000103')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Balance" prop="cpdgrp.cbs.nom1.amt">
            <c-input  v-model="model.cpdgrp.cbs.nom1.amt"  :placeholder="$t('other.please_enter')+'Balance'"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Name of Party" prop="cpdgrp.orc.pts.nam">
            <c-input  v-model="model.cpdgrp.orc.pts.nam" maxlength="40"  :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
        </c-form-item>
       </c-col>
                  SF000113 : Received Amount 
                  
       <c-col :span="12">
        <c-form-item :label="$t('cptp0.SF000113')" prop="cpdgrp.cbs.max.cur">
            <c-input  v-model="model.cpdgrp.cbs.max.cur" maxlength="3"  :placeholder="$t('other.please_enter')+$t('cptp0.SF000113')"></c-input>
        </c-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Balance" prop="cpdgrp.cbs.max.amt">
            <c-input  v-model="model.cpdgrp.cbs.max.amt"  :placeholder="$t('other.please_enter')+'Balance'"></c-input>
        </c-form-item>
       </c-col>
                  SF000109 : Ordering Institution 
                  SF000102 : Value Date 
                  
       <c-col :span="12">
        <el-form-item :label="$t('cptp0.SF000102')" prop="cpdgrp.rec.valdat">
            <c-date-picker type="date"  v-model="model.cpdgrp.rec.valdat" style="width:100%"  :placeholder="$t('other.please_enter')+$t('cptp0.SF000102')"></c-date-picker>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <c-form-item label="Name of Party" prop="cpdgrp.ori.pts.nam">
            <c-input  v-model="model.cpdgrp.ori.pts.nam" maxlength="40"  :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
        </c-form-item>
       </c-col>
                  SF000105 : Payment Type 
                  
       <c-col :span="12">
        <el-form-item :label="$t('cptp0.SF000105')" prop="cpdgrp.rec.paytyp">
            <c-select v-model="model.cpdgrp.rec.paytyp" style="width:100%" :placeholder="$t('other.please_enter')+$t('cptp0.SF000105')">
              </c-select>
        </el-form-item>
       </c-col>
                 SF000108 : Paying Bank 
                  
       <c-col :span="12">
        <c-form-item label="Name of Party" prop="cpdgrp.pyb.pts.nam">
            <c-input  v-model="model.cpdgrp.pyb.pts.nam" maxlength="40"  :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
        </c-form-item>
       </c-col>
                 SF000107 : Payee 
                  
       <c-col :span="12">
        <c-form-item label="Name of Party" prop="cpdgrp.pye.pts.nam">
            <c-input  v-model="model.cpdgrp.pye.pts.nam" maxlength="40"  :placeholder="$t('other.please_enter')+'Name of Party'"></c-input>
        </c-form-item>
       </c-col>
                  SF000017 : Narrative 
                  
       <c-col :span="12">
        <c-form-item :label="$t('cptcan.SF000017')" prop="strinf">
            <c-input type="textarea" v-model="model.strinf" maxlength="50" show-word-limit :placeholder="$t('other.please_enter')+$t('cptcan.SF000017')" ></c-input>
        </c-form-item>
        </c-col>
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.sndmsg">{{$t('cptcan.CF000039')}}</c-checkbox>
       </c-col> -->
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptcan/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      paytyp:[
        {label:"Incoming Payment",value:"I"},
        {label:"Outgoing Payment",value:"O"},
        {label:"Transit Payment",value:"T"},
      ]
    };
  },
  methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>