<template>
  <!-- 结算申请-->
  <div class="app-container">
    <PageHeader v-if="isShowComponent !== 'ExamHome'" :pageContent="pageContent" @goBack="goBack" />
    <component :is="isShowComponent" :row="rowData" @goDetail="goDetail" @goBackPage="goBack" />
  </div>
</template>

<script>
import PageHeader from '@/components/pageHeader'
import ExamHome from './component/examHome.vue'
import ExamDetail from './component/examDetail.vue'
export default {
  name: 'CostExamList',
  components: {
    PageHeader,
    ExamHome,
    ExamDetail
  },
  data() {
    return {
      isShowComponent: 'ExamHome',
      pageContent: '',
      rowData: null,
      isView: false
    }
  },
  methods: {
    // 退料编辑
    goDetail(rowData) {
      this.rowData = rowData
      this.pageContent = '结算详情'
      this.isShowComponent = 'ExamDetail'
    },
    goBack() {
      this.isShowComponent = 'ExamHome'
    }
  }
}
</script>
