From f79859bfe38baab95b9193aeccca51f72dd6e1fe Mon Sep 17 00:00:00 2001
From: liudl <673013083@qq.com>
Date: 星期四, 16 一月 2025 09:08:02 +0800
Subject: [PATCH] 新增结批总数量接口(未写内容)
---
Web/src/api/wcs/wcsDevice.ts | 170 +++++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 125 insertions(+), 45 deletions(-)
diff --git a/Web/src/api/wcs/wcsDevice.ts b/Web/src/api/wcs/wcsDevice.ts
index dde139f..97bb3f5 100644
--- a/Web/src/api/wcs/wcsDevice.ts
+++ b/Web/src/api/wcs/wcsDevice.ts
@@ -1,17 +1,63 @@
锘縤mport request from '/@/utils/request';
enum Api {
- AddWcsDevice = '/api/wcsDevice/add',
- DeleteWcsDevice = '/api/wcsDevice/delete',
- UpdateWcsDevice = '/api/wcsDevice/update',
- PageWcsDevice = '/api/wcsDevice/page',
- DetailWcsDevice = '/api/wcsDevice/detail',
- GetWcsPlcPlcIdDropdown = '/api/wcsDevice/WcsPlcPlcIdDropdown',
- GeneratePos = '/api/wcsDevice/GeneratePos',
- ListWcsDevice = '/api/wcsDevice/list',
+ AddWcsDevice = '/api/wcsDevice/add',
+ DeleteWcsDevice = '/api/wcsDevice/delete',
+ UpdateWcsDevice = '/api/wcsDevice/update',
+ PageWcsDevice = '/api/wcsDevice/page',
+ DetailWcsDevice = '/api/wcsDevice/detail',
+ GetWcsPlcPlcIdDropdown = '/api/wcsDevice/WcsPlcPlcIdDropdown',
+ GeneratePos = '/api/wcsDevice/GeneratePos',
+ ListWcsDevice = '/api/wcsDevice/list',
+ WriteValue = '/api/wcsdevice/writeValue',
- GetWcsPackPlcList='/api/wcsDevice/WcsPackPlcList',
- GetWcsPackStationPlcList='/api/wcsDevice/WcsPackStationPlcList',
+ GetWcsPackPlcList = '/api/wcsDevice/WcsPackPlcList',
+ GetWcsPackStationPlcList = '/api/wcsDevice/WcsPackStationPlcList',
+ GetWcsStackingRobotList = '/api/wcsDevice/WcsStackingRobotList',
+ BindTaskForPLC = '/api/WcsCheckTask/BindTaskForPLC',
+ CloseTaskForPLC = '/api/WcsCheckTask/CloseTaskForPLC',
+ UnBindTaskForPLC = '/api/WcsCheckTask/UnBindTaskForPLC',
+
+ GetLocationInfo = '/api/wcsDevice/GetLocationInfo',
+ WriteLocationInfo = '/api/wcsDevice/WriteLocationInfo',
+ WriteInfo = '/api/wcsDevice/WriteInfo',
+ WriteTaskInfo = '/api/wcsDevice/WriteTaskInfo',
+ WriteStartStop = '/api/wcsDevice/WriteStartStop',
}
+// 澧炲姞璁惧淇℃伅
+export const WriteLocationInfo = (params?: any) =>
+ request({
+ url: Api.WriteLocationInfo,
+ method: 'post',
+ data: params,
+ });
+// 澧炲姞璁惧淇℃伅
+export const GetLocationInfo = (params?: any) =>
+ request({
+ url: Api.GetLocationInfo,
+ method: 'post',
+ data: params,
+ });
+// 澧炲姞璁惧淇℃伅
+export const WriteInfo = (params?: any) =>
+ request({
+ url: Api.WriteInfo,
+ method: 'post',
+ data: params,
+ });
+// 澧炲姞璁惧淇℃伅
+export const WriteTaskInfo = (params?: any) =>
+ request({
+ url: Api.WriteTaskInfo,
+ method: 'post',
+ data: params,
+ });
+// 澧炲姞璁惧淇℃伅
+export const WriteStartStop = (params?: any) =>
+ request({
+ url: Api.WriteStartStop,
+ method: 'post',
+ data: params,
+ });
// 澧炲姞璁惧淇℃伅
export const addWcsDevice = (params?: any) =>
@@ -22,66 +68,100 @@
});
// 鍒犻櫎璁惧淇℃伅
-export const deleteWcsDevice = (params?: any) =>
+export const deleteWcsDevice = (params?: any) =>
request({
- url: Api.DeleteWcsDevice,
- method: 'post',
- data: params,
- });
+ url: Api.DeleteWcsDevice,
+ method: 'post',
+ data: params,
+ });
// 缂栬緫璁惧淇℃伅
-export const updateWcsDevice = (params?: any) =>
+export const updateWcsDevice = (params?: any) =>
request({
- url: Api.UpdateWcsDevice,
- method: 'post',
- data: params,
- });
+ url: Api.UpdateWcsDevice,
+ method: 'post',
+ data: params,
+ });
// 鍒嗛〉鏌ヨ璁惧淇℃伅
-export const pageWcsDevice = (params?: any) =>
+export const pageWcsDevice = (params?: any) =>
request({
- url: Api.PageWcsDevice,
- method: 'post',
- data: params,
- });
+ url: Api.PageWcsDevice,
+ method: 'post',
+ data: params,
+ });
// 璇︽儏璁惧淇℃伅
-export const detailWcsDevice = (id: any) =>
+export const detailWcsDevice = (id: any) =>
request({
- url: Api.DetailWcsDevice,
- method: 'get',
- data: { id },
- });
+ url: Api.DetailWcsDevice,
+ method: 'get',
+ data: { id },
+ });
export const getWcsPlcPlcIdDropdown = () =>
- request({
+ request({
url: Api.GetWcsPlcPlcIdDropdown,
method: 'get'
- });
+ });
export const generatePos = (params?: any) =>
request({
- url: Api.GeneratePos,
- method: 'post',
- data: params
+ url: Api.GeneratePos,
+ method: 'post',
+ data: params
});
-
+
export const listWcsDevice = () =>
request({
- url: Api.ListWcsDevice,
- method: 'get'
+ url: Api.ListWcsDevice,
+ method: 'get'
});
export const GetWcsPackPlcList = () =>
request({
- url: Api.GetWcsPackPlcList,
- method: 'get'
-});
+ url: Api.GetWcsPackPlcList,
+ method: 'get'
+ });
export const GetWcsPackStationPlcList = (params?: any) =>
request({
- url: Api.GetWcsPackStationPlcList,
- method: 'get',
- data: params
-});
\ No newline at end of file
+ url: Api.GetWcsPackStationPlcList,
+ method: 'get',
+ data: params
+ });
+export const GetWcsStackingRobotList = (params?: any) =>
+ request({
+ url: Api.GetWcsStackingRobotList,
+ method: 'get',
+ data: params
+ });
+// 鎵嬪姩缁戝畾浠诲姟鍒癙LC
+export const BindTaskForPLC = (params?: any) =>
+ request({
+ url: Api.BindTaskForPLC,
+ method: 'post',
+ data: params,
+ });
+//浠诲姟缁撴壒
+export const CloseTaskForPLC = (params?: any) =>
+ request({
+ url: Api.CloseTaskForPLC,
+ method: 'post',
+ data: params,
+ });
+//浠诲姟瑙g粦
+export const UnBindTaskForPLC = (params?: any) =>
+ request({
+ url: Api.UnBindTaskForPLC,
+ method: 'post',
+ data: params,
+ });
+//鍐欏叆鍊�
+export const writeValue = (params?: any) =>
+ request({
+ url: Api.WriteValue,
+ method: 'post',
+ data: params,
+ });
\ No newline at end of file
--
Gitblit v1.8.0