From 008012a58854bb3fefd03ed080c56f8879f936da Mon Sep 17 00:00:00 2001 From: yinq Date: Fri, 4 Jul 2025 16:43:41 +0800 Subject: [PATCH] =?UTF-8?q?update=20mes=E7=8F=AD=E6=AC=A1=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=A1=B5=E9=9D=A2=E5=8A=A0=E7=8F=AD=E5=88=B6=EF=BC=88?= =?UTF-8?q?=E4=B8=A4=E7=8F=AD=E3=80=81=E4=B8=89=E7=8F=AD=EF=BC=89=E3=80=81?= =?UTF-8?q?=E6=9C=BA=E5=8F=B0=E4=BF=A1=E6=81=AF=E9=80=89=E7=8F=AD=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/baseShiftInfo/types.ts | 97 +--------- src/api/mes/prodBaseMachineInfo/types.ts | 188 +++++++++++++++++--- src/views/mes/baseShiftInfo/index.vue | 26 ++- src/views/mes/prodBaseMachineInfo/index.vue | 26 ++- 4 files changed, 226 insertions(+), 111 deletions(-) diff --git a/src/api/mes/baseShiftInfo/types.ts b/src/api/mes/baseShiftInfo/types.ts index d6defdc..be19338 100644 --- a/src/api/mes/baseShiftInfo/types.ts +++ b/src/api/mes/baseShiftInfo/types.ts @@ -4,11 +4,6 @@ export interface BaseShiftInfoVO { */ shiftId: string | number; - /** - * 租户编号 - */ - tenantId: string | number; - /** * 班次编号 */ @@ -50,29 +45,9 @@ export interface BaseShiftInfoVO { activeFlag: string; /** - * 创建部门 + * 班制类型(2两班 3三班) */ - createDept: number; - - /** - * 创建人 - */ - createBy: number; - - /** - * 创建时间 - */ - createTime: string; - - /** - * 更新人 - */ - updateBy: number; - - /** - * 更新时间 - */ - updateTime: string; + classType: string; } @@ -82,11 +57,6 @@ export interface BaseShiftInfoForm extends BaseEntity { */ shiftId?: string | number; - /** - * 租户编号 - */ - tenantId?: string | number; - /** * 班次编号 */ @@ -128,35 +98,9 @@ export interface BaseShiftInfoForm extends BaseEntity { activeFlag?: string; /** - * 创建部门 + * 班制类型(2两班 3三班) */ - createDept?: number; - - /** - * 创建人 - */ - createBy?: number; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新人 - */ - updateBy?: number; - - /** - * 更新时间 - */ - updateTime?: string; - - - productionTimeDays?: number; - productionTimeHours?: number; - productionTimeMinutes?: number; - + classType?: string; } @@ -167,11 +111,6 @@ export interface BaseShiftInfoQuery extends PageQuery { */ shiftId?: string | number; - /** - * 租户编号 - */ - tenantId?: string | number; - /** * 班次编号 */ @@ -213,34 +152,14 @@ export interface BaseShiftInfoQuery extends PageQuery { activeFlag?: string; /** - * 创建部门 + * 班制类型(2两班 3三班) */ - createDept?: number; + classType?: string; /** - * 创建人 + * 日期范围参数 */ - createBy?: number; - - /** - * 创建时间 - */ - createTime?: string; - - /** - * 更新人 - */ - updateBy?: number; - - /** - * 更新时间 - */ - updateTime?: string; - - /** - * 日期范围参数 - */ - params?: any; + params?: any; } diff --git a/src/api/mes/prodBaseMachineInfo/types.ts b/src/api/mes/prodBaseMachineInfo/types.ts index ebcfdb2..c87c6e2 100644 --- a/src/api/mes/prodBaseMachineInfo/types.ts +++ b/src/api/mes/prodBaseMachineInfo/types.ts @@ -4,11 +4,6 @@ export interface ProdBaseMachineInfoVO { */ machineId: string | number; - /** - * 租户编号 - */ - tenantId: string | number; - /** * 机台编号 */ @@ -55,29 +50,64 @@ export interface ProdBaseMachineInfoVO { remark: string; /** - * 创建部门 + * 车间ID */ - createDept: number; + workshopId: string | number; /** - * 创建人 + * 设备模型,关联设备模型dms_device_mode */ - createBy: number; + deviceModeId: string | number; /** - * 创建时间 + * 设备IP地址 */ - createTime: string; + machineIp: string; /** - * 更新人 + * 设备端口 */ - updateBy: number; + machinePort: number; /** - * 更新时间 + * 设备协议 */ - updateTime: string; + accessProtocol: string; + + /** + * 寄存器地址 + */ + registerAddress: string; + + /** + * 数据类型(1、bool,2、short,3int,4long,5float,6byte,7ushort,8uint,9ulong,10double,11字符串) + */ + dataType: string; + + /** + * 数据长度 + */ + dataLength: number; + + /** + * 数据编码格式(1ASCII,2Unicode,3Unicode-big,4UTF-8,5UTF-32,6、ANSI,7、GB2312) + */ + dataEncoding: string; + + /** + * 请求间隔(单位:毫秒) + */ + requestInterval: number; + + /** + * 入库类型(1直接入库 2扫描入库) + */ + instockType: string; + + /** + * 班制类型(2两班 3三班) + */ + classType: string; } @@ -132,7 +162,65 @@ export interface ProdBaseMachineInfoForm extends BaseEntity { */ remark?: string; - baseMachineProcessList?: []; + /** + * 车间ID + */ + workshopId?: string | number; + + /** + * 设备模型,关联设备模型dms_device_mode + */ + deviceModeId?: string | number; + + /** + * 设备IP地址 + */ + machineIp?: string; + + /** + * 设备端口 + */ + machinePort?: number; + + /** + * 设备协议 + */ + accessProtocol?: string; + + /** + * 寄存器地址 + */ + registerAddress?: string; + + /** + * 数据类型(1、bool,2、short,3int,4long,5float,6byte,7ushort,8uint,9ulong,10double,11字符串) + */ + dataType?: string; + + /** + * 数据长度 + */ + dataLength?: number; + + /** + * 数据编码格式(1ASCII,2Unicode,3Unicode-big,4UTF-8,5UTF-32,6、ANSI,7、GB2312) + */ + dataEncoding?: string; + + /** + * 请求间隔(单位:毫秒) + */ + requestInterval?: number; + + /** + * 入库类型(1直接入库 2扫描入库) + */ + instockType?: string; + + /** + * 班制类型(2两班 3三班) + */ + classType?: string; } @@ -183,10 +271,70 @@ export interface ProdBaseMachineInfoQuery extends PageQuery { */ machineStatus?: string; - /** - * 日期范围参数 - */ - params?: any; + /** + * 车间ID + */ + workshopId?: string | number; + + /** + * 设备模型,关联设备模型dms_device_mode + */ + deviceModeId?: string | number; + + /** + * 设备IP地址 + */ + machineIp?: string; + + /** + * 设备端口 + */ + machinePort?: number; + + /** + * 设备协议 + */ + accessProtocol?: string; + + /** + * 寄存器地址 + */ + registerAddress?: string; + + /** + * 数据类型(1、bool,2、short,3int,4long,5float,6byte,7ushort,8uint,9ulong,10double,11字符串) + */ + dataType?: string; + + /** + * 数据长度 + */ + dataLength?: number; + + /** + * 数据编码格式(1ASCII,2Unicode,3Unicode-big,4UTF-8,5UTF-32,6、ANSI,7、GB2312) + */ + dataEncoding?: string; + + /** + * 请求间隔(单位:毫秒) + */ + requestInterval?: number; + + /** + * 入库类型(1直接入库 2扫描入库) + */ + instockType?: string; + + /** + * 班制类型(2两班 3三班) + */ + classType?: string; + + /** + * 日期范围参数 + */ + params?: any; } diff --git a/src/views/mes/baseShiftInfo/index.vue b/src/views/mes/baseShiftInfo/index.vue index 8164aee..cc6a8f3 100644 --- a/src/views/mes/baseShiftInfo/index.vue +++ b/src/views/mes/baseShiftInfo/index.vue @@ -13,6 +13,11 @@ + + + + + + + +