diff --git a/src/axios/el.tag.js b/src/axios/el.tag.js new file mode 100644 index 0000000..3ab2e30 --- /dev/null +++ b/src/axios/el.tag.js @@ -0,0 +1,12 @@ +import axios from '@/axios/base/base.axios'; + +export default { + // 分页查询电子标签任务 + getElTagTaskWithPage(request) { + return axios.post('/api/wcs/elTag/queryTaskWithPage', request); + }, + // 更新电子标签任务 ---- 暂时只支持更新状态,需要改后端 + updateElTagTask(request) { + return axios.post('/api/wcs/elTag/editTaskInfo', request); + }, +} \ No newline at end of file diff --git a/src/enum/elTag/eltag.task.enum.js b/src/enum/elTag/eltag.task.enum.js new file mode 100644 index 0000000..619161c --- /dev/null +++ b/src/enum/elTag/eltag.task.enum.js @@ -0,0 +1,40 @@ + +// 电子标签任务状态 +export const elTagTaskStatusEnum = { + creat: { + value: 0, + label: '新创建', + color: 'info' + }, + queue: { + value: 1, + label: '正在点亮', + color: 'success' + }, + running: { + value: 2, + label: '已确认', + color: 'primary' + }, + error: { + value: 9, + label: '异常', + color: 'danger' + } +} + +export function formatterElTagTaskStatusEnum(value) { + switch (parseInt(value)){ + case elTagTaskStatusEnum.creat.value: + return {label: elTagTaskStatusEnum.creat.label, color: elTagTaskStatusEnum.creat.color}; + case elTagTaskStatusEnum.queue.value: + return {label: elTagTaskStatusEnum.queue.label, color: elTagTaskStatusEnum.queue.color}; + case elTagTaskStatusEnum.running.value: + return {label: elTagTaskStatusEnum.running.label, color: elTagTaskStatusEnum.running.color}; + + case elTagTaskStatusEnum.error.value: + return {label: elTagTaskStatusEnum.error.label, color: elTagTaskStatusEnum.error.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 6f64cee..afc1683 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -18,6 +18,7 @@ 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: 'location', name: 'location', component:() => import('@/view/tab/equipmentManage/LocationData.vue') }, // 点位/库位管理 { path: 'stackerData', name: 'stackerData', component:() => import('@/view/tab/equipmentManage/StackerData.vue') }, // 堆垛机管理 diff --git a/src/view/component/elTagTask/EditElTagTask.vue b/src/view/component/elTagTask/EditElTagTask.vue new file mode 100644 index 0000000..e4b8215 --- /dev/null +++ b/src/view/component/elTagTask/EditElTagTask.vue @@ -0,0 +1,156 @@ + + + $emit('update:modelValue', false)"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 变更信息 + 关闭窗口 + + + + + + + + + \ No newline at end of file diff --git a/src/view/component/elTagTask/ElTagTaskList.vue b/src/view/component/elTagTask/ElTagTaskList.vue new file mode 100644 index 0000000..a0d7fd1 --- /dev/null +++ b/src/view/component/elTagTask/ElTagTaskList.vue @@ -0,0 +1,145 @@ + + + + 电子标签任务列表 + + + + + + + + + + + {{formatterElTagTaskStatusEnum(scope.row.taskStatus).label }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/view/component/elTagTask/SearchForm.vue b/src/view/component/elTagTask/SearchForm.vue new file mode 100644 index 0000000..1911a2c --- /dev/null +++ b/src/view/component/elTagTask/SearchForm.vue @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + 查询/刷新 + + + + + + + + \ No newline at end of file diff --git a/src/view/tab/taskManage/ElTagTask.vue b/src/view/tab/taskManage/ElTagTask.vue new file mode 100644 index 0000000..6cc743b --- /dev/null +++ b/src/view/tab/taskManage/ElTagTask.vue @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + \ No newline at end of file