| | |
| | | <span class="detail-title">{{ form.hiddenDesc }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="隐患类型"> |
| | | <span class="detail-title">{{ form.type }}</span> |
| | | <span class="detail-title">{{ TypeLabel(form.type) }}</span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="隐患风险等级"> |
| | | <el-tag :type="getTypeTagType(form.riskLevel)"> |
| | |
| | | <script setup> |
| | | import { getToken } from "@/utils/auth"; |
| | | import pagination from "@/components/PIMTable/Pagination.vue"; |
| | | import { onMounted, ref, getCurrentInstance } from "vue"; |
| | | import { onMounted, ref, getCurrentInstance, computed } from "vue"; |
| | | import { ElMessageBox, ElMessage } from "element-plus"; |
| | | import useUserStore from "@/store/modules/user"; |
| | | import { userListNoPage } from "@/api/system/user.js"; |
| | |
| | | verifyResult: [{ required: true, message: "请选择", trigger: "change" }], |
| | | acceptDesc: [{ required: true, message: "请输入", trigger: "blur" }], |
| | | }; |
| | | const typeList = ref([ |
| | | { |
| | | value: "设备安全", |
| | | label: "设备安全", |
| | | }, |
| | | { |
| | | value: "人员操作", |
| | | label: "人员操作", |
| | | }, |
| | | { |
| | | value: "环境风险", |
| | | label: "环境风险", |
| | | }, |
| | | { |
| | | value: "物料管控", |
| | | label: "物料管控", |
| | | }, |
| | | { |
| | | value: "其他", |
| | | label: "其他", |
| | | }, |
| | | ]); |
| | | const { hidden_danger_type } = proxy.useDict("hidden_danger_type"); |
| | | const typeList = computed(() => hidden_danger_type?.value || []); |
| | | const TypeLabel = val => { |
| | | const item = typeList.value.find(i => String(i.value) === String(val)); |
| | | return item ? item.label : val; |
| | | }; |
| | | const form2 = ref({ |
| | | rectifyActualTime: "", // 实际整改完成时间 |
| | | rectifyMeasures: "", // 整改具体措施 |
| | |
| | | label: "低风险", |
| | | }, |
| | | ]); |
| | | // 隐患类型选项 |
| | | const { type_qualification } = proxy.useDict("type_qualification"); |
| | | const { form, rules } = toRefs(data); |
| | | const { form: searchForm } = useFormData(data.searchForm); |
| | | // 产品表单弹框数据 |