From 0befdd32ad25b75228631abca9316bb015126ace Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 27 Mar 2026 21:54:24 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(mes):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=A0=B7=E5=93=81=E7=BC=96=E5=8F=B7=E7=94=9F=E6=88=90=E6=96=B9?= =?UTF-8?q?=E6=B3=95=EF=BC=8C=E4=BC=98=E5=8C=96=E8=B4=A8=E6=A3=80=E8=A1=A8?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/QcIndicatorResultForm.vue | 15 +++++++++++++-- .../components/QcIndicatorResultList.vue | 2 -- src/views/mes/qc/iqc/IqcForm.vue | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/views/mes/qc/indicatorresult/components/QcIndicatorResultForm.vue b/src/views/mes/qc/indicatorresult/components/QcIndicatorResultForm.vue index 372602107..e6ed41569 100644 --- a/src/views/mes/qc/indicatorresult/components/QcIndicatorResultForm.vue +++ b/src/views/mes/qc/indicatorresult/components/QcIndicatorResultForm.vue @@ -10,9 +10,14 @@ > - - + + + @@ -93,6 +98,7 @@ import { QcIndicatorResultApi } from '@/api/mes/qc/indicatorresult' import { getStrDictOptions } from '@/utils/dict' import { MesQcResultValueType } from '@/views/mes/utils/constants' +import { generateRandomStr } from '@/utils' defineOptions({ name: 'QcIndicatorResultForm' }) @@ -122,6 +128,11 @@ const formRules = reactive({ }) // 表单校验规则 const formRef = ref() // 表单 Ref +/** 生成样品编号 */ +const generateCode = () => { + formData.value.code = 'QR' + generateRandomStr(12) +} + /** 打开弹窗 */ const open = async (type: string, id?: number) => { dialogVisible.value = true diff --git a/src/views/mes/qc/indicatorresult/components/QcIndicatorResultList.vue b/src/views/mes/qc/indicatorresult/components/QcIndicatorResultList.vue index aa34580e1..23023efb0 100644 --- a/src/views/mes/qc/indicatorresult/components/QcIndicatorResultList.vue +++ b/src/views/mes/qc/indicatorresult/components/QcIndicatorResultList.vue @@ -39,8 +39,6 @@ import { QcIndicatorResultApi, QcIndicatorResultVO } from '@/api/mes/qc/indicatorresult' import QcIndicatorResultForm from './QcIndicatorResultForm.vue' -// TODO DONE @AI:补全注释,参考 system user index.vue => 已补全 - defineOptions({ name: 'QcIndicatorResultList' }) const props = defineProps<{ diff --git a/src/views/mes/qc/iqc/IqcForm.vue b/src/views/mes/qc/iqc/IqcForm.vue index 857f6d1e7..471c36f67 100644 --- a/src/views/mes/qc/iqc/IqcForm.vue +++ b/src/views/mes/qc/iqc/IqcForm.vue @@ -127,7 +127,6 @@ -