<template>
  <div>
    <a-button @click="aaaa">sadasda</a-button>
    <p-table-edit ref="easyTable"
                  dragle
                  size="small"
                  :bordered="true"
                  :pagination="false"
                  :rowKey="'oddCaseQty'"
                  auto-width
                  :data-source="data"
                  :columns="aColumns">
    </p-table-edit>
  </div>
</template>

<script>
export default {

  data() {
    return {
      aColumns: [
        {
          type: 'number',
          width: 80,
          title: '件数2',
          dataIndex: 'oddCaseQty',
          key: 'oddCaseQty',
          required: true,
          validateType:"number",
        },
        {
          type: 'number',
          width: 80,
          title: '零散数',
          dataIndex: 'oddPieceQty',
          key: 'oddPieceQty',
          required: true,
          validateType:"number",
        },
      ],
      data: [
        { oddCaseQty: 1, oddPieceQty: 2 },
      ]
    }
  },


  methods: {

    aaaa(){
       this.$refs.easyTable.validateFields(function (error, values, selectData) {
        if (error) {
          
          return;
        }
        
      });
    },
  }

}
</script>

<style>
</style>