wip在产大屏
This commit is contained in:
10
src/api/wip.js
Normal file
10
src/api/wip.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询钢卷待操作列表(WIP 数据源)
|
||||||
|
export function listPendingAction(query) {
|
||||||
|
return request({
|
||||||
|
url: '/wms/coilPendingAction/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -59,7 +59,8 @@ const menuItems = [
|
|||||||
{ path: '/dashboard/output', meta: { title: '产出监控大屏', icon: 'output' } },
|
{ path: '/dashboard/output', meta: { title: '产出监控大屏', icon: 'output' } },
|
||||||
{ path: '/dashboard/stop-analysis', meta: { title: '停机分析大屏', icon: 'stop' } },
|
{ path: '/dashboard/stop-analysis', meta: { title: '停机分析大屏', icon: 'stop' } },
|
||||||
{ path: '/dashboard/acid-rolling', meta: { title: '酸轧数据大屏', icon: 'example' } },
|
{ path: '/dashboard/acid-rolling', meta: { title: '酸轧数据大屏', icon: 'example' } },
|
||||||
{ path: '/warehouse-overview', meta: { title: '库区总览大屏', icon: 'example' } }
|
{ path: '/warehouse-overview', meta: { title: '库区总览大屏', icon: 'example' } },
|
||||||
|
{ path: '/wip', meta: { title: 'WIP在产大屏', icon: 'monitor' } }
|
||||||
]
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,12 @@ export const constantRoutes = [
|
|||||||
name: 'WarehouseOverview',
|
name: 'WarehouseOverview',
|
||||||
component: () => import('@/views/screens/warehouse-overview/index.vue'),
|
component: () => import('@/views/screens/warehouse-overview/index.vue'),
|
||||||
meta: { title: '库区总览大屏' }
|
meta: { title: '库区总览大屏' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/wip',
|
||||||
|
name: 'WipOverview',
|
||||||
|
component: () => import('@/views/screens/wip/index.vue'),
|
||||||
|
meta: { title: '在产大屏' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ service.interceptors.response.use(
|
|||||||
// 兼容多种返回格式
|
// 兼容多种返回格式
|
||||||
if (res && res.code !== undefined) {
|
if (res && res.code !== undefined) {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
return res.data
|
return res.data !== undefined ? res.data : res
|
||||||
} else {
|
} else {
|
||||||
console.warn('API error:', res.message)
|
console.warn('API error:', res.message)
|
||||||
return res.data || []
|
return res.data || []
|
||||||
|
|||||||
1373
src/views/screens/wip/index.vue
Normal file
1373
src/views/screens/wip/index.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user