From 1c4ae03e7dcf333fe08e8bf3555752ca4a42c6eb Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 21 Feb 2026 12:22:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(mes):=20=E6=B7=BB=E5=8A=A0=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E7=8F=AD=E7=BB=84=E5=92=8C=E7=8F=AD=E6=AC=A1=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E7=9A=84=20VO=20=E5=8F=8A=20API=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E7=82=B9=E6=A3=80=E4=BF=9D=E5=85=BB=E6=96=B9=E6=A1=88?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=92=8C=E9=A1=B9=E7=9B=AE=E7=9A=84=20VO=20?= =?UTF-8?q?=E5=8F=8A=20API=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=B7=A5=E5=BA=8F?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=99=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/cal/plan/team.ts.bak | 35 ++++++++ src/api/mes/cal/shift/index.ts.bak | 41 ++++++++++ src/api/mes/dv/checkplan/machinery.ts.bak | 32 ++++++++ src/api/mes/dv/checkplan/subject.ts.bak | 33 ++++++++ .../process/components/ProProcessSelect.vue | 79 +++++++++++++++++++ 5 files changed, 220 insertions(+) create mode 100644 src/api/mes/cal/plan/team.ts.bak create mode 100644 src/api/mes/cal/shift/index.ts.bak create mode 100644 src/api/mes/dv/checkplan/machinery.ts.bak create mode 100644 src/api/mes/dv/checkplan/subject.ts.bak create mode 100644 src/views/mes/pro/process/components/ProProcessSelect.vue diff --git a/src/api/mes/cal/plan/team.ts.bak b/src/api/mes/cal/plan/team.ts.bak new file mode 100644 index 000000000..7b0a32f64 --- /dev/null +++ b/src/api/mes/cal/plan/team.ts.bak @@ -0,0 +1,35 @@ +import request from '@/config/axios' + +// MES 计划班组关联 VO +export interface CalPlanTeamVO { + id: number + planId: number // 排班计划编号 + teamId: number // 班组编号 + teamCode: string // 班组编码 + teamName: string // 班组名称 + remark: string // 备注 + attribute1: string + attribute2: string + attribute3: number + attribute4: number +} + +// TODO @AI:挪到 team/index.ts 中 + +// MES 计划班组关联 API +export const CalPlanTeamApi = { + // 查询指定排班计划的班组列表 + getPlanTeamListByPlan: async (planId: number) => { + return await request.get({ url: `/mes/cal/plan-team/list-by-plan?planId=` + planId }) + }, + + // 新增计划班组关联 + createPlanTeam: async (data: CalPlanTeamVO) => { + return await request.post({ url: `/mes/cal/plan-team/create`, data }) + }, + + // 删除计划班组关联 + deletePlanTeam: async (id: number) => { + return await request.delete({ url: `/mes/cal/plan-team/delete?id=` + id }) + } +} diff --git a/src/api/mes/cal/shift/index.ts.bak b/src/api/mes/cal/shift/index.ts.bak new file mode 100644 index 000000000..dca4a75ce --- /dev/null +++ b/src/api/mes/cal/shift/index.ts.bak @@ -0,0 +1,41 @@ +import request from '@/config/axios' + +// TODO @AI:挪到 plan/shift 目录下 + +// MES 计划班次 VO +export interface CalPlanShiftVO { + id: number + planId: number // 排班计划编号 + sort: number // 显示顺序 + name: string // 班次名称 + startTime: string // 开始时间 + endTime: string // 结束时间 + remark: string // 备注 + attribute1: string + attribute2: string + attribute3: number + attribute4: number +} + +// MES 计划班次 API +export const CalPlanShiftApi = { + // 查询指定排班计划的班次列表 + getPlanShiftListByPlan: async (planId: number) => { + return await request.get({ url: `/mes/cal/plan-shift/list-by-plan?planId=` + planId }) + }, + + // 新增计划班次 + createPlanShift: async (data: CalPlanShiftVO) => { + return await request.post({ url: `/mes/cal/plan-shift/create`, data }) + }, + + // 修改计划班次 + updatePlanShift: async (data: CalPlanShiftVO) => { + return await request.put({ url: `/mes/cal/plan-shift/update`, data }) + }, + + // 删除计划班次 + deletePlanShift: async (id: number) => { + return await request.delete({ url: `/mes/cal/plan-shift/delete?id=` + id }) + } +} diff --git a/src/api/mes/dv/checkplan/machinery.ts.bak b/src/api/mes/dv/checkplan/machinery.ts.bak new file mode 100644 index 000000000..7533c6404 --- /dev/null +++ b/src/api/mes/dv/checkplan/machinery.ts.bak @@ -0,0 +1,32 @@ +import request from '@/config/axios' + +// TODO @AI:放到 machinery/index.ts +// MES 点检保养方案设备 VO +export interface DvCheckPlanMachineryVO { + id: number + planId: number // 方案编号 + machineryId: number // 设备编号 + machineryCode: string // 设备编码 + machineryName: string // 设备名称 + machineryBrand: string // 品牌 + machinerySpec: string // 规格型号 + remark: string // 备注 +} + +// MES 点检保养方案设备 API +export const DvCheckPlanMachineryApi = { + // 查询指定方案的设备列表 + getListByPlan: async (planId: number) => { + return await request.get({ url: `/mes/dv/check-plan-machinery/list-by-plan?planId=` + planId }) + }, + + // 新增方案设备关联 + create: async (data: DvCheckPlanMachineryVO) => { + return await request.post({ url: `/mes/dv/check-plan-machinery/create`, data }) + }, + + // 删除方案设备关联 + delete: async (id: number) => { + return await request.delete({ url: `/mes/dv/check-plan-machinery/delete?id=` + id }) + } +} diff --git a/src/api/mes/dv/checkplan/subject.ts.bak b/src/api/mes/dv/checkplan/subject.ts.bak new file mode 100644 index 000000000..51d2bec97 --- /dev/null +++ b/src/api/mes/dv/checkplan/subject.ts.bak @@ -0,0 +1,33 @@ +import request from '@/config/axios' + +// TODO @AI:放到 subject/index.ts +// MES 点检保养方案项目 VO +export interface DvCheckPlanSubjectVO { + id: number + planId: number // 方案编号 + subjectId: number // 项目编号 + subjectCode: string // 项目编码 + subjectName: string // 项目名称 + subjectType: number // 项目类型 + subjectContent: string // 项目内容 + subjectStandard: string // 标准 + remark: string // 备注 +} + +// MES 点检保养方案项目 API +export const DvCheckPlanSubjectApi = { + // 查询指定方案的项目列表 + getListByPlan: async (planId: number) => { + return await request.get({ url: `/mes/dv/check-plan-subject/list-by-plan?planId=` + planId }) + }, + + // 新增方案项目关联 + create: async (data: DvCheckPlanSubjectVO) => { + return await request.post({ url: `/mes/dv/check-plan-subject/create`, data }) + }, + + // 删除方案项目关联 + delete: async (id: number) => { + return await request.delete({ url: `/mes/dv/check-plan-subject/delete?id=` + id }) + } +} diff --git a/src/views/mes/pro/process/components/ProProcessSelect.vue b/src/views/mes/pro/process/components/ProProcessSelect.vue new file mode 100644 index 000000000..8cf12c473 --- /dev/null +++ b/src/views/mes/pro/process/components/ProProcessSelect.vue @@ -0,0 +1,79 @@ + + + +