From e84e5e00a0d65bcb07fcd49b30a25de6091b7aaa Mon Sep 17 00:00:00 2001 From: xiangxy Date: Fri, 7 Feb 2025 15:51:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/getData0.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 utils/getData0.js diff --git a/utils/getData0.js b/utils/getData0.js new file mode 100644 index 0000000..2e04572 --- /dev/null +++ b/utils/getData0.js @@ -0,0 +1,33 @@ +import request from './request.js' + +/** + * 公共接口 + */ +// 查询区域 +export const queryArea = () => request({ + url:'api/hand/queryArea', + data: {} +}) + +// 根据区域查询点位 +export const queryPointByArea = (rcode) => request({ + url:'api/hand/queryPointByArea', + data: { + region_code: rcode + } +}) + +/** + * 搬运任务 + */ +// PDA任务下发接口 +export const callTask = (sdcode, ndcode, type, material) => request({ + url:'api/hand/callTask', + data: { + start_device_code: sdcode, + next_device_code: ndcode, + task_type: type, + material: material + } +}) +