From e79cf581b2f0038a41de5da1c6eadb3541f4d69e Mon Sep 17 00:00:00 2001
From: IPC-610 <IPC-610@DESKTOP-6LEOOS3>
Date: 星期六, 28 九月 2024 08:10:13 +0800
Subject: [PATCH] 问题修改

---
 Web/src/api/wcs/wcsDevice.ts |   39 ++++++++++++++++++++++++++++++++++++---
 1 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/Web/src/api/wcs/wcsDevice.ts b/Web/src/api/wcs/wcsDevice.ts
index a0f122f..fe7baa5 100644
--- a/Web/src/api/wcs/wcsDevice.ts
+++ b/Web/src/api/wcs/wcsDevice.ts
@@ -8,8 +8,12 @@
   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',
 }
 
 // 澧炲姞璁惧淇℃伅
@@ -74,6 +78,35 @@
 
 export const GetWcsPackPlcList = () =>
 	request({
-	url: Api.GetWcsPackPlcList,
-	method: 'get'
-	});
\ No newline at end of file
+		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