From 25184cadd4011856d95e76f1d79b37ce51a3e548 Mon Sep 17 00:00:00 2001
From: chengsc <Demo@DESKTOP-CPA90BF>
Date: 星期三, 30 十月 2024 11:34:12 +0800
Subject: [PATCH] 修改问题
---
Web/src/api/wcs/wcsDevice.ts | 82 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 82 insertions(+), 0 deletions(-)
diff --git a/Web/src/api/wcs/wcsDevice.ts b/Web/src/api/wcs/wcsDevice.ts
index 985447f..1211e99 100644
--- a/Web/src/api/wcs/wcsDevice.ts
+++ b/Web/src/api/wcs/wcsDevice.ts
@@ -6,7 +6,41 @@
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',
+ BindTaskForPLC='/api/WcsCheckTask/BindTaskForPLC',
+ CloseTaskForPLC='/api/WcsCheckTask/CloseTaskForPLC',
+
+
+ WriteInfo = '/api/wcsDevice/WriteInfo',
+ WriteTaskInfo = '/api/wcsDevice/WriteTaskInfo',
+ WriteStartStop = '/api/wcsDevice/WriteStartStop',
}
+// 澧炲姞璁惧淇℃伅
+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) =>
@@ -54,3 +88,51 @@
method: 'get'
});
+export const generatePos = (params?: any) =>
+ request({
+ url: Api.GeneratePos,
+ method: 'post',
+ data: params
+ });
+
+export const listWcsDevice = () =>
+ request({
+ url: Api.ListWcsDevice,
+ method: 'get'
+ });
+
+
+export const GetWcsPackPlcList = () =>
+ request({
+ url: Api.GetWcsPackPlcList,
+ method: 'get'
+});
+
+export const GetWcsPackStationPlcList = (params?: any) =>
+ request({
+ url: Api.GetWcsPackStationPlcList,
+ 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,
+});
+//鍐欏叆鍊�
+export const writeValue = (params?: any) =>
+ request({
+ url: Api.WriteValue,
+ method: 'post',
+ data: params,
+});
\ No newline at end of file
--
Gitblit v1.8.0