From 9c2d1eff43c104f69260255097c22a1df0f496d4 Mon Sep 17 00:00:00 2001 From: Kelvin Date: Tue, 26 Nov 2024 09:35:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E4=B8=8B=E5=8F=91wcs?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/md/TASK.js | 21 ++++++++++++++++++++- src/api/mes/wm/wmsInTask.js | 13 +++++++++++-- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/src/api/md/TASK.js b/src/api/md/TASK.js index a3bdf30..a07d6d8 100644 --- a/src/api/md/TASK.js +++ b/src/api/md/TASK.js @@ -1,4 +1,4 @@ -import request from '@/utils/request' +import request, {requestWcs} from '@/utils/request' // 查询出库任务列表 export function listTASK(query) { @@ -58,3 +58,22 @@ export function autoRunTASK(wmsOutTaskId) { method: 'put' }) } + + +// 下发任务至 WCS +export function issueWmsOutTaskToWcs(data) { + return requestWcs({ + url: '/ToolDeliveryInfo', + method: 'post', + data + }) +} + +// 下发任务至 WCS 刀具库 +export function issueOutTaskWcsDJ(data) { + return requestWcs({ + url: '/KnifeCK', + method: 'post', + data + }) +} diff --git a/src/api/mes/wm/wmsInTask.js b/src/api/mes/wm/wmsInTask.js index 08fa252..409c295 100644 --- a/src/api/mes/wm/wmsInTask.js +++ b/src/api/mes/wm/wmsInTask.js @@ -51,8 +51,8 @@ export function issueBatchWmsInTask(data) { }) } -// 下发任务至 WCS -export function issueWmsInTaskToWcs(data) { +// 下发任务至 WCS 立体库 +export function issueInTaskWcsLTK(data) { return requestWcs({ url: '/ToolDeliveryInfo', method: 'post', @@ -60,3 +60,12 @@ export function issueWmsInTaskToWcs(data) { }) } +// 下发任务至 WCS 刀具库 +export function issueInTaskWcsDJ(data) { + return requestWcs({ + url: '/KnifeRK', + method: 'post', + data + }) +} +