feat(mes): add validation for inspection result detail list and update related comments

pull/871/MERGE
YunaiV 2026-02-22 08:04:09 +08:00
parent db33e04451
commit a8ffdfab75
1 changed files with 9 additions and 9 deletions

View File

@ -39,7 +39,7 @@
import { QcIndicatorResultApi, QcIndicatorResultVO } from '@/api/mes/qc/indicatorresult' import { QcIndicatorResultApi, QcIndicatorResultVO } from '@/api/mes/qc/indicatorresult'
import QcIndicatorResultForm from './QcIndicatorResultForm.vue' import QcIndicatorResultForm from './QcIndicatorResultForm.vue'
// TODO @AI:补全注释,参考 system user index.vue // TODO DONE @AI:补全注释,参考 system user index.vue => 已补全
defineOptions({ name: 'QcIndicatorResultList' }) defineOptions({ name: 'QcIndicatorResultList' })
@ -51,16 +51,16 @@ const props = defineProps<{
const { t } = useI18n() const { t } = useI18n()
const message = useMessage() const message = useMessage()
const loading = ref(false) const loading = ref(false) // 列表的加载中
const list = ref<QcIndicatorResultVO[]>([]) const list = ref<QcIndicatorResultVO[]>([]) // 列表的数据
const total = ref(0) const total = ref(0) // 列表的总页数
const queryParams = reactive({ const queryParams = reactive({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
qcId: undefined as number | undefined, qcId: undefined as number | undefined,
qcType: undefined as number | undefined qcType: undefined as number | undefined
}) }) // 搜索的表单
const formRef = ref() const formRef = ref() // 表单弹窗 Ref
/** 查询列表 */ /** 查询列表 */
const getList = async () => { const getList = async () => {
@ -79,17 +79,17 @@ const getList = async () => {
} }
} }
/** 新增 */ /** 新增操作 */
const handleAdd = () => { const handleAdd = () => {
formRef.value.open('create') formRef.value.open('create')
} }
/** 修改 */ /** 修改操作 */
const handleUpdate = (row: QcIndicatorResultVO) => { const handleUpdate = (row: QcIndicatorResultVO) => {
formRef.value.open('update', row.id) formRef.value.open('update', row.id)
} }
/** 删除 */ /** 删除操作 */
const handleDelete = async (row: QcIndicatorResultVO) => { const handleDelete = async (row: QcIndicatorResultVO) => {
try { try {
await message.delConfirm() await message.delConfirm()