diff --git a/.gitignore b/.gitignore index 23d31d5..f215d2e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ package-lock.json yarn.lock +node_modules diff --git a/src/api/system/workbench.js b/src/api/system/workbench.js new file mode 100644 index 0000000..d6d51b5 --- /dev/null +++ b/src/api/system/workbench.js @@ -0,0 +1,46 @@ +import request from '@/utils/request' + +// 概览卡片 +export function getOverview(query) { + return request({ + url: '/system/workbench/overview', + method: 'get', + params: query + }) +} + +// 工单数量柱状图 +export function getWorkOrderBar(query) { + return request({ + url: '/system/workbench/workOrderBar', + method: 'get', + params: query + }) +} + +// 工序不良率排名 +export function getProcessDefectRank(query) { + return request({ + url: '/system/workbench/processDefectRank', + method: 'get', + params: query + }) +} + +// 工单实时进度 +export function getWorkOrderProgress(query) { + return request({ + url: '/system/workbench/workOrderProgress', + method: 'get', + params: query + }) +} + +// 出货订单数据 +export function getShipOrderData(query) { + return request({ + url: '/system/workbench/shipOrderData', + method: 'get', + params: query + }) +} diff --git a/src/router/index.js b/src/router/index.js index 40796de..0fa1544 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -62,6 +62,20 @@ export const constantRoutes = [ } ] }, + { + path: '/workbench', + component: Layout, + hidden: false, + redirect: '/workbench/index', + children: [ + { + path: 'index', + component: () => import('@/views/workbench/index'), + name: 'Workbench', + meta: { title: '工作台', icon: 'dashboard', affix: true } + } + ] + }, { path: '/redirect', component: Layout, diff --git a/src/views/system/operationPlanningMain/index.vue b/src/views/system/operationPlanningMain/index.vue index 194a9a1..43947ae 100644 --- a/src/views/system/operationPlanningMain/index.vue +++ b/src/views/system/operationPlanningMain/index.vue @@ -1,23 +1,7 @@