<template>
    <div>
        <div class="mrg-b">
          <!--<drop-filter :columns="wholeLabels" :storeKey="storeKey" :storeLabels="storeLables" @doFilter="labels => storeLables = labels"></drop-filter>-->
            <el-table
            ref="table"
            stripe
            border
            :max-height="tableMaxHeight"
            :filteredLabels="storeLables"
            :data="tableData"
            style="width: 100%">
             <table-column
                label="ASN单号"
                prop="asnNo">
            </table-column>
             <table-column
                label="明细行号"
                prop="asnLineNo">
            </table-column>
             <table-column
                label="商品编码"
                prop="skuCode">
            </table-column>
             <table-column
                label="商品名称"
                prop="skuName">
            </table-column>
            <table-column
                label="数量"
                prop="qty">
            </table-column>
            <table-column
                label="推荐库位"
                prop="suggestLoc">
            </table-column>
            <table-column
                label="实际上架库位"
                prop="toLoc">
            </table-column>
            <table-column
                label="上架人"
                prop="papoName">
            </table-column>
            <table-column
                label="操作时间"
                prop="paTime">
            </table-column>
            </el-table>
            </div>
            <div>
            <el-pagination
                @size-change="handleSizeChange"
                @current-change="handleCurrentChange"
                :current-page="currentPage"
                :page-sizes="[10, 20, 50, 100]"
                :page-size="pageSize"
                layout="total, sizes, prev, pager, next, jumper"
                :total="total">
            </el-pagination>
        </div>
    </div>
</template>
<script>
export default {
  data () {
    return {

      storeKey: 'padeff'
    }
  },
  props: {
    tableData: {
      type: Array,
      default: () => []
    },
    total: Number,
    currentPage: Number,
    pageSize: Number,
  },
  methods: {

    // 当前页码
    handleCurrentChange (currentPage) {
      const query = { 'page.limitCount': this.pageSize, 'page.currentPage': currentPage }
      this.$emit('getList', query)
    },

    // 每页显示条数
    handleSizeChange (pageSize) {
      const query = { 'page.limitCount': pageSize, 'page.currentPage': this.currentPage }
      this.$emit('getList', query)
    },
  }
}
</script>
<style lang="scss" scoped>
    .mrg-b{
        margin-bottom: 20px;
    }
    .mrg-l{
        margin-left:10px;
    }
    .blue{
      cursor:pointer;
      color:#0682ea
    }
</style>
