diff --git a/src/api/mes/cal/shift/index.ts b/src/api/mes/cal/plan/shift/index.ts similarity index 96% rename from src/api/mes/cal/shift/index.ts rename to src/api/mes/cal/plan/shift/index.ts index dca4a75ce..cd0221015 100644 --- a/src/api/mes/cal/shift/index.ts +++ b/src/api/mes/cal/plan/shift/index.ts @@ -1,7 +1,5 @@ import request from '@/config/axios' -// TODO @AI:挪到 plan/shift 目录下 - // MES 计划班次 VO export interface CalPlanShiftVO { id: number diff --git a/src/api/mes/cal/plan/team.ts b/src/api/mes/cal/plan/team/index.ts similarity index 95% rename from src/api/mes/cal/plan/team.ts rename to src/api/mes/cal/plan/team/index.ts index 7b0a32f64..63a7b7213 100644 --- a/src/api/mes/cal/plan/team.ts +++ b/src/api/mes/cal/plan/team/index.ts @@ -14,8 +14,6 @@ export interface CalPlanTeamVO { attribute4: number } -// TODO @AI:挪到 team/index.ts 中 - // MES 计划班组关联 API export const CalPlanTeamApi = { // 查询指定排班计划的班组列表 diff --git a/src/api/mes/dv/checkplan/machinery.ts b/src/api/mes/dv/checkplan/machinery/index.ts similarity index 96% rename from src/api/mes/dv/checkplan/machinery.ts rename to src/api/mes/dv/checkplan/machinery/index.ts index 7533c6404..5a9406a54 100644 --- a/src/api/mes/dv/checkplan/machinery.ts +++ b/src/api/mes/dv/checkplan/machinery/index.ts @@ -1,6 +1,5 @@ import request from '@/config/axios' -// TODO @AI:放到 machinery/index.ts // MES 点检保养方案设备 VO export interface DvCheckPlanMachineryVO { id: number diff --git a/src/api/mes/dv/checkplan/subject.ts b/src/api/mes/dv/checkplan/subject/index.ts similarity index 96% rename from src/api/mes/dv/checkplan/subject.ts rename to src/api/mes/dv/checkplan/subject/index.ts index 51d2bec97..bc9876809 100644 --- a/src/api/mes/dv/checkplan/subject.ts +++ b/src/api/mes/dv/checkplan/subject/index.ts @@ -1,6 +1,5 @@ import request from '@/config/axios' -// TODO @AI:放到 subject/index.ts // MES 点检保养方案项目 VO export interface DvCheckPlanSubjectVO { id: number diff --git a/src/api/mes/pro/workorder/index.ts b/src/api/mes/pro/workorder/index.ts index 402c3d0a5..18999082e 100644 --- a/src/api/mes/pro/workorder/index.ts +++ b/src/api/mes/pro/workorder/index.ts @@ -79,5 +79,10 @@ export const ProWorkOrderApi = { // 确认工单 confirmWorkOrder: async (id: number) => { return await request.put({ url: `/mes/pro/work-order/confirm?id=` + id }) + }, + + // 获得工单精简列表(下拉选项) + getWorkOrderSimpleList: async () => { + return await request.get({ url: `/mes/pro/work-order/simple-list` }) } } diff --git a/src/views/mes/cal/plan/CalShiftList.vue b/src/views/mes/cal/plan/CalShiftList.vue index a21997c3f..7f8a3cb46 100644 --- a/src/views/mes/cal/plan/CalShiftList.vue +++ b/src/views/mes/cal/plan/CalShiftList.vue @@ -59,7 +59,7 @@ diff --git a/src/views/mes/pro/task/index.vue b/src/views/mes/pro/task/index.vue index 491cec5ac..63b86acb9 100644 --- a/src/views/mes/pro/task/index.vue +++ b/src/views/mes/pro/task/index.vue @@ -57,7 +57,6 @@ - - + - + -
@@ -190,6 +188,7 @@ import { ProTaskApi } from '@/api/mes/pro/task' import { ProRouteProcessApi, ProRouteProcessVO } from '@/api/mes/pro/route/process' import { ProRouteProductApi } from '@/api/mes/pro/route/product' import { MesProWorkOrderStatusEnum, MesProWorkOrderTypeEnum } from '@/views/mes/utils/constants' +import MdItemSelect from '@/views/mes/md/item/components/MdItemSelect.vue' import GanttChart from './components/GanttChart.vue' import GanttEdit from './GanttEdit.vue' import ProTaskList from './ProTaskList.vue' @@ -205,6 +204,7 @@ const queryParams = reactive({ pageSize: 10, code: undefined, name: undefined, + productId: undefined, requestDate: undefined, // 固定筛选:已确认 + 自行生产 status: MesProWorkOrderStatusEnum.CONFIRMED, @@ -274,9 +274,8 @@ const openScheduleDrawer = async (row: any) => { // 通过产品查找工艺路线,再加载工序列表 try { + // 临时方案:查所有工艺路线产品,前端匹配(后续需后端提供"根据产品查询工艺路线"接口) const routeProducts = await ProRouteProductApi.getRouteProductListByRoute(0) - // TODO @芋艿:需要后端提供"根据产品查询关联的工艺路线"接口 - // 临时方案:查所有工艺路线产品,前端匹配 const matched = routeProducts?.find((rp: any) => rp.itemId === row.productId) if (matched) { currentRouteId.value = matched.routeId diff --git a/src/views/mes/pro/workorder/components/ProWorkOrderSelect.vue b/src/views/mes/pro/workorder/components/ProWorkOrderSelect.vue new file mode 100644 index 000000000..3f1cafa0b --- /dev/null +++ b/src/views/mes/pro/workorder/components/ProWorkOrderSelect.vue @@ -0,0 +1,81 @@ + + + +