Actinf.vue 2.18 KB
Newer Older
wangren committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
<template>
  <div class="eibs-tab">
    <c-col :span="8" style="height: 24px" >
      <el-form-item label="Accounts Defined" class="messageLabel">
      </el-form-item>
    </c-col>
    
      <!-- <el-form-item label="Total Number of Accounts" prop="recpan.actnum">
        <c-col :span="6">
        <c-input
          v-model="model.recpan.actnum"
          placeholder="Total Number of Accounts"
        ></c-input>
        </c-col>
      </el-form-item> -->
    
    <c-table
      :border="true"
      :list="data"
      ref="table"
      style="width:80%,text-aligen:center"
      height="500"
      :paginationShow="false"
    >
      <el-table-column label="Type" 
      width="auto" 
      prop="typ"
      sortable
      ></el-table-column>
      <el-table-column
        label="Cur."
        width="auto"
        prop="cur"
        sortable
      ></el-table-column>
      <el-table-column
        label="Account No."
        width="auto"
        prop="extkey"
        sortable
      ></el-table-column>
      <el-table-column
        label="科目代码"
        width="auto"
        prop="trmtyp"
        sortable
      ></el-table-column>
      <el-table-column
        label="  "
        width="auto"
        prop="nam"
        sortable
      ></el-table-column>
    </c-table>
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infpty/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      data: [],
    };
  },
  methods: { ...Event 
      
  },
  created: function () {},
  watch: {
        "model.recpan.act": function () {
            this.data = this.model.recpan.act;
            this.$nextTick(() => {
                for (let i = 0; i < this.data.length; i++) {
                    if (this.data[i].exeflg == "Y") {
                        this.$refs.table.$refs.table.toggleRowSelection(
                            this.data[i],
                            true
                        );
                    }
                }
            });
        },
    },
};
</script>
<style>
</style>