<template>
  <div class="eibs-tab">
    <el-col :span="24" style="margin-bottom:18px">
        Liability
    </el-col>
    <el-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="Type" width="auto"> </el-table-column>
        <el-table-column prop="matdat" label="Maturity" width="auto"> </el-table-column>
        <el-table-column prop="tenday" label="Tenor" width="auto"> </el-table-column>
        <el-table-column prop="rol" label="Dbt." width="auto"> </el-table-column>
        <el-table-column prop="nam" label="Name" width="auto"> </el-table-column>
        <el-table-column prop="cdtrol" label="Cdt." width="auto"> </el-table-column>
        <el-table-column prop="cur" label="Cur" width="auto"> </el-table-column>
        <el-table-column prop="oldamt" label="Old Amount" width="auto"> 
         <template slot-scope="scope">
                  {{moneyFormat(scope.row.oldamt)}}
         </template>
        </el-table-column>
        <el-table-column prop="amt" label="Booking Amo" 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="Account" width="auto"> </el-table-column>
        <el-table-column prop="valdat" label="Value Date" width="auto">
         <template slot-scope="scope">
                  {{dateFormat(scope.row.valdat)}}
         </template>
        </el-table-column>
      </c-table>
    </el-col>
                                                                
       <!-- <el-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>
       </el-col>                 
                  
       <el-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>
       </el-col>             
                                                    
       <el-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>
       </el-col>              -->
                  
       <el-col :span="12">
        <el-form-item label="Amount not yet assigned">
            <c-input style="width:20%" 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>
       </el-col>                 
                  
       <el-col :span="12">
           <el-form-item label="">
            <c-button size="small" disabled type="primary"  @click="onLiaallButmisamt">
                Add to Current Line
            </c-button>
           </el-form-item>
       </el-col>
                  
       <!-- <el-col :span="12">
        <el-form-item label="">
            <c-button size="small" type="primary"  @click="onLiaallButmissig">
                Add to Sight Amount
            </c-button>
        </el-form-item>
       </el-col>
                                   
       <el-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>
       </el-col>                 
                                   
       <el-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>
       </el-col>                  -->
                   </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event"

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

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

    }
}
</script>
<style>

</style>
