<template>
  <c-row class="eibs">
    <c-col :span="24">
      <el-table
				:data="gleData"
				:columns="columns"
				:showButtonFlg="true"
			>
				<el-table-column
					v-for="(item, key) in columns"
					:key="key"
					:label="item.label"
          :width="item.width"
				>
          <template slot-scope="scope">
            <span>{{ ['amt'].includes(item.prop) ? moneyFormat(scope.row[item.prop], scope.row.cur) : scope.row[item.prop] }}</span>
          </template>
        </el-table-column>
      </el-table>
    </c-col>
  </c-row>
</template>
<script>
export default {
  inject: ['root'],
  props: ['model', 'codes'],
  data() {
    return {
      columns: [
        {
          label: '借/贷',
          prop: 'dbtcdt'
        },
        {
          label: '账号',
          prop: 'act',
          width:"190px"
        },
        {
          label:'币种',
          prop:'cur'
        },
        {
          label:'金额',
          prop:'amt'
        },
        {
          label:'起息日',
          prop:'valdat',
          width:"100px"
        },
        {
          label:'牌价类型',
          prop:'whmtyp'
        },
        {
          label:'牌价',
          prop:'rat'
        },
        {
          label:'会计科目',
          prop:'trmtyp'
        },
        {
          label:'描述',
          prop:'trmtypName',
          width:"190px"
        },
        {
          label:'分录序号',
          prop:'prn'
        }
      ]
    };
  },
  methods: {},
  computed:{
    gleData(){
      return this.model.setmod.gles
    }
  },
  created: function () {},
};
</script>
<style></style>