<template>
  <div class="eibs-tab">
      <c-col :span="24" style="margin-bottom:18px">
        <el-form-item label="表外" label-width="100px"></el-form-item>
    </c-col>
    <c-col :span="22" :offset="1">
      <c-table :list="model.liaall.liaallg" style="width:80%,text-align:center,margin-bottom:18px" :border="true">
        <el-table-column prop="cbtpfx" label="类型" width="auto"> </el-table-column>
        <el-table-column prop="matdat" label="到期日" width="auto"> </el-table-column>
        <el-table-column prop="tenday" label="期限" width="auto"> </el-table-column>
        <el-table-column prop="rol" label="借记" width="auto"> </el-table-column>
        <el-table-column prop="nam" label="名称" width="auto"> </el-table-column>
        <el-table-column prop="cdtrol" label="贷记" width="auto"> </el-table-column>
        <el-table-column prop="cur" label="币种" width="auto"> </el-table-column>
        <el-table-column prop="oldamt" label="原金额" width="auto"> 
         <template slot-scope="scope">
                  {{moneyFormat(scope.row.oldamt)}}
         </template>
        </el-table-column>
        <el-table-column prop="amt" label="记账金额" width="auto">
        <template slot-scope="scope">
                  {{moneyFormat(scope.row.amt)}}
         </template>
         </el-table-column>
        <el-table-column prop="tenpct" label="%" width="auto"> </el-table-column>
        <el-table-column prop="acc" label="账户" width="auto"> </el-table-column>
        <el-table-column prop="valdat" label="起息日" width="auto">
         <template slot-scope="scope">
                  {{dateFormat(scope.row.valdat)}}
         </template>
        </el-table-column>
      </c-table>
    </c-col>
                                                                
       <!-- <c-col :span="12">
        <el-form-item label="Sight Amount">
            <c-input style="width:50%"  v-model="model.liaall.outamt"  placeholder="请输入Sight Amount"></c-input>
        </el-form-item>
       </c-col>                 
                  
       <c-col :span="12">
        <el-form-item label="Sight Amount Percentage">
            <c-input style="width:50%"  v-model="model.liaall.outpct"  placeholder="请输入Sight Amount Percentage"></c-input>
        </el-form-item>
       </c-col>             
                                                    
       <c-col :span="12">
        <el-form-item label="External Booking Amount">
            <c-input style="width:70%"  v-model="model.liaall.concur" maxlength="3"  placeholder="请输入External Booking Amount"></c-input>
        </el-form-item>
       </c-col>              -->
                  
       <c-col :span="6">
        <el-form-item label="未分配金额" prop="liaall.concur">
            <c-input style="width:100%" disabled  v-model="model.liaall.concur" maxlength="3"  placeholder="请输入External Booking Amount"></c-input>
            <!-- <c-input style="width:50%" disabled v-model="model.liaall.misamt"  placeholder="请输入Amount not yet assigned"></c-input> -->
        </el-form-item>
       </c-col>

       <c-col :span="6">
        <el-form-item label="" prop="liaall.misamt" label-width="15px">
            <!-- <c-input style="width:20%" disabled  v-model="model.liaall.concur" maxlength="3"  placeholder="请输入External Booking Amount"></c-input> -->
            <c-input style="width:100%" disabled v-model="model.liaall.misamt"  placeholder="请输入Amount not yet assigned"></c-input>
        </el-form-item>
       </c-col>                  
                  
       <c-col :span="12">
           <el-form-item label="">
            <c-button size="small" disabled type="primary"  @click="onLiaallButmisamt">
                添加到
            </c-button>
           </el-form-item>
       </c-col>
                  
       <!-- <c-col :span="12">
        <el-form-item label="">
            <c-button size="small" type="primary"  @click="onLiaallButmissig">
                Add to Sight Amount
            </c-button>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Old Amount booked externally">
            <c-input style="width:50%"  v-model="model.liaall.exttotoldamt"  placeholder="请输入Old Amount booked externally"></c-input>
        </el-form-item>
       </c-col>                 
                                   
       <c-col :span="12">
        <el-form-item label="Total booking amount external assinged">
            <c-input style="width:50%"  v-model="model.liaall.exttotamt"  placeholder="请输入Total booking amount external assinged"></c-input>
        </el-form-item>
       </c-col>                  -->
                                                                
       <!-- <el-col :span="12">
        <el-form-item label="即期金额" prop="liaall.outamt">
            <c-input  v-model="model.liaall.outamt"  placeholder="请输入即期金额"></c-input>
        </el-form-item>
       </el-col>                 
                  
       <el-col :span="12">
        <el-form-item label="Sight Amount Percentage" prop="liaall.outpct">
            <c-input  v-model="model.liaall.outpct"  placeholder="请输入Sight Amount Percentage"></c-input>
        </el-form-item>
       </el-col>             
                                                    
       <el-col :span="12">
        <el-form-item label="表外记账金额" prop="liaall.concur">
            <c-input  v-model="model.liaall.concur" maxlength="3"  placeholder="请输入表外记账金额"></c-input>
        </el-form-item>
       </el-col>             
                  
       <el-col :span="12">
        <el-form-item label="未分配金额" prop="liaall.misamt">
            <c-input  v-model="model.liaall.misamt"  placeholder="请输入未分配金额"></c-input>
        </el-form-item>
       </el-col>                 
                  
       <el-col :span="12">
        <c-button size="small" type="primary"  @click="onLiaallButmisamt">
            增加到
        </c-button>
       </el-col>
                  
       <el-col :span="12">
        <c-button size="small" type="primary"  @click="onLiaallButmissig">
            添加到即期金额
        </c-button>
       </el-col>
                                   
       <el-col :span="12">
        <el-form-item label="原表外记账金额" prop="liaall.exttotoldamt">
            <c-input  v-model="model.liaall.exttotoldamt"  placeholder="请输入原表外记账金额"></c-input>
        </el-form-item>
       </el-col>                 
                                   
       <el-col :span="12">
        <el-form-item label="Total booking amount external assinged" prop="liaall.exttotamt">
            <c-input  v-model="model.liaall.exttotamt"  placeholder="请输入Total booking amount external assinged"></c-input>
        </el-form-item>
       </el-col>                  -->
                   </div>
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event"

export default {
    inject: ['root'],
    props:["model","codes"],
    mixins: [CommonProcess],
    data(){
        return {

        }
    },
    methods:{...Event},
    created:function(){

    }
}
</script>
<style>

</style>
