feat(mes): 迁移 ipqc、oqc、rqc 功能(优化)

This commit is contained in:
YunaiV
2026-05-29 21:10:18 +08:00
parent eeff84b63f
commit f79dffcf2e
16 changed files with 268 additions and 23 deletions

View File

@@ -22,8 +22,11 @@ defineOptions({ name: 'DefectRecordInlineList' });
const emit = defineEmits(['success']);
/** 表单类型父级检验单的模式detail 时弹窗只读) */
type FormType = 'create' | 'detail' | 'update';
interface CtxData {
formType?: string;
formType?: FormType;
lineId: number;
qcId: number;
qcType: number;

View File

@@ -34,7 +34,7 @@ const emit = defineEmits(['success']);
const formType = ref<FormType>('create');
const formData = ref<MesQcIpqcApi.Ipqc>();
const subTabsName = ref('line');
const originalSnapshot = ref('');
const originalSnapshot = ref(''); // 表单原始数据快照,用于 finish 时跳过未变更的保存请求
const isDetail = computed(() => formType.value === 'detail');
const canFinish = computed(
() =>

View File

@@ -9,10 +9,10 @@ import { getIpqcLinePage } from '#/api/mes/qc/ipqc/line';
import { MesQcTypeEnum } from '#/views/mes/utils/constants';
import { DefectRecordInlineList } from '../../defectrecord/components';
import { useLineGridColumns } from '../data';
import { type FormType, useLineGridColumns } from '../data';
const props = defineProps<{
formType?: string;
formType?: FormType;
ipqcId: number;
}>();

View File

@@ -9,10 +9,10 @@ import { getIqcLinePage } from '#/api/mes/qc/iqc/line';
import { MesQcTypeEnum } from '#/views/mes/utils/constants';
import { DefectRecordInlineList } from '../../defectrecord/components';
import { useLineGridColumns } from '../data';
import { type FormType, useLineGridColumns } from '../data';
const props = defineProps<{
formType?: string;
formType?: FormType;
iqcId: number;
}>();

View File

@@ -34,7 +34,7 @@ const emit = defineEmits(['success']);
const formType = ref<FormType>('create');
const formData = ref<MesQcOqcApi.Oqc>();
const subTabsName = ref('line');
const originalSnapshot = ref('');
const originalSnapshot = ref(''); // 表单原始数据快照,用于 finish 时跳过未变更的保存请求
const isDetail = computed(() => formType.value === 'detail');
const canFinish = computed(
() =>

View File

@@ -9,10 +9,10 @@ import { getOqcLinePage } from '#/api/mes/qc/oqc/line';
import { MesQcTypeEnum } from '#/views/mes/utils/constants';
import { DefectRecordInlineList } from '../../defectrecord/components';
import { useLineGridColumns } from '../data';
import { type FormType, useLineGridColumns } from '../data';
const props = defineProps<{
formType?: string;
formType?: FormType;
oqcId: number;
}>();

View File

@@ -34,7 +34,7 @@ const emit = defineEmits(['success']);
const formType = ref<FormType>('create');
const formData = ref<MesQcRqcApi.Rqc>();
const subTabsName = ref('line');
const originalSnapshot = ref('');
const originalSnapshot = ref(''); // 表单原始数据快照,用于 finish 时跳过未变更的保存请求
const isDetail = computed(() => formType.value === 'detail');
const canFinish = computed(
() =>

View File

@@ -9,10 +9,10 @@ import { getRqcLinePage } from '#/api/mes/qc/rqc/line';
import { MesQcTypeEnum } from '#/views/mes/utils/constants';
import { DefectRecordInlineList } from '../../defectrecord/components';
import { useLineGridColumns } from '../data';
import { type FormType, useLineGridColumns } from '../data';
const props = defineProps<{
formType?: string;
formType?: FormType;
rqcId: number;
}>();