<template>

 <quality-check-report-detail-home :current-op-obj="currentOpObj" :operation-type="operationType"  @changeReportDetailOperation="changeReportDetailOperation" @changeOperation="$emit('changeOperation',$event)" v-if="!reportDetailOperation"/>
 <quality-check-report-detail-report  :current-op-obj="currentOpObj"  @changeReportDetailOperation="changeReportDetailOperation" @changeOperation="changeReportDetailOperation"  v-else/>
</template>

<script>
import QualityCheckReportDetailHome
  from "@/view/other/c-views/data-handle/data-quelity-check/qiality-check-report/QualityCheckReportDetailHome.vue";
import QualityCheckReportDetailReport
  from "@/view/other/c-views/data-handle/data-quelity-check/qiality-check-report/QualityCheckReportDetailReport.vue";
import {ref} from "vue";
import {useClickRouterToHome} from "@/unit/use-method/usePagination";

export default {
  name: "QualityCheckReportDetail",
  components: {QualityCheckReportDetailReport, QualityCheckReportDetailHome},
  props:{
    operationType:{

    },
    currentOpObj:{

    }
  },
  setup() {
    const {currentOpObj:currentReportObj,operationType:reportDetailOperation,changeOperation:changeReportDetailOperation} = useClickRouterToHome()
    return {
      currentReportObj,
      reportDetailOperation,
      changeReportDetailOperation
    }
  }
}
</script>

<style scoped lang="scss">

</style>
