From 7bc555c0dd97115ff27730b800881290684b5a81 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 15 Aug 2024 16:55:40 +0800 Subject: [PATCH] =?UTF-8?q?add=E8=AE=BE=E5=A4=87=E6=93=8D=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 8 +++ pages/entry/change-mode.vue | 140 ++++++++++++++++++++++++++++++++++++ pages/home/home.vue | 2 +- utils/getData2.js | 15 ++++ 4 files changed, 164 insertions(+), 1 deletion(-) create mode 100644 pages/entry/change-mode.vue diff --git a/pages.json b/pages.json index 0b64441..f99307d 100644 --- a/pages.json +++ b/pages.json @@ -190,6 +190,14 @@ } } + ,{ + "path" : "pages/entry/change-mode", + "style" : + { + "navigationStyle": "custom" + } + + } ], "globalStyle": { // "pageOrientation": "landscape", diff --git a/pages/entry/change-mode.vue b/pages/entry/change-mode.vue new file mode 100644 index 0000000..ef3371b --- /dev/null +++ b/pages/entry/change-mode.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/pages/home/home.vue b/pages/home/home.vue index c443655..3a91786 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -41,7 +41,7 @@ return { userName: '', menuList: [ - {title: '入库管理', path: 'RF01', sonTree: [{title: '物料组盘入库', path: '/pages/entry/mater-group-to-store'}, {title: '组盘入库', path: '/pages/entry/group-to-store'}, {title: '空托盘入库', path: '/pages/entry/empty-tray-to-store'}]}, + {title: '入库管理', path: 'RF01', sonTree: [{title: '物料组盘入库', path: '/pages/entry/mater-group-to-store'}, {title: '设备操控', path: '/pages/entry/change-mode'}, {title: '组盘入库', path: '/pages/entry/group-to-store'}, {title: '空托盘入库', path: '/pages/entry/empty-tray-to-store'}]}, {title: '出库管理', path: 'RF02', sonTree: [{title: '托盘出库', path: '/pages/outbound/tray-out-store'}, {title: '出库确认', path: '/pages/outbound/out-store-confirm'}]}, {title: '在库管理', path: 'RF03', sonTree: [{title: '库存信息', path: '/pages/in/store-info'}]}, {title: '拣选管理', path: 'RF04', sonTree: [{title: '拣选作业', path: '/pages/pick/pick-task'}]}, diff --git a/utils/getData2.js b/utils/getData2.js index 3885f68..6ccbea3 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -32,6 +32,21 @@ export const groupMaterIn = (code, item) => request({ url:'api/groupMater/in', data: {stor_code: code, item: item} }) +/** + * 设备操控 + */ +export const switchInOut = (code, mode) => request({ + url:'api/deviceManage/changeMode/switchInOut', + data: {device_code: code, mode: mode} +}) +export const pinkStartStop = (code, mode) => request({ + url:'api/deviceManage/changeMode/pinkStartStop', + data: {device_code: code, mode: mode} +}) +export const toCommandTP = (code, mode, vcode) => request({ + url:'api/deviceManage/changeMode/toCommandTP', + data: {device_code: code, mode: mode, vehicle_code: vcode} +}) /** * 组盘入库 */