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 @@ + + + +