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 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<QcIndicatorResultVO[]>([])
const total = ref(0)
const loading = ref(false) //
const list = ref<QcIndicatorResultVO[]>([]) //
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()