<template>
  <div>
    <IndexPage ref="indexPageRefs" :dataType="2">
      <template #actions="{ row }">
        <m-button type="primary" text @click="onDetails(row)">查看申请单</m-button>
      </template>
    </IndexPage>
    <ApprovalDetails ref="approvalDetailsRefs"></ApprovalDetails>
  </div>
</template>

<script>
import ApprovalDetails from '../components/ApprovalDetails.vue'
import IndexPage from '../components/IndexPage.vue'
export default {
  name: 'approvalAlready',
  components: {
    IndexPage,
    ApprovalDetails
  },
  methods: {
    onDetails (item) {
      this.$refs.approvalDetailsRefs.open(item)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
