diff --git a/pages.json b/pages.json index b8226ce..aac49dc 100644 --- a/pages.json +++ b/pages.json @@ -203,14 +203,7 @@ } ,{ - "path" : "pages/wb/taskcarry", - "style" : - { - "navigationStyle": "custom" - } - } - ,{ - "path" : "pages/wb/taskmanage", + "path" : "pages/nlfive/taskcarry", "style" : { "navigationStyle": "custom" diff --git a/pages/home/home.1.vue b/pages/home/home.1.vue index 269ff26..54b664d 100644 --- a/pages/home/home.1.vue +++ b/pages/home/home.1.vue @@ -43,8 +43,7 @@ userName: '', menuList: [ {title: '通用功能', path: 'RF06', sonTree: [ - {title: '任务下发', path: '/pages/wb/taskcarry'}, - {title: '任务管理', path: '/pages/wb/taskmanage'} + {title: '任务下发', path: '/pages/nlfive/taskcarry'} // {title: '入库组箱', path: '/pages/General/warehouse-box'}, // {title: '配送组箱', path: '/pages/General/distribution-box'}, // {title: '点对点转运', path: '/pages/General/line-transfer'}, diff --git a/pages/home/home.vue b/pages/home/home.vue index 67dff9b..fdeef2e 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -32,8 +32,7 @@ return { userName: '', menuList: [ - {title: '任务下发', icon: 'RF03', path: '/pages/wb/taskcarry'}, - {title: '任务管理', icon: 'RF02', path: '/pages/wb/taskmanage'} + {title: '任务下发', icon: 'RF03', path: '/pages/nlfive/taskcarry'} ], show: false, secM: [] diff --git a/pages/nlfive/taskcarry.vue b/pages/nlfive/taskcarry.vue new file mode 100644 index 0000000..487e10d --- /dev/null +++ b/pages/nlfive/taskcarry.vue @@ -0,0 +1,169 @@ + + + + + diff --git a/pages/wb/taskcarry.vue b/pages/wb/taskcarry.vue deleted file mode 100644 index a5cd89a..0000000 --- a/pages/wb/taskcarry.vue +++ /dev/null @@ -1,204 +0,0 @@ - - - - - diff --git a/pages/wb/taskmanage.vue b/pages/wb/taskmanage.vue deleted file mode 100644 index 47b822a..0000000 --- a/pages/wb/taskmanage.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - - - \ No newline at end of file diff --git a/utils/getData3.js b/utils/getData3.js index 63562ab..2708280 100644 --- a/utils/getData3.js +++ b/utils/getData3.js @@ -24,48 +24,28 @@ export const handLogin = (user, password) => request({ /** * 任务下发 */ -// 一、生成任务 -export const callTask = (scode, ncode, type, vtype) => request({ - url:'api/hand/callTask', +// 1.1根据起点查询任务信息 +export const getTaskInfoByStartPoint = (pcode1, ttype) => request({ + url:'api/hand/getTaskInfoByStartPoint', data: { - start_device_code: scode, - next_device_code: ncode, - task_type: type, - vehicle_type: vtype + point_code1: pcode1, + task_type: ttype } }) -// 二、查询区域 -export const queryArea = () => request({ - url:'api/hand/queryArea', - data: {} -}) -// 三、查询区域站点 -export const queryPointByArea = (rcode) => request({ - url:'api/hand/queryPointByArea', +// 1.3下发 +export const sendPointTask = (ttype, pcode1, pcode2, pcode3, pcode4, isoverrun) => request({ + url:'api/hand/sendPointTask', data: { - region_code: rcode + task_type: ttype, + point_code1: pcode1, + point_code2: pcode2, + point_code3: pcode3, + point_code4: pcode4, + is_overrun: isoverrun } }) - - -/** - * 任务管理 - */ -// 四、查询未完成任务 -export const querytasks = () => request({ - url:'api/hand/tasks', - data: {} -}) -// 五、任务操作 -export const taskoperation = (id, type) => request({ - url:'api/hand/taskoperation', - data: { - task_uuid: id, - type: type - } -}) -// 六、获取载具类型 -export const queryVehicleType = () => request({ - url:'api/hand/queryVehicleType', +// 1.2查询所有任务类型 +export const getAllTaskType = () => request({ + url:'api/hand/getAllTaskType', data: {} })