From b0c7be253fd62c094eae7dd606b29a91274716c8 Mon Sep 17 00:00:00 2001 From: hwj Date: Wed, 6 May 2026 10:57:25 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E7=94=9F=E4=BA=A7=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8-=E6=B7=BB=E5=8A=A0=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/en.ts | 7 +- src/locales/zh-CN.ts | 7 +- src/router/modules/remaining.ts | 11 ++ .../mes/productionReport/detail/index.vue | 152 ++++++++++++++++++ src/views/mes/productionReport/index.vue | 41 ++--- 5 files changed, 185 insertions(+), 33 deletions(-) create mode 100644 src/views/mes/productionReport/detail/index.vue diff --git a/src/locales/en.ts b/src/locales/en.ts index 82900d49..34e8de34 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -4367,7 +4367,12 @@ export default { detailTabRelatedPlan: 'Related Plans', detailTabQualityInfo: 'Quality Info', detailTabBaogongInfo: 'Work Report', - exportFilename: 'ProductionReport' + exportFilename: 'ProductionReport', + tableOperate: 'Operate', + detail: 'Detail' + }, + Detail: { + invalidId: 'Invalid parameter, task ID cannot be empty' }, BasicInfo: { buttonRefresh: 'Refresh', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 12eea406..6538189a 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -4578,7 +4578,12 @@ export default { detailTabRelatedPlan: '关联计划', detailTabQualityInfo: '质检信息', detailTabBaogongInfo: '报工信息', - exportFilename: '生产报表' + exportFilename: '生产报表', + tableOperate: '操作', + detail: '详情' + }, + Detail: { + invalidId: '参数错误,任务单ID不能为空' }, BasicInfo: { buttonRefresh: '刷新', diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 659eafb2..a35d03d5 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -672,6 +672,17 @@ const remainingRouter: AppRouteRecordRaw[] = [ activeMenu: '/mes/plan' }, component: () => import('@/views/mes/plan/index.vue') + }, + { + path: 'production-report/detail/:id', + name: 'MesProductionReportDetail', + meta: { + title: '生产报工详情', + noCache: true, + hidden: true, + activeMenu: '/mes/productionReport' + }, + component: () => import('@/views/mes/productionReport/detail/index.vue') } ] } diff --git a/src/views/mes/productionReport/detail/index.vue b/src/views/mes/productionReport/detail/index.vue new file mode 100644 index 00000000..d3fe5bbc --- /dev/null +++ b/src/views/mes/productionReport/detail/index.vue @@ -0,0 +1,152 @@ + + + + + diff --git a/src/views/mes/productionReport/index.vue b/src/views/mes/productionReport/index.vue index ed786dd7..04815c51 100644 --- a/src/views/mes/productionReport/index.vue +++ b/src/views/mes/productionReport/index.vue @@ -90,8 +90,6 @@ :data="list" :stripe="true" :show-overflow-tooltip="true" - highlight-current-row - @current-change="handleCurrentChange" > @@ -128,6 +126,13 @@ + + + - - - - - - - - - - - - - - - - -