feat(mes): 迁移 ipqc、oqc、rqc 功能(优化)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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(
|
||||
() =>
|
||||
|
||||
@@ -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;
|
||||
}>();
|
||||
|
||||
|
||||
@@ -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;
|
||||
}>();
|
||||
|
||||
|
||||
@@ -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(
|
||||
() =>
|
||||
|
||||
@@ -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;
|
||||
}>();
|
||||
|
||||
|
||||
@@ -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(
|
||||
() =>
|
||||
|
||||
@@ -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;
|
||||
}>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user