From 00ff024328a4cbb0ada016d9c9cd221b0783601a Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 5 Apr 2026 23:38:23 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(mes):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E7=94=A8=E6=88=B7=E5=B7=A5=E4=BD=9C=E7=AB=99?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E7=8A=B6=E6=80=81=20VO=20=E5=92=8C=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/pro/workrecord/index.ts | 12 ++ .../pro/workrecord/WorkRecordStatusBar.vue | 116 +++++++++++++++ src/views/mes/pro/workrecord/index.vue | 135 +++--------------- src/views/mes/utils/constants.ts | 6 + 4 files changed, 150 insertions(+), 119 deletions(-) create mode 100644 src/views/mes/pro/workrecord/WorkRecordStatusBar.vue diff --git a/src/api/mes/pro/workrecord/index.ts b/src/api/mes/pro/workrecord/index.ts index 4f89bfc7f..3901cdc4a 100644 --- a/src/api/mes/pro/workrecord/index.ts +++ b/src/api/mes/pro/workrecord/index.ts @@ -13,6 +13,18 @@ export interface ProWorkRecordLogVO { createTime: Date } +// MES 当前工作站绑定状态 VO +export interface ProWorkRecordVO { + userId: number + userNickname: string + workstationId: number + workstationCode: string + workstationName: string + type: number // 1=上工 2=下工 + clockInTime: Date + clockOutTime: Date +} + // MES 工作记录 API export const ProWorkRecordApi = { // 查询工作记录分页 diff --git a/src/views/mes/pro/workrecord/WorkRecordStatusBar.vue b/src/views/mes/pro/workrecord/WorkRecordStatusBar.vue new file mode 100644 index 000000000..526267724 --- /dev/null +++ b/src/views/mes/pro/workrecord/WorkRecordStatusBar.vue @@ -0,0 +1,116 @@ + + + + diff --git a/src/views/mes/pro/workrecord/index.vue b/src/views/mes/pro/workrecord/index.vue index 69f8e4fcb..48ab83bae 100644 --- a/src/views/mes/pro/workrecord/index.vue +++ b/src/views/mes/pro/workrecord/index.vue @@ -1,68 +1,7 @@