From dd973f741617e3bbf5ecf11747ff71960991549c Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期二, 15 十月 2024 10:21:19 +0800
Subject: [PATCH] Merge branch 'master' into liudl

---
 Web/src/api/wcs/wcsDevice.ts |   50 +++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 49 insertions(+), 1 deletions(-)

diff --git a/Web/src/api/wcs/wcsDevice.ts b/Web/src/api/wcs/wcsDevice.ts
index 8bd165a..fe7baa5 100644
--- a/Web/src/api/wcs/wcsDevice.ts
+++ b/Web/src/api/wcs/wcsDevice.ts
@@ -7,6 +7,13 @@
   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',
 }
 
 // 澧炲姞璁惧淇℃伅
@@ -61,4 +68,45 @@
 	method: 'post',
 	data: params
 	});
-	
\ No newline at end of file
+	
+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