From b5cc9f38efd9e4fbfa65f02e0644786cd914913e Mon Sep 17 00:00:00 2001 From: xiangxy Date: Tue, 10 Feb 2026 16:22:35 +0800 Subject: [PATCH] change --- pages.json | 21 ++++++ pages/home/home.vue | 5 +- pages/nlfive/callagv.vue | 95 +++++++++++++++++++++++++ pages/nlfive/taskmanage.vue | 133 +++++++++++++++++++++++++++++++++++ pages/nlfive/zlmanage.vue | 136 ++++++++++++++++++++++++++++++++++++ utils/getData3.js | 53 ++++++++++++++ 6 files changed, 442 insertions(+), 1 deletion(-) create mode 100644 pages/nlfive/callagv.vue create mode 100644 pages/nlfive/taskmanage.vue create mode 100644 pages/nlfive/zlmanage.vue diff --git a/pages.json b/pages.json index aac49dc..f77a138 100644 --- a/pages.json +++ b/pages.json @@ -209,6 +209,27 @@ "navigationStyle": "custom" } } + ,{ + "path" : "pages/nlfive/taskmanage", + "style" : + { + "navigationStyle": "custom" + } + } + ,{ + "path" : "pages/nlfive/zlmanage", + "style" : + { + "navigationStyle": "custom" + } + } + ,{ + "path" : "pages/nlfive/callagv", + "style" : + { + "navigationStyle": "custom" + } + } ], "globalStyle": { // "pageOrientation": "landscape", diff --git a/pages/home/home.vue b/pages/home/home.vue index fdeef2e..148564d 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -32,7 +32,10 @@ return { userName: '', menuList: [ - {title: '任务下发', icon: 'RF03', path: '/pages/nlfive/taskcarry'} + // {title: '任务下发', icon: 'RF03', path: '/pages/nlfive/taskcarry'}, + {title: '任务管理', icon: 'RF01', path: '/pages/nlfive/taskmanage'}, + {title: '指令管理', icon: 'RF02', path: '/pages/nlfive/zlmanage'}, + {title: '呼叫AGV', icon: 'RF03', path: '/pages/nlfive/callagv'} ], show: false, secM: [] diff --git a/pages/nlfive/callagv.vue b/pages/nlfive/callagv.vue new file mode 100644 index 0000000..cc800a9 --- /dev/null +++ b/pages/nlfive/callagv.vue @@ -0,0 +1,95 @@ + + + \ No newline at end of file diff --git a/pages/nlfive/taskmanage.vue b/pages/nlfive/taskmanage.vue new file mode 100644 index 0000000..eda7afe --- /dev/null +++ b/pages/nlfive/taskmanage.vue @@ -0,0 +1,133 @@ + + + \ No newline at end of file diff --git a/pages/nlfive/zlmanage.vue b/pages/nlfive/zlmanage.vue new file mode 100644 index 0000000..23137b9 --- /dev/null +++ b/pages/nlfive/zlmanage.vue @@ -0,0 +1,136 @@ + + + \ No newline at end of file diff --git a/utils/getData3.js b/utils/getData3.js index 2708280..4994416 100644 --- a/utils/getData3.js +++ b/utils/getData3.js @@ -49,3 +49,56 @@ export const getAllTaskType = () => request({ url:'api/hand/getAllTaskType', data: {} }) + +/** + * 任务管理 + */ +// 1.1 查询无指令的任务 +export const tasks = (vcode, dcode) => request({ + url:'api/hand/tasks', + data: { + vehicle_code: vcode, + device_code: dcode + } +}) +// 1.2 任务操作 +export const taskoperation = (type, id) => request({ + url:'api/hand/taskoperation', + data: { + type: type, + task_id: id + } +}) + +/** + * 指令管理 + */ +// 1.1 查询未完成指令 +export const insts = (vcode, dcode) => request({ + url:'api/hand/insts', + data: { + vehicle_code: vcode, + device_code: dcode + } +}) +// 1.2 指令操作 +export const inst = (type, id) => request({ + url:'api/hand/inst', + data: { + type: type, + inst_id: id + } +}) + +/** + * 呼叫agv + */ +// 创建任务(生成任务号为-开头) +export const callTask = (scode, ncode, vcode) => request({ + url:'api/hand/callTask', + data: { + start_device_code: scode, + next_device_code: ncode, + vehicle_code: vcode + } +}) \ No newline at end of file