<template>
  <div class="eibs-tab">
      <!-- ============== 顶部============================== -->
      <c-col :span="24" style="height: 24px">
            <el-form-item label="基本信息" class="messageLabel"> </el-form-item>
        </c-col>
        <c-col :span="24" style="height: 0px">
            <el-divider></el-divider>
        </c-col>
    <c-col :span="24" style="margin-top: 10px">
      <c-col :span="11">
        <el-form-item label="业务编号" style="width:100%" prop="cpdgrp.rec.ownref">
          <c-fullbox>
            <c-input
              v-model="model.cpdgrp.rec.ownref"
              maxlength="16"
              disabled
              placeholder="请输入业务编号"
            ></c-input>

            <template slot="footer">
              <c-button
                style="margin:0 10px 0 10;padding: 0 12px;"
                size="small"
                type="primary"
                @click="onSeainf">
              <span style="font-family:'宋体';font-weight:bold">i</span>
              </c-button>
              <c-button
                style="margin:0 0"
                size="small"
                type="primary"
                :disabled="this.flag"
                @click="commonExecuteRule('cptp.getref')"
              >
                获取
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="11" :offset="1">
        <el-form-item label="Name" prop="cpdgrp.rec.nam">
          <c-input
            v-model="model.cpdgrp.rec.nam"
            maxlength="40"
            disabled
            placeholder="请输入Name"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
    
    <!-- ========================左边======================= -->
    <c-col :span="11">
      <c-col :span="24">
        <el-form-item label="清算编号" style="width:100%" prop="cpdgrp.rec.sysno">
          <c-fullbox>
            <c-input
              v-model="model.cpdgrp.rec.sysno"
              maxlength="21"
              placeholder="请输入清算编号"
              style="width:100%"
            ></c-input>
            <template slot="footer">
              <c-button
                  style="margin-left:10px;padding: 0 10px;"
                  size="small"
                  type="primary"
                  icon="el-icon-search"
                  @click="onCptpGetinf"
                >
                </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="13">
        <el-form-item label="汇款金额" prop="cpdgrp.cbs.nom1.cur">
          <c-select
            v-model="model.cpdgrp.cbs.nom1.cur"
            style="width: 100%"
            placeholder="请选择Currency"
            @change="commonExecuteRule('cpdgrp.cbs.nom1.cur')"
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="11">
        <el-form-item label="" label-width="8px" style="text-align: left" prop="cpdgrp.cbs.nom1.amt">
          <c-input
            class="m-input-currency"
            v-model="model.cpdgrp.cbs.nom1.amt"
            style="text-align: left; width: 100%"
            placeholder="请输入汇款金额"
             @change="commonExecuteNotify()"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="13">
        <el-form-item label="所属行" prop="cpdgrp.rec.othbch">
          <c-input
            v-model="model.cpdgrp.rec.othbch"
            maxlength="8"
            placeholder="请输入所属行"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="11">
        <el-form-item label="汇款语种" label-width="60px" style="margin-left: 12px" prop="cptp.payuil">
          <c-select
            v-model="model.cptp.payuil"
            style="width: 100%"
            placeholder="请选择汇款语种"
          >
          <el-option
          v-for="item in codes.payuil"
          :key="item.value"
          :label="item.label"
          :value="item.value"
          >
          </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="付款人常驻国家/地区代码" prop="cptp.draweecountcode">
          <c-fullbox>
            <c-input
              v-model="model.cptp.draweecountcode"
              maxlength="3"
              placeholder="请输入付款人常驻国家/地区代码"
              style="width:100%"
              @keyup.enter.native="showGridPromptDialog('cptp.draweecountcode')"
            ></c-input>
            <template slot="footer">
                <c-button 
                    size="small" 
                    type="primary" 
                    @click="onCptpSelbut"
                    icon="el-icon-search"
                    style="margin-left:10px;padding: 0 10px;">
                </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
    
      <c-col :span="24">
        <el-form-item label="我行费用负担" prop="cpdgrp.rec.detchgcod">
          <c-select
            v-model="model.cpdgrp.rec.detchgcod"
            style="width: 100%"
            placeholder="请选择Details of Charges"
          >
            <el-option
            v-for="item in codes.detchgcod"
            :key="item.value"
            :label="item.label"
            :value="item.value"
            ></el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="货物类型" prop="cpdgrp.rec.stagod">
          <c-select
            v-model="model.cpdgrp.rec.stagod"
            style="width: 100%"
            placeholder="请选择货物类型"
          >
            <el-option
            v-for="item in codes.godcod"
            :key="item.value"
            :label="item.label"
            :value="item.value"
            ></el-option>
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- ========================右边======================= -->
    <c-col :span="11" :offset="1">
      <c-col :span="13">
        <el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp">
          <c-select
            v-model="model.cpdgrp.rec.trntyp"
            style="width: 100%"
            placeholder="请选择汇款性质"
          >
            <el-option
              v-for="item in trntyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="11">
        <el-form-item label="汇款方式" label-width="40%"  prop="cpdgrp.rec.paytype">
          <c-select
            v-model="model.cpdgrp.rec.paytype"
            style="width: 100%"
            placeholder="请选择汇款方式"
          >
            <el-option
              v-for="item in codes.paytype"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="13">
        <el-form-item label="收款对象" prop="cpdgrp.rec.gors">
          <c-select
            v-model="model.cpdgrp.rec.gors"
            style="width: 100%"
            placeholder="请选择收款对象"
          >
            <el-option
              v-for="item in codes.gors"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>             
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="11">
        <el-form-item label="收支类型" label-width="40%"  prop="cpdgrp.rec.sztyp">
          <c-select
            v-model="model.cpdgrp.rec.sztyp"
            style="width: 100%"
            placeholder="请选择收支类型"
          >
            <el-option
              v-for="item in codes.sztyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>          
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Uetr" prop="cptp.uetr">
          <c-fullbox>
            <c-input
              v-model="model.cptp.uetr"
              style="width: 100%"
              placeholder="请输入Uetr"
            ></c-input>
            <template slot="footer">
              <c-button size="small" style="margin-left:10px;padding: 0 10px;" type="primary" @click="onCptpGetuetr">
                Get
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="13">
        <el-form-item label="解付日期">
          <c-date-picker
            type="date"
            v-model="model.cpdgrp.rec.paydat"
            style="width: 100%"
            placeholder="请选择付款日期"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="11">
        <el-form-item label="起息日" label-width="40%">
          <c-date-picker
            type="date"
            v-model="model.cpdgrp.rec.valdat"
            style="width: 100%"
            placeholder="请选择起息日"
             @change="commonExecuteNotify()"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="13">
        <el-form-item label="客户类型" prop="cpdgrp.rec.clityp">
          <c-select
            v-model="model.cpdgrp.rec.clityp"
            style="width: 100%"
            placeholder="请选择客户类型"
          >
                <el-option
                  v-for="item in codes.clityp"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                ></el-option>          
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="11">
        <el-form-item label="报文类型" label-width="40%"  prop="cpdgrp.rec.swftyp">
          <c-select
            v-model="model.cpdgrp.rec.swftyp"
            style="width: 100%"
            placeholder="请选择报文类型"
            :disabled="model.cpdgrp.cbs.nom1.amt === '0.000'"
            @change="commonExecuteRule('cpdgrp.rec.swftyp')"

          >
                <el-option
                  v-for="item in codes.swftypOpnp"
                  :label="item.label"
                  :value="item.value"
                  :key="item.value"
                ></el-option>          
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="11">
        <el-form-item label="国外费用" prop="cpdgrp.rec.feecur">
          <c-select
            v-model="model.cpdgrp.rec.feecur"
            style="width: 100%"
            placeholder="请选择国外费用币种"
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>          
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="13">
        <el-form-item label="" style="width: 100%"  label-width="8px" prop="cpdgrp.rec.feeamt">
           <c-fullbox>
           <c-input
            v-model="model.cpdgrp.rec.feeamt"
            placeholder="请输入国外费用金额"
            style="width: 90%"
          ></c-input>

          <template slot="footer">
            <span>
          <c-checkbox v-model="model.cpdgrp.rec.tsnflg"
            >同名划转标志</c-checkbox
          >
            </span>
          </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
    </c-col>
    <c-col :span="24" style="height: 24px">
            <el-form-item label="*****信息" class="messageLabel">
            </el-form-item>
        </c-col>
        <c-col :span="24" style="height: 0px">
            <el-divider></el-divider>
        </c-col>
    /*<CptOpnp1Common :model="model" :codes="codes" v-on:onSndpDet="onSndpDet"></CptOpnp1Common>*/

    <CptAdvChangePanel :model="model" :codes="codes" v-on:onSndpDet="onSndpDet"></CptAdvChangePanel>

<c-col :span="24">
<c-col :span="11"  v-if="model.cpdgrp.rec.swftyp === '103' || model.cpdgrp.rec.swftyp === '202' || model.cpdgrp.rec.swftyp === '200'">
        <el-form-item label="汇款人名称" prop="orcnam">
          <c-input
              v-model="model.orcnam"
              maxlength="100"
              placeholder="请输入汇款人名称"
              style="width:100%"
            ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="11" :offset="1" v-if="model.cpdgrp.rec.swftyp === '103'">
        <el-form-item label="Remittance Information(Tag 70)" prop="cpdgrp.blk.contag70">
           <c-input
                        type="textarea"
                        :rows="4"
                        maxlength="200"
                        v-model="model.cpdgrp.blk.contag70"
                        show-word-limit
                        placeholder="请输入Remittance Information"
                    ></c-input>
        </el-form-item>
      </c-col>
</c-col>
    <!-- <c-col :span="12">
        <el-form-item label="Drag  Drop Sender">
            <c-input  v-model="model.cptp.recget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col>             
                                   
       <c-col :span="12">
        <el-form-item label="Our Reference">
            <c-input  v-model="model.cpdgrp.rec.ownref" maxlength="16"  placeholder="请输入Our Reference"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <el-form-item label="">
            <c-input  v-model="model.cptp.recget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onCptpGetref">
            GetRef
        </c-button>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Externally Displayed Name to Identify the Contract">
            <c-input  v-model="model.cpdgrp.rec.nam" maxlength="40"  placeholder="请输入Externally Displayed Name to Identify the Contract"></c-input>
        </el-form-item>
       </c-col>             
                                   
       <c-col :span="12">
        <el-form-item label="汇款性质">
            <c-select v-model="model.cpdgrp.rec.trntyp" style="width:100%" placeholder="请选择汇款性质">
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="汇款方式">
            <c-select v-model="model.cpdgrp.rec.paytype" style="width:100%" placeholder="请选择汇款方式">
                <el-option
                  v-for="item in codes.paytype"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                ></el-option>
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="清算编号">
            <c-input  v-model="model.cpdgrp.rec.sysno" maxlength="21"  placeholder="请输入清算编号"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onCptpGetinf">
            &Get
        </c-button>
       </c-col>
                  
	<c-col :span="12">
	    <span  v-text="model.cptp.shktyp"   data-path=".cptp.shktyp" > </span>
	</c-col>
                  
       <c-col :span="12">
        <el-form-item label="收款对象">
            <c-select v-model="model.cpdgrp.rec.gors" style="width:100%" placeholder="请选择收款对象">
                <el-option
                  v-for="item in codes.gors"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                ></el-option>          
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="收支类型">
            <c-select v-model="model.cpdgrp.rec.sztyp" style="width:100%" placeholder="请选择收支类型">
                <el-option
                  v-for="item in codes.sztyp"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                ></el-option>
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Currency">
            <c-select v-model="model.cpdgrp.cbs.nom1.cur" style="width:100%" placeholder="请选择Currency">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Currency">
            <c-select v-model="model.cpdgrp.cbs.max.cur" style="width:100%" placeholder="请选择Currency">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="汇款金额">
            <c-input  v-model="model.cpdgrp.cbs.nom1.amt"  placeholder="请输入汇款金额"></c-input>
        </el-form-item>
       </c-col>                 
                  
       <c-col :span="12">
        <el-form-item label="汇款金额">
            <c-input  v-model="model.cpdgrp.cbs.max.amt"  placeholder="请输入汇款金额"></c-input>
        </el-form-item>
       </c-col>                 
                                   
       <c-col :span="12">
        <el-form-item label="Uetr">
            <c-input  v-model="model.cptp.uetr" maxlength="40"  placeholder="请输入Uetr"></c-input>
        </el-form-item>
       </c-col>             
                                   
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onCptpGetuetr">
            Get
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="所属行">
            <c-input  v-model="model.cpdgrp.rec.othbch" maxlength="8"  placeholder="请输入所属行"></c-input>
        </el-form-item>
       </c-col>             
                                   
	<c-col :span="12">
	    <span  v-text="model.cptp.paydatsta"   data-path=".cptp.paydatsta" > </span>
	</c-col>
                  
	<c-col :span="12">
	    <span  v-text="model.cptp.commetlab"   data-path=".cptp.commetlab" > </span>
	</c-col>
                  
       <c-col :span="12">
        <el-form-item label="付款日期">
            <c-date-picker type="date"  v-model="model.cpdgrp.rec.paydat" style="width:100%"  placeholder="请选择付款日期"></c-date-picker>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="自贸区备注">
            <c-select v-model="model.cptp.comsystbl" style="width:100%" placeholder="请选择自贸区备注">
              </c-select>
        </el-form-item>
       </c-col>
                  
	<c-col :span="12">
	    <span  v-text="model.cptp.valdat"   data-path=".cptp.valdat" > </span>
	</c-col>
                  
       <c-col :span="12">
        <el-form-item label="Value Date">
            <c-date-picker type="date"  v-model="model.cpdgrp.rec.valdat" style="width:100%"  placeholder="请选择Value Date"></c-date-picker>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Uil Payment">
            <c-select v-model="model.cptp.payuil" style="width:100%" placeholder="请选择Uil Payment">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="付款人常驻国家/地区代码">
            <c-input  v-model="model.cptp.draweecountcode" maxlength="3"  placeholder="请输入付款人常驻国家/地区代码"></c-input>
        </el-form-item>
       </c-col>             
                                   
       <c-col :span="12">
        <el-form-item label="客户类型">
            <c-select v-model="model.cpdgrp.rec.clityp" style="width:100%" placeholder="请选择客户类型">
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="swift type">
            <c-select v-model="model.cpdgrp.rec.swftyp" style="width:100%" placeholder="请选择swift type">
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <c-button size="small" type="primary" icon="el-icon-search" @click="onCptpSelbut">
            ?
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="收款人常驻国家/地区代码">
            <c-input  v-model="model.cptp.payeecountcode" maxlength="3"  placeholder="请输入收款人常驻国家/地区代码"></c-input>
        </el-form-item>
       </c-col>             
                                   
       <c-col :span="12">
        <el-form-item label="Details of Charges">
            <c-select v-model="model.cpdgrp.rec.detchgcod" style="width:100%" placeholder="请选择Details of Charges">
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <c-button size="small" type="primary" icon="el-icon-search" @click="onCptpSelbut1">
            ?
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="清算模式">
            <c-select v-model="model.cptp.liqtyp" style="width:100%" placeholder="请选择清算模式">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="国外费用币种">
            <c-select v-model="model.cpdgrp.rec.feecur" style="width:100%" placeholder="请选择国外费用币种">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="国外费用金额">
            <c-input  v-model="model.cpdgrp.rec.feeamt"  placeholder="请输入国外费用金额"></c-input>
        </el-form-item>
       </c-col>                 
                  
       <c-col :span="12">
	    <c-checkbox v-model="model.cpdgrp.rec.tsnflg">同名划转标志</c-checkbox>
       </c-col> 
                                   
       <c-col :span="12">
        <el-form-item label="Good's Code for Statistics">
            <c-select v-model="model.cpdgrp.rec.stagod" style="width:100%" placeholder="请选择Good's Code for Statistics">
              </c-select>
        </el-form-item>
       </c-col>
                  
	<c-col :span="12">
	    <span  v-text="model.cptp.feesta"   data-path=".cptp.feesta" > </span>
	</c-col>
                  
	<c-col :span="12">
	    <span  v-text="model.cptp.clmlab"   data-path=".cptp.clmlab" > </span>
	</c-col>
                                                    
       <c-col :span="12">
        <el-form-item label="付款人名称">
            <c-input type="textarea" v-model="model.cptp.orcnam" maxlength="40" show-word-limit placeholder="请输入付款人名称" ></c-input>
        </el-form-item>
        </c-col>
                                                                     
       <c-col :span="12">
        <el-form-item label="Drag  Drop Sender">
            <c-input  v-model="model.cptp.sndp.ptsget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col>             
                                                                     
       <c-col :span="12">
        <el-form-item label="清算代理行">
            <c-select v-model="model.cptp.cleage" style="width:100%" placeholder="请选择清算代理行">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="External Key of Address">
            <c-input  v-model="model.cpdgrp.snd.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <el-form-item label="">
            <c-input  v-model="model.cptp.sndp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onSndpDet">
            Details
        </c-button>
       </c-col>
                                                    
       <c-col :span="12">
        <el-form-item label="汇款人名称">
            <c-input  v-model="model.cptp.resbchnam" maxlength="42"  placeholder="请输入汇款人名称"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <el-form-item label="(52a)">
            <c-input  v-model="model.cpdgrp.ori.pts.ref" maxlength="16"  placeholder="请输入(52a)"></c-input>
        </el-form-item>
       </c-col>             
                                   
       <c-col :span="12">
        <el-form-item label="收款�'接参与者行号">
            <c-input  v-model="model.cptp.reconebch" maxlength="35"  placeholder="请输入收款�'接参与者行号"></c-input>
        </el-form-item>
       </c-col>             
                                   
       <c-col :span="12">
        <el-form-item label="名称">
            <c-input type="textarea" v-model="model.cpdgrp.snd.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col>
                                                    
       <c-col :span="12">
        <el-form-item label="光大开户分行">
            <c-select v-model="model.cptp.evebch" style="width:100%" placeholder="请选择光大开户分行">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Address Block">
            <c-input type="textarea" v-model="model.cpdgrp.snd.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">
            <c-input type="textarea" v-model="model.cpdgrp.snd.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Name of Party">
            <c-input  v-model="model.cpdgrp.snd.pts.nam" maxlength="40"  placeholder="请输入Name of Party"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <el-form-item label="接收行行号">
            <c-input  v-model="model.cptp.resbch" maxlength="12"  placeholder="请输入接收行行号"></c-input>
        </el-form-item>
       </c-col>             
                                   
       <c-col :span="12">
	    <c-checkbox v-model="model.cptp.flg">电汇凭证</c-checkbox>
       </c-col> 
                  
       <c-col :span="12">
        <el-form-item label="付款人地址">
            <c-input type="textarea" v-model="model.cptp.orcadr" maxlength="40" show-word-limit placeholder="请输入付款人地址" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Drag  Drop Sender">
            <c-input  v-model="model.cptp.orip.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">
            <c-input  v-model="model.cpdgrp.ori.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <el-form-item label="">
            <c-input  v-model="model.cptp.orip.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onOripDet">
            Details
        </c-button>
       </c-col>
                                                                     
       <c-col :span="12">
        <el-form-item label="清算代理行账号">
            <c-input  v-model="model.cptp.coract" maxlength="32"  placeholder="请输入清算代理行账号"></c-input>
        </el-form-item>
       </c-col>             
                                   
       <c-col :span="12">
        <el-form-item label="收款�'接参与者名称">
            <c-input type="textarea" v-model="model.cptp.reconebchnam" maxlength="35" show-word-limit placeholder="请输入收款�'接参与者名称" ></c-input>
        </el-form-item>
        </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="业务种类">
            <c-select v-model="model.cptp.bustyp" style="width:100%" placeholder="请选择业务种类">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="指令代码">
            <c-input  v-model="model.cpdgrp.rec.f23e" maxlength="35"  placeholder="请输入指令代码"></c-input>
        </el-form-item>
       </c-col>             
                                   
       <c-col :span="12">
        <el-form-item label="地址">
            <c-input type="textarea" v-model="model.cpdgrp.snd.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <el-form-item label="名称">
            <c-input type="textarea" v-model="model.cpdgrp.ori.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Address Block">
            <c-input type="textarea" v-model="model.cpdgrp.ori.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">
            <c-input type="textarea" v-model="model.cpdgrp.ori.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </c-col>
                                                                     
       <c-col :span="12">
        <el-form-item label="原始金额">
            <c-select v-model="model.cpdgrp.rec.curf33b" style="width:100%" placeholder="请选择原始金额">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="原始金额">
            <c-input  v-model="model.cpdgrp.rec.amtf33b"  placeholder="请输入原始金额"></c-input>
        </el-form-item>
       </c-col>                 
                  
       <c-col :span="12">
        <el-form-item label="收款人名称">
            <c-input type="textarea" v-model="model.cptp.pyenam" maxlength="40" show-word-limit placeholder="请输入收款人名称" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <el-form-item label="收款人名称">
            <c-input  v-model="model.cptp.pyebchkey" maxlength="14"  placeholder="请输入收款人名称"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onCptpGetmod">
            获取
        </c-button>
       </c-col>
                  
	<c-col :span="12">
	    <span  v-text="model.cptp.seclab"   data-path=".cptp.seclab" > </span>
	</c-col>
                                                                                                       
       <c-col :span="12">
        <el-form-item label="Content of TAG 70">
            <c-input type="textarea" v-model="model.cpdgrp.blk.contag70" maxlength="35" show-word-limit placeholder="请输入Content of TAG 70" ></c-input>
        </el-form-item>
        </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="地址">
            <c-input type="textarea" v-model="model.cpdgrp.ori.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="汇率">
            <c-input  v-model="model.cpdgrp.rec.f36"  placeholder="请输入汇率"></c-input>
        </el-form-item>
       </c-col>             
                                   
       <c-col :span="12">
        <el-form-item label="收款人开户行名称">
            <c-input  v-model="model.cptp.pyebchnam" maxlength="38"  placeholder="请输入收款人开户行名称"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <el-form-item label="二代模式">
            <c-select v-model="model.cptp.secmod" style="width:100%" placeholder="请选择二代模式">
              </c-select>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="收款人地址">
            <c-input type="textarea" v-model="model.cptp.pyeadr" maxlength="40" show-word-limit placeholder="请输入收款人地址" ></c-input>
        </el-form-item>
        </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="发报行扣费金额">
            <c-select v-model="model.cpdgrp.rec.cur71f" style="width:100%" placeholder="请选择发报行扣费金额">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="发报行扣费金额">
            <c-input  v-model="model.cpdgrp.rec.amt71f"  placeholder="请输入发报行扣费金额"></c-input>
        </el-form-item>
       </c-col>                 
                                                    
       <c-col :span="12">
        <el-form-item label="附言">
            <c-input type="textarea" v-model="model.cptp.commet" maxlength="35" show-word-limit placeholder="请输入附言" ></c-input>
        </el-form-item>
        </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="汇款人">
            <c-input  v-model="model.cpdgrp.orc.pts.ref" maxlength="16"  placeholder="请输入汇款人"></c-input>
        </el-form-item>
       </c-col>             
                                                                                                                                                                           
       <c-col :span="12">
        <el-form-item label="收款人">
            <c-input  v-model="model.cpdgrp.pye.pts.ref" maxlength="16"  placeholder="请输入收款人"></c-input>
        </el-form-item>
       </c-col>             
                                   
       <c-col :span="12">
        <el-form-item label="银行操作码">
            <c-input  v-model="model.cpdgrp.rec.f23b" maxlength="4"  placeholder="请输入银行操作码"></c-input>
        </el-form-item>
       </c-col>             
                                   
       <c-col :span="12">
        <el-form-item label="汇款人账号">
            <c-input  v-model="model.cpdgrp.rec.orcact" maxlength="35"  placeholder="请输入汇款人账号"></c-input>
        </el-form-item>
       </c-col>             
                                                                                                                                                                                            
       <c-col :span="12">
        <el-form-item label="收款人账号">
            <c-input  v-model="model.cpdgrp.rec.pyeact" maxlength="35"  placeholder="请输入收款人账号"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <el-form-item label="Drag  Drop Sender">
            <c-input  v-model="model.cptp.orcp.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">
            <c-input  v-model="model.cpdgrp.orc.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <el-form-item label="">
            <c-input  v-model="model.cptp.orcp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onOrcpDet">
            Details
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Drag  Drop Sender">
            <c-input  v-model="model.cptp.pyep.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">
            <c-input  v-model="model.cpdgrp.pye.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <el-form-item label="">
            <c-input  v-model="model.cptp.pyep.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
       </c-col>             
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onPyepDet">
            Details
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onCptpSerpty">
            查询客户号
        </c-button>
       </c-col>
                                                                     
       <c-col :span="12">
        <el-form-item label="名称">
            <c-input type="textarea" v-model="model.cpdgrp.orc.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Address Block">
            <c-input type="textarea" v-model="model.cpdgrp.orc.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">
            <c-input type="textarea" v-model="model.cpdgrp.orc.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <el-form-item label="名称">
            <c-input type="textarea" v-model="model.cpdgrp.pye.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Address Block">
            <c-input type="textarea" v-model="model.cpdgrp.pye.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">
            <c-input type="textarea" v-model="model.cpdgrp.pye.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <el-form-item label="地址">
            <c-input type="textarea" v-model="model.cpdgrp.orc.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </c-col>
                  
       <c-col :span="12">
        <el-form-item label="地址">
            <c-input type="textarea" v-model="model.cpdgrp.pye.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
        </c-col> -->
  </div>
</template>
<script>
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptadv/Event";
import Ptap from "~/views/Public/Ptap";

import CptAdvChangePanel from "./CptAdvChangePanel";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  components: { CptAdvChangePanel },
  mixins: [CommonProcess],
  data() {
    return {
      trntyp: [
        { value: "0", label: "贸易" },
        { value: "1", label: "非贸易" },
        { value: "2", label: "资本" },
        { value: "3", label: "其他" },
      ],
    };
  },
  methods: { ...Event,
  onSeainf(){},
    commonExecuteRule(ruleName){
     this.executeRule(ruleName).then((res) => {
        if ((res.respCode == SUCCESS)) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
     commonExecuteNotify(){
     this.executeNotify().then((res) => {
        if ((res.respCode == SUCCESS)) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
  },
  created: function () {
    console.log(this.root);
  },
  computed: {
    flag() {
      return this.model.cpdgrp.pye.pts.extkey == "";
      //return this.model.cpdgrp.pye.pts.extkey == "" || this.model.cpdgrp.rec.ownref != "";
    },
  },
};
</script>
<style>
</style>
