<template>
  <div>
    <layout-card>
      <div id="printContent">
        <el-divider content-position="left">检查信息</el-divider>
        <el-descriptions border>
          <el-descriptions-item label="隐患照片	">
            {{ data.info.INSPECTION_CATEGORY }}
          </el-descriptions-item>
          <el-descriptions-item label="隐患描述">
            {{ data.info.HIDDENDESCR }}
          </el-descriptions-item>
          <el-descriptions-item label="隐患部位	">
            {{ data.info.HIDDENPART }}
          </el-descriptions-item>
          <el-descriptions-item label="隐患级别">
            {{ data.info.HIDDENLEVEL_NAME }}
          </el-descriptions-item>
          <el-descriptions-item label="隐患类型	">
            限期整改
          </el-descriptions-item>
          <el-descriptions-item label="整改期限">
            {{ data.info.RECTIFICATIONDEADLINE }}
          </el-descriptions-item>
          <el-descriptions-item label="整改部门	">
            {{ data.info.RECTIFICATIONDEPT_NAME }}
          </el-descriptions-item>
          <el-descriptions-item label="整改人">
            {{ data.info.RECTIFICATIONOR_NAME }}
          </el-descriptions-item>
          <el-descriptions-item label="整改时间">
            {{ data.info.RECTIFICATIONTIME }}
          </el-descriptions-item>
          <el-descriptions-item label="整改照片">
            {{ data.info.RECTIFICATIONTIME }}
          </el-descriptions-item>
          <el-descriptions-item label="验收时间">
            {{ data.info.CHECKTIME }}
          </el-descriptions-item>
          <el-descriptions-item label="验收图片">
            {{ data.info.CHECKTIME }}
          </el-descriptions-item>
          <el-descriptions-item label="是否进行罚款">
            {{ data.info.ISPUNISH === "1" ? "是" : "否" }}
          </el-descriptions-item>
        </el-descriptions>
      </div>
    </layout-card>
  </div>
</template>

<script setup>
import { getKeyprojectcheckFindHidden } from "@/request/keyprojects";
import { reactive } from "vue";
import { useRoute } from "vue-router";

const route = useRoute();
const data = reactive({
  info: {},
});

const fnGetData = async () => {
  const resData = await getKeyprojectcheckFindHidden({
    HIDDEN_ID: route.query.HIDDEN_ID,
  });
  data.info = resData.pd;
};
fnGetData();
</script>

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