From ac04250fc771d800a19301021f03704362c96f89 Mon Sep 17 00:00:00 2001 From: zch Date: Wed, 8 Jan 2025 19:44:37 +0800 Subject: [PATCH] =?UTF-8?q?add(hwmom-mes):=20=E5=A2=9E=E5=8A=A0=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4=E5=B7=A5=E8=89=BA=E8=B7=AF=E7=BA=BF=E6=AD=A5=E9=AA=A4?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在工艺路线列表页面添加维护工艺路线步骤按钮 - 实现维护工艺路线步骤对话框,包括工艺路线名称、工艺路线组成信息等 - 添加工艺路线步骤的添加、删除功能 --- src/api/mes/baseRoute/types.ts | 33 ++++++ src/views/mes/baseRoute/index.vue | 191 +++++++++++++++++++++++++++++- 2 files changed, 220 insertions(+), 4 deletions(-) diff --git a/src/api/mes/baseRoute/types.ts b/src/api/mes/baseRoute/types.ts index 1981220..0fb39cd 100644 --- a/src/api/mes/baseRoute/types.ts +++ b/src/api/mes/baseRoute/types.ts @@ -1,3 +1,23 @@ +// 定义工艺路线步骤的接口 +export interface ProdBaseRouteProcess { + /** 工序ID */ + processId: string | number; + /** 工序顺序 */ + processOrder: string | number; + /** 备注 */ + remark?: string; + /** 创建人 */ + createBy?: number; + /** 创建时间 */ + createTime?: string; + /** 更新人 */ + updateBy?: number; + /** 更新时间 */ + updateTime?: string; + /** 序号(前端使用) */ + index?: number; +} + export interface BaseRouteVO { /** * 工艺路线ID @@ -54,6 +74,13 @@ export interface BaseRouteVO { */ updateTime: string; + /** + * 工艺路线步骤列表 + */ + routeProcessBoList?: ProdBaseRouteProcess[]; + + routeProcessVoList?: ProdBaseRouteProcess[]; + } export interface BaseRouteForm extends BaseEntity { @@ -82,6 +109,12 @@ export interface BaseRouteForm extends BaseEntity { */ remark?: string; + /** + * 工艺路线步骤列表 + */ + routeProcessBoList?: ProdBaseRouteProcess[]; + + routeProcessVoList?: ProdBaseRouteProcess[]; } export interface BaseRouteQuery extends PageQuery { diff --git a/src/views/mes/baseRoute/index.vue b/src/views/mes/baseRoute/index.vue index 6484b2b..68ea663 100644 --- a/src/views/mes/baseRoute/index.vue +++ b/src/views/mes/baseRoute/index.vue @@ -71,14 +71,25 @@ @@ -116,12 +127,73 @@ + + + + + + + + + 工艺路线组成信息 + + + 添加 + + + 删除 + + + + + + + + + + + + + + + + + +