| | |
| | | @close="handleQuery"></FormDia> |
| | | <files-dia ref="filesDia" |
| | | @close="handleQuery"></files-dia> |
| | | <DetailDialog ref="detailDialog" |
| | | v-model:visible="detailDialogVisible" |
| | | :data="detailDialogData" |
| | | @close="handleQuery"></DetailDialog> |
| | | <el-dialog v-model="dialogFormVisible" |
| | | title="编辑检验员" |
| | | width="30%" |
| | |
| | | } from "vue"; |
| | | import InspectionFormDia from "@/views/qualityManagement/rawMaterialInspection/components/inspectionFormDia.vue"; |
| | | import FormDia from "@/views/qualityManagement/rawMaterialInspection/components/formDia.vue"; |
| | | import DetailDialog from "@/views/qualityManagement/rawMaterialInspection/components/detailDialog.vue"; |
| | | import { ElMessageBox } from "element-plus"; |
| | | import { |
| | | downloadQualityInspect, |
| | |
| | | }, |
| | | }, |
| | | { |
| | | name: "详情", |
| | | type: "text", |
| | | clickFun: row => { |
| | | openDetailDialog(row); |
| | | }, |
| | | }, |
| | | { |
| | | name: "附件", |
| | | type: "text", |
| | | clickFun: row => { |
| | |
| | | const formDia = ref(); |
| | | const filesDia = ref(); |
| | | const inspectionFormDia = ref(); |
| | | const detailDialog = ref(); |
| | | const detailDialogVisible = ref(false); |
| | | const detailDialogData = ref({}); |
| | | const { proxy } = getCurrentInstance(); |
| | | const userStore = useUserStore(); |
| | | const changeDaterange = value => { |
| | |
| | | }); |
| | | }; |
| | | |
| | | // 打开详情弹框 |
| | | const openDetailDialog = row => { |
| | | // 确保qualityInspectParams字段存在 |
| | | if (!row.qualityInspectParams) { |
| | | row.qualityInspectParams = []; |
| | | } |
| | | detailDialogData.value = row; |
| | | detailDialogVisible.value = true; |
| | | // 打开弹窗后加载指标数据 |
| | | setTimeout(() => { |
| | | detailDialog.value?.loadIndicatorData(); |
| | | }, 100); |
| | | }; |
| | | |
| | | // 删除 |
| | | const handleDelete = () => { |
| | | let ids = []; |