<template>
  <div class="hhBox">
    <el-tabs v-model="activeName">
      <el-tab-pane label="卡券核销" name="first">
        <write-off-card :class="activeName == 'first' ? 'scroll_class' : ''"></write-off-card>
      </el-tab-pane>
      <el-tab-pane label="门店核销" name="second">
        <write-off-store :class="activeName == 'second' ? 'scroll_class' : ''"></write-off-store>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import writeOffCard from './writeOffCard.vue';
import WriteOffStore from './writeOffStore.vue';
import sticky from '@/mixins/table-sticky.js';
export default {
  components: { writeOffCard, WriteOffStore },
  mixins: [sticky],
  data() {
    return {
      activeName: 'first',
      headerTop: '60px',
      parent: 'scroll_class',
      scrollClass: 'dm-layout-page'
    };
  },
  methods: {}
};
</script>
<style lang="scss" scoped>
.hhBox {
  margin: 0 20px 0 29px;
}
</style>
