From a8ffdfab75bcb1f4d8670f77a33c60e926b48c79 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 22 Feb 2026 08:04:09 +0800 Subject: [PATCH] feat(mes): add validation for inspection result detail list and update related comments --- .../components/QcIndicatorResultList.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/mes/qc/indicatorresult/components/QcIndicatorResultList.vue b/src/views/mes/qc/indicatorresult/components/QcIndicatorResultList.vue index 109393e7c..aa34580e1 100644 --- a/src/views/mes/qc/indicatorresult/components/QcIndicatorResultList.vue +++ b/src/views/mes/qc/indicatorresult/components/QcIndicatorResultList.vue @@ -39,7 +39,7 @@ import { QcIndicatorResultApi, QcIndicatorResultVO } from '@/api/mes/qc/indicatorresult' import QcIndicatorResultForm from './QcIndicatorResultForm.vue' -// TODO @AI:补全注释,参考 system user index.vue +// TODO DONE @AI:补全注释,参考 system user index.vue => 已补全 defineOptions({ name: 'QcIndicatorResultList' }) @@ -51,16 +51,16 @@ const props = defineProps<{ const { t } = useI18n() const message = useMessage() -const loading = ref(false) -const list = ref([]) -const total = ref(0) +const loading = ref(false) // 列表的加载中 +const list = ref([]) // 列表的数据 +const total = ref(0) // 列表的总页数 const queryParams = reactive({ pageNo: 1, pageSize: 10, qcId: undefined as number | undefined, qcType: undefined as number | undefined -}) -const formRef = ref() +}) // 搜索的表单 +const formRef = ref() // 表单弹窗 Ref /** 查询列表 */ const getList = async () => { @@ -79,17 +79,17 @@ const getList = async () => { } } -/** 新增 */ +/** 新增操作 */ const handleAdd = () => { formRef.value.open('create') } -/** 修改 */ +/** 修改操作 */ const handleUpdate = (row: QcIndicatorResultVO) => { formRef.value.open('update', row.id) } -/** 删除 */ +/** 删除操作 */ const handleDelete = async (row: QcIndicatorResultVO) => { try { await message.delConfirm()