From 1b0403e95bb7c86adad8ca255a1ae2c16d075668 Mon Sep 17 00:00:00 2001 From: zch Date: Tue, 26 May 2026 10:14:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E6=97=A5=E6=8A=A5=E6=8A=A5=E8=A1=A8=E5=8A=9F=E8=83=BD=EF=BC=88?= =?UTF-8?q?TASK-xxx=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增生产日报页面,包含日报/月报切换、汇总卡片、多标签页数据展示,配套接口与路由配置 --- src/api/report/productionDailyReport.js | 37 +++ src/router/index.js | 14 + .../report/productionDailyReport/index.vue | 297 ++++++++++++++++++ 3 files changed, 348 insertions(+) create mode 100644 src/api/report/productionDailyReport.js create mode 100644 src/views/report/productionDailyReport/index.vue diff --git a/src/api/report/productionDailyReport.js b/src/api/report/productionDailyReport.js new file mode 100644 index 0000000..bbc8a36 --- /dev/null +++ b/src/api/report/productionDailyReport.js @@ -0,0 +1,37 @@ +import request from '@/utils/request' + +// 查询生产日报汇总 +export function getProductionDailySummary(query) { + return request({ + url: '/report/productionDailyReport/summary', + method: 'get', + params: query + }) +} + +// 查询生产日报按日汇总 +export function listProductionDaily(query) { + return request({ + url: '/report/productionDailyReport/dailyList', + method: 'get', + params: query + }) +} + +// 查询生产日报计划工单明细 +export function listProductionDailyOrders(query) { + return request({ + url: '/report/productionDailyReport/orderList', + method: 'get', + params: query + }) +} + +// 查询生产日报设备产出明细 +export function listProductionDailyDevices(query) { + return request({ + url: '/report/productionDailyReport/deviceList', + method: 'get', + params: query + }) +} diff --git a/src/router/index.js b/src/router/index.js index 50dcc4f..7591dab 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -326,6 +326,20 @@ export const dynamicRoutes = [ }, ], }, + { + path: '/report/productionDailyReport', + component: Layout, + hidden: true, + permissions: ['base:orderInfo:list'], + children: [ + { + path: 'index', + component: () => import('@/views/report/productionDailyReport/index'), + name: 'ProductionDailyReport', + meta: { title: '生产日报', activeMenu: '/base/orderInfo/execution' } + } + ] + }, { path: "/base/bom-info", component: Layout, diff --git a/src/views/report/productionDailyReport/index.vue b/src/views/report/productionDailyReport/index.vue new file mode 100644 index 0000000..c1c2fdb --- /dev/null +++ b/src/views/report/productionDailyReport/index.vue @@ -0,0 +1,297 @@ + + + + +