<template>
  <div class="eibs-tab" style="margin: 0 10px">
    <c-col :span="24"  style="margin-bottom: 1px"> Liability </c-col>
    <c-col :span="24" >
      <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>
    </c-col>

    <c-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>
    </c-col>

    <c-col :span="12">
      <el-form-item label="">
        <c-button
          size="small"
          disabled
          type="primary"
          @click="event.onLiaallButmisamt"
        >
          Add to Current Line
        </c-button>
      </el-form-item>
    </c-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"],
  mixins: [CommonProcess],
  props: ["model", "codes", "event"],
  data() {
    return {};
  },
  //methods: { ...this.event },
  created: function () {},
};
</script>
<style>
</style>