From 7fd3927b589fbaceae3d5aa3aa6b68ac56f17c4f Mon Sep 17 00:00:00 2001 From: yinq Date: Wed, 4 Jun 2025 15:50:19 +0800 Subject: [PATCH] =?UTF-8?q?update=20mes=E5=B7=A5=E8=89=BA=E8=B7=AF?= =?UTF-8?q?=E7=BA=BF=E5=85=B3=E8=81=94=E7=89=A9=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/baseRoute/types.ts | 32 +++++ src/views/mes/baseRoute/index.vue | 193 ++++++++++++++++++++++++++---- 2 files changed, 205 insertions(+), 20 deletions(-) diff --git a/src/api/mes/baseRoute/types.ts b/src/api/mes/baseRoute/types.ts index 603e691..d89841d 100644 --- a/src/api/mes/baseRoute/types.ts +++ b/src/api/mes/baseRoute/types.ts @@ -18,6 +18,28 @@ export interface ProdBaseRouteProcess { index?: number; } +// 定义工艺路线关联物料的接口 +export interface ProdBaseRouteMaterial { + /** 物料ID */ + materialId: string | number; + /** 物料名称 */ + materialName?: string; + /** 激活标识(0否 1是) */ + activeFlag: string; + /** 备注 */ + remark?: string; + /** 创建人 */ + createBy?: number; + /** 创建时间 */ + createTime?: string; + /** 更新人 */ + updateBy?: number; + /** 更新时间 */ + updateTime?: string; + /** 序号(前端使用) */ + index?: number; +} + export interface BaseRouteVO { /** * 工艺路线ID @@ -81,6 +103,11 @@ export interface BaseRouteVO { routeProcessVoList?: ProdBaseRouteProcess[]; + /** + * 工艺路线关联物料列表 + */ + prodBaseRouteMaterialList?: ProdBaseRouteMaterial[]; + /** * 工艺路线版本 */ @@ -160,6 +187,11 @@ export interface BaseRouteForm extends BaseEntity { routeProcessVoList?: ProdBaseRouteProcess[]; + /** + * 工艺路线关联物料列表 + */ + prodBaseRouteMaterialList?: ProdBaseRouteMaterial[]; + /** * 工艺路线版本 */ diff --git a/src/views/mes/baseRoute/index.vue b/src/views/mes/baseRoute/index.vue index 0fbf1a2..d54420d 100644 --- a/src/views/mes/baseRoute/index.vue +++ b/src/views/mes/baseRoute/index.vue @@ -128,6 +128,14 @@ >工艺步骤 + 关联物料 + @@ -203,16 +211,16 @@ - - - {{ dict.label }} - - - + + + + + + + + + + @@ -282,18 +290,83 @@ + + + + + + + 工艺路线关联物料信息 + + + 添加物料 + + + 删除 + + + + + + + + + + + + + + + + + + + + + +