<template>
  <div class="eibs-tab">
    <c-row>
      <c-col :span="12">
        <c-row>
          <c-col :span="12">
            <el-form-item label="Currency Code" prop="rec.cod">
              <c-input  v-model="model.rec.cod" maxlength="3"  placeholder="请输入Currency Code"></c-input>
            </el-form-item>
          </c-col>
          <!--
          <c-col :span="3">
            <el-form-item label="Drag  Drop Sender" prop="recpan.recget.sdamod.dadsnd">
              <c-input  v-model="model.recpan.recget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
            </el-form-item> 
          </c-col>
          -->
          <c-col :span="3">
            <c-button size="small" type="primary" icon="el-icon-search"></c-button>
          </c-col>
          <c-col :span="3">
            <c-button size="small" type="primary" >seainf</c-button>
          </c-col>          
          <!--                              
          <c-col :span="3">
            <el-form-item label="Code" prop="recpan.recget.sdamod.seainf">
              <c-input  v-model="model.recpan.recget.sdamod.seainf"  placeholder="请输入Code"></c-input>
            </el-form-item>
          </c-col>
          -->
        </c-row>
      </c-col>

      <c-col :span="12">
        <el-form-item label="Alternate Code" prop="rec.altcod">
            <c-input  v-model="model.rec.altcod" maxlength="3"  placeholder="请输入Alternate Code"></c-input>
        </el-form-item>
      </c-col>


    </c-row>  
    
    <c-row>                          
       <c-col :span="12">
        <el-form-item label="Rounding Unit of Currency" prop="rec.rndunt">
            <c-input  v-model="model.rec.rndunt"  placeholder="请输入Rounding Unit of Currency"></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Decimal Places" prop="rec.dec">
            <c-input  v-model="model.rec.dec"  placeholder="请输入Decimal Places"></c-input>
        </el-form-item>
       </c-col>
    </c-row>

    <c-row>
       <c-col :span="12">
        <el-form-item label="Exchange Rate Calculation Base" prop="rec.bas">
            <c-input  v-model="model.rec.bas"  placeholder="请输入Exchange Rate Calculation Base"></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Maximum Tolerance" prop="rec.dif">
            <c-input  v-model="model.rec.dif"  placeholder="请输入Maximum Tolerance"></c-input>
        </el-form-item>
       </c-col>
    </c-row>

    <c-row>
       <c-col :span="12">
        <el-form-item label="Account for Currency Conversions" prop="rec.acc1">
            <c-input  v-model="model.rec.acc1" maxlength="16"  placeholder="请输入Account for Currency Conversions"></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="General Ledger Balance Rate" prop="rec.glbrat">
            <c-input  v-model="model.rec.glbrat"  placeholder="请输入General Ledger Balance Rate"></c-input>
        </el-form-item>
       </c-col>
    </c-row>

    <c-row>                               
       <c-col :span="12">
        <el-form-item label="Counter Acct. for Currency Conversions" prop="rec.acc2">
            <c-input  v-model="model.rec.acc2" maxlength="16"  placeholder="请输入Counter Acct. for Currency Conversions"></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Margin for Buying/Selling Rate" prop="rec.bsrmar">
            <c-input  v-model="model.rec.bsrmar"  placeholder="请输入Margin for Buying/Selling Rate"></c-input>
        </el-form-item>
       </c-col>
    </c-row>

    <c-row> 
      <c-col :span="12">                              
       <c-col :span="12">
        <el-form-item label="Seq.  in Exchange Rate Tool (0:Not in, -1 fix)" prop="rec.seq">
            <c-input  v-model="model.rec.seq"  placeholder="请输入Seq.  in Exchange Rate Tool (0:Not in, -1 fix)"></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Replaced by" prop="rec.newcur">
            <c-select v-model="model.rec.newcur" style="width:100%" placeholder="请选择Replaced by">
              </c-select>
        </el-form-item>
       </c-col>
      </c-col>   

      <c-col :span="12">
        <el-form-item label="Margin for Squaring Rate" prop="rec.sqrmar">
            <c-input  v-model="model.rec.sqrmar"  placeholder="请输入Margin for Squaring Rate"></c-input>
        </el-form-item>
      </c-col>
    </c-row>  


    <c-row>  
      <c-col :span="12">                           
        <c-col :span="12">
          <el-form-item label="Valid from (incl.) until:" prop="rec.begdat">
            <c-date-picker type="date"  v-model="model.rec.begdat" style="width:100%"  placeholder="请选择Valid from (incl.) until:"></c-date-picker>
          </el-form-item>
        </c-col>
                  
        <c-col :span="12">
          <el-form-item label="Valid until Excl." prop="rec.enddat">
            <c-date-picker type="date"  v-model="model.rec.enddat" style="width:100%"  placeholder="请选择Valid until Excl."></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>                             
      <c-col :span="12">
        <el-form-item label="Interest Days in OD-Rate" prop="rec.odrintday">
            <c-input  v-model="model.rec.odrintday"  placeholder="请输入Interest Days in OD-Rate"></c-input>
        </el-form-item>
      </c-col>
    </c-row>

    <c-row>                                                
       <c-col :span="12">
        <el-form-item label="Debit" prop="rec.dbtday">
            <c-input  v-model="model.rec.dbtday"  placeholder="请输入Debit"></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Value Credit" prop="rec.cdtday">
            <c-input  v-model="model.rec.cdtday"  placeholder="请输入Value Credit"></c-input>
        </el-form-item>
       </c-col>
    </c-row>

    <c-row>                               
       <c-col :span="12">
        <el-form-item label="Maximum Amount for Stored Rate" prop="rec.maxcur">
            <c-select v-model="model.rec.maxcur" style="width:100%" placeholder="请选择Maximum Amount for Stored Rate">
              </c-select>
        </el-form-item>
       </c-col>
                  
       <c-col :span="12">
        <el-form-item label="Maximum Amount for Stored Rate" prop="rec.maxamt">
            <c-input  v-model="model.rec.maxamt"  placeholder="请输入Maximum Amount for Stored Rate"></c-input>
        </el-form-item>
       </c-col>
    </c-row>  
    <c-row>
      <c-col :span="23" :offset="1">
        <c-istream-table :list="model.recpan.codmod.codtxt" :columns="stmData.columns">
        </c-istream-table>
      </c-col>
    </c-row>
  </div>
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infcur/Event"

export default {
    inject: ['root'],
    props:["model","codes"],
    mixins: [CommonProcess],
    data(){
        return {
                stmData: {
                    columns: [
                        "1 1 \"Language\" 50 ",
                        "2 2 \"Description\" 150",
                    ]
                },
        }
    },
    methods:{...Event},
    created:function(){

    }
}
</script>
<style>

</style>
