<template>
  <layout-card>
    <div id="printContent">
      <inspection-record-view
        :entrance="entrance"
        :checkRecordId="CHECKRECORD_ID"
      />
    </div>
    <div class="tc mt-10">
      <el-button v-print="'#printContent'" type="primary">打印</el-button>
    </div>
  </layout-card>
</template>

<script setup>
import InspectionRecordView from "./components/inspection_record_view.vue";
import { useRoute } from "vue-router";

defineProps({
  entrance: {
    type: String,
    default: "checklist_inspection_status",
  },
});
const route = useRoute();
const { CHECKRECORD_ID } = route.query;
</script>

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