diff --git a/src/axios/convey.js b/src/axios/convey.js new file mode 100644 index 0000000..86016a8 --- /dev/null +++ b/src/axios/convey.js @@ -0,0 +1,8 @@ +import axios from '@/axios/base/base.axios'; + +export default { + // 分页查询箱式线任务 + getConveyTaskWithPage(req) { + return axios.post('/api/wcs/conveyTask/queryConveyTaskWithPage', req) + } +} \ No newline at end of file diff --git a/src/enum/convey/convey.task.status.enum.js b/src/enum/convey/convey.task.status.enum.js new file mode 100644 index 0000000..6a7a703 --- /dev/null +++ b/src/enum/convey/convey.task.status.enum.js @@ -0,0 +1,32 @@ +// 箱式线任务状态 +export const conveyTaskStatusEnum = { + create: { + value: 0, + label: '任务创建', + color: 'info' + }, + moved: { + value: 1, + label: '已经移栽', + color: 'warning' + }, + arrive: { + value: 2, + label: '已到达', + color: 'success' + } +} + +export function formatterConveyTaskStatusEnum(value) { + switch (parseInt(value)){ + case conveyTaskStatusEnum.create.value: + return {label: conveyTaskStatusEnum.create.label, color: conveyTaskStatusEnum.create.color}; + case conveyTaskStatusEnum.moved.value: + return {label: conveyTaskStatusEnum.moved.label, color: conveyTaskStatusEnum.moved.color}; + case conveyTaskStatusEnum.arrive.value: + return {label: conveyTaskStatusEnum.arrive.label, color: conveyTaskStatusEnum.arrive.color}; + + default: + return {label: `未知类型:${value}`, color: 'danger'}; + } +} \ No newline at end of file diff --git a/src/enum/convey/convey.task.type.enum.js b/src/enum/convey/convey.task.type.enum.js new file mode 100644 index 0000000..5382246 --- /dev/null +++ b/src/enum/convey/convey.task.type.enum.js @@ -0,0 +1,38 @@ +// 箱式线任务类型 +export const conveyTaskTypeEnum = { + pick: { + value: 1, + label: '拣选任务', + color: 'primary' + }, + replenish: { + value: 2, + label: '补货任务', + color: 'warning' + }, + deliver: { + value: 3, + label: '发货任务', + color: 'success' + }, + check: { + value: 4, + label: '复核任务', + color: 'info' + } +} + +export function formatterConveyTaskTypeEnum(value) { + switch (parseInt(value)){ + case conveyTaskTypeEnum.pick.value: + return {label: conveyTaskTypeEnum.pick.label, color: conveyTaskTypeEnum.pick.color}; + case conveyTaskTypeEnum.replenish.value: + return {label: conveyTaskTypeEnum.replenish.label, color: conveyTaskTypeEnum.replenish.color}; + case conveyTaskTypeEnum.deliver.value: + return {label: conveyTaskTypeEnum.deliver.label, color: conveyTaskTypeEnum.deliver.color}; + case conveyTaskTypeEnum.check.value: + return {label: conveyTaskTypeEnum.check.label, color: conveyTaskTypeEnum.check.color}; + default: + return {label: `未知类型:${value}`, color: 'danger'}; + } +} \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index fc04527..9c64ea6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -19,10 +19,11 @@ const routes = [ { path: 'wmsTask', name: 'wmsTask', component:() => import('../view/tab/taskManage/WmsTask.vue') }, // Wms任务管理 { path: 'wcsTask', name: 'wcsTask', component:() => import('../view/tab/taskManage/WcsTask.vue') }, // Wcs任务管理 { path: 'elTagTask', name: 'elTagTask', component:() => import('../view/tab/taskManage/ElTagTask.vue') }, // 电子标签任务管理 + { path: 'conveyTask', name: 'conveyTask', component:() => import('../view/tab/taskManage/ConveyTask.vue') }, // 输送线任务管理 // 设备管理 { path: 'location', name: 'location', component:() => import('@/view/tab/equipmentManage/LocationData.vue') }, // 点位/库位管理 { path: 'stackerData', name: 'stackerData', component:() => import('@/view/tab/equipmentManage/StackerData.vue') }, // 堆垛机管理 - {path: 'elTagLocationData', name: 'elTagLocationData', component:() => import('@/view/tab/equipmentManage/ElTagLocationData.vue')}, // 电子标签货位管理 + { path: 'elTagLocationData', name: 'elTagLocationData', component:() => import('@/view/tab/equipmentManage/ElTagLocationData.vue')}, // 电子标签货位管理 // 数据查询 { path: 'apiAccept', name: 'apiAccept', component:() => import('../view/tab/dataQuery/ApiAccept.vue') }, // 接口接收记录 { path: 'apiRequest', name: 'apiRequest', component:() => import('../view/tab/dataQuery/ApiRequest.vue') }, // 接口请求记录 diff --git a/src/view/component/conveyTask/ConveyTaskList.vue b/src/view/component/conveyTask/ConveyTaskList.vue new file mode 100644 index 0000000..40e9a42 --- /dev/null +++ b/src/view/component/conveyTask/ConveyTaskList.vue @@ -0,0 +1,127 @@ + + + + + + \ No newline at end of file diff --git a/src/view/component/conveyTask/SearchForm.vue b/src/view/component/conveyTask/SearchForm.vue new file mode 100644 index 0000000..d423a07 --- /dev/null +++ b/src/view/component/conveyTask/SearchForm.vue @@ -0,0 +1,147 @@ + + + + + + \ No newline at end of file diff --git a/src/view/tab/taskManage/ConveyTask.vue b/src/view/tab/taskManage/ConveyTask.vue new file mode 100644 index 0000000..6cb9f67 --- /dev/null +++ b/src/view/tab/taskManage/ConveyTask.vue @@ -0,0 +1,86 @@ + + + + + + \ No newline at end of file