<template>
  <template-page ref="pageRef" :getList="getList" :exportList="exportList" :columnParsing="columnParsing"
    :optionsEvensGroup="optionsEvensGroup">
  </template-page>
</template>

<script>
import TemplatePage from '@/components/template/template-page-1.vue'
import import_mixin from '@/components/template/import_mixin.js'
import { stockManagerListStockToCostPriceV2, stockManagerListStockToCostPriceV2Export } from '@/api/existingCostProduct'
export default {
  components: { TemplatePage },
  mixins: [import_mixin],
  data() {
    return {
      // 事件组合
      optionsEvensGroup: [],
      // 表格属性
      tableAttributes: {
        // 启用勾选列
        selectColumn: false
      },
      // 表格事件
      tableEvents: {
        'selection-change': this.selectionChange
      },
      recordSelected: []
    }
  },
  created() { },
  methods: {
    // 列表请求函数
    getList: stockManagerListStockToCostPriceV2,
    // 列表导出函数
    exportList: stockManagerListStockToCostPriceV2Export,
    // 表格列解析渲染数据更改
    columnParsing(item, defaultData) {
      return defaultData
    },
    // 监听勾选变化
    selectionChange(data) {
      this.recordSelected = data
    }
  }
}
</script>

<style lang="scss" scoped></style>
