<template>
    <c-content class="eibs-tab" :height="200">

        <div class="infTopBtn">
            <el-button-group>
                <c-button size="small" type="primary" icon="el-icon-arrow-left"></c-button>
                <c-button size="small" type="primary" icon="el-icon-arrow-right"></c-button>
            </el-button-group>
            <c-button size="small" type="primary">Print</c-button>
            <c-button size="small" type="primary" disabled="disableed">Use</c-button>
            <c-button size="small" type="primary" disabled="disableed">Loginfo</c-button>
        </div>
        </p>

    <c-row >
      <c-col :span="11" :offset="1">
        <c-row>
          <c-col :span="12">
            <el-form-item label="币种代码" prop="rec.cod">
              <c-input disabled="disableed"  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;width:10%" @click=""></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="11" :offset="1">
        <el-form-item label="备用代码" 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="11" :offset="1">
        <el-form-item label="四舍五入货币单位" 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="11" :offset="1">
        <el-form-item label="小数位" 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="11" :offset="1">
        <el-form-item label="汇率计算基数" 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="11" :offset="1">
        <el-form-item label="最大公差" 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="11" :offset="1">
        <el-form-item label="最大公差帐户" 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="11" :offset="1">
        <el-form-item label="总分类账余额汇率" 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="11" :offset="1">
        <el-form-item label="外汇兑换柜台账户" 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="11" :offset="1">
        <el-form-item label="保证金买/卖利率" 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="11" :offset="1">                            
       <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="替换为" 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="11" :offset="1">
        <el-form-item label="利率平方保证金" 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="11" :offset="1">                         
        <c-col :span="12">
          <el-form-item label="有效期自(包括):" 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="到" 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="11" :offset="1">
        <el-form-item label="按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="11" :offset="1">
        <el-form-item label="借记" prop="rec.dbtday">
            <c-input  v-model="model.rec.dbtday"  placeholder="请输入Debit"></c-input>
        </el-form-item>
       </c-col>
                                   
      <c-col :span="11" :offset="1">
        <el-form-item label="信用值" 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="5" :offset="1">
        <el-form-item label="最大存储币种" 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="6">
        <el-form-item label="金额" 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 class="infrow" style="margin-top:50px;">
        <c-istream-table :list="model.recpan.codmod.codtxt" :columns="stmData.columns">
        </c-istream-table>
      </c-col>
    </c-row>
  </c-content>
</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\" 100 ",
                        "2 2 \"Description\" 300",
                    ]
                },
        }
    },
    methods:{...Event},
    created:function(){

    }
}
</script>
<style>

</style>
