diff --git a/src/api/qms/QcInspectionMain/types.ts b/src/api/qms/QcInspectionMain/types.ts index 0d645ee..26b0836 100644 --- a/src/api/qms/QcInspectionMain/types.ts +++ b/src/api/qms/QcInspectionMain/types.ts @@ -337,6 +337,16 @@ export interface QcInspectionMainQuery extends PageQuery { */ inspectionType?: number | string; + /** + * 检测类型字典(单值查询) + */ + qcInspectionType?: string; + + /** + * 检测类型字典列表(多值查询,用于产品检等需要查询多个类型的场景) + */ + qcInspectionTypes?: string[]; + /** * 单据状态(0未处理/1完成) */ diff --git a/src/api/qms/qcInspectionTemplate/types.ts b/src/api/qms/qcInspectionTemplate/types.ts index 78a14de..c3f93f3 100644 --- a/src/api/qms/qcInspectionTemplate/types.ts +++ b/src/api/qms/qcInspectionTemplate/types.ts @@ -64,8 +64,12 @@ export interface QcInspectionTemplateVO { */ description: string; + /** + * 是否通用模板(0否/1是) + */ + isDefault: string; + - /** * 关联检测类型表 */ @@ -150,8 +154,11 @@ export interface QcInspectionTemplateForm extends BaseEntity { */ description?: string; + /** + * 是否通用模板(0否/1是) + */ + isDefault?: string; - /** * 关联检测类型表 */ @@ -236,6 +243,10 @@ export interface QcInspectionTemplateQuery extends PageQuery { */ description?: string; + /** + * 是否通用模板(0否/1是) + */ + isDefault?: string; /** * 关联检测类型表 diff --git a/src/views/dms/dmsFaultInstanceActivity/跳转界面优化未测试.vue b/src/views/dms/dmsFaultInstanceActivity/跳转界面优化未测试.vue new file mode 100644 index 0000000..6f549df --- /dev/null +++ b/src/views/dms/dmsFaultInstanceActivity/跳转界面优化未测试.vue @@ -0,0 +1,604 @@ + + + + + + + + + {{ currentStepName }} + + + 主管确认 + + + 流程进度 + + + + 返回 + + + + + + + 工单基本信息 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + PDA端创建的工单详情(只读) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/qms/QcInspectionMain/index.vue b/src/views/qms/QcInspectionMain/index.vue index 5e5e344..acc9933 100644 --- a/src/views/qms/QcInspectionMain/index.vue +++ b/src/views/qms/QcInspectionMain/index.vue @@ -635,17 +635,25 @@ const inspectionResultDialog = reactive({ }); -//路由:inspectionType = 1产品检 2原材料检 3入库检 +/** + * 路由参数处理: + * - inspectionType=1 产品检测(首检=0, 专检=1, 互检=3, 抽检=5, 成品检=6) + * - inspectionType=2 原材料检测(原材料检=4) + * - inspectionType=3 入库检测(入库检=7) + */ const inspectionType = ref(); const getInspectionType = async () => { const route = useRoute(); inspectionType.value = route.query.inspectionType; - if (inspectionType.value == 2){ - queryParams.value.inspectionType = '2'; - } else if (inspectionType.value == 3){ - queryParams.value.inspectionType = '3'; + if (inspectionType.value == '2') { + // 原材料检测:原材料检=4 + queryParams.value.qcInspectionType = '4'; + } else if (inspectionType.value == '3') { + // 入库检测:入库检=7 + queryParams.value.qcInspectionType = '7'; } else { - queryParams.value.inspectionType = '1'; + // 产品检测:首检=0, 专检=1, 互检=3, 抽检=5, 成品检=6 + queryParams.value.qcInspectionTypes = ['0', '1', '3', '5', '6']; } }; @@ -749,6 +757,8 @@ const data = reactive>({ result: undefined, workshop: undefined, inspectionType: undefined, + qcInspectionType: undefined, + qcInspectionTypes: undefined, status: undefined, inspector: undefined, shift: undefined, @@ -877,8 +887,12 @@ const handleQuery = () => { /** 重置按钮操作 */ const resetQuery = () => { queryFormRef.value?.resetFields(); - handleQuery(); dateRange.value = []; + // 重置后需要重新设置检测类型(根据路由参数) + queryParams.value.qcInspectionType = undefined; + queryParams.value.qcInspectionTypes = undefined; + getInspectionType(); + handleQuery(); } /** 重置子表搜索 */ diff --git a/src/views/qms/qcInspectionTemplate/index.vue b/src/views/qms/qcInspectionTemplate/index.vue index 59996f6..1672cb9 100644 --- a/src/views/qms/qcInspectionTemplate/index.vue +++ b/src/views/qms/qcInspectionTemplate/index.vue @@ -66,6 +66,12 @@ + + + 是 + 否 + + @@ -163,7 +169,7 @@ - + @@ -183,7 +189,7 @@ --> - + @@ -194,7 +200,7 @@ --> - + @@ -212,6 +218,15 @@ + + + 否 + 是 + + + 通用模板不绑定具体物料、工序或工位 + +