From 5af0a043ffbbe444f7e43b6bf52a9e94c74283f2 Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期三, 11 九月 2024 08:43:43 +0800
Subject: [PATCH] 跺机交互流程

---
 Web/src/api/wcs/wcsDevice.ts |   27 ++++++++++++++++++++++-----
 1 files changed, 22 insertions(+), 5 deletions(-)

diff --git a/Web/src/api/wcs/wcsDevice.ts b/Web/src/api/wcs/wcsDevice.ts
index dde139f..4561735 100644
--- a/Web/src/api/wcs/wcsDevice.ts
+++ b/Web/src/api/wcs/wcsDevice.ts
@@ -11,6 +11,8 @@
 
   GetWcsPackPlcList='/api/wcsDevice/WcsPackPlcList',
   GetWcsPackStationPlcList='/api/wcsDevice/WcsPackStationPlcList',
+  BindTaskForPLC='/api/WcsCheckTask/BindTaskForPLC',
+  CloseTaskForPLC='/api/WcsCheckTask/CloseTaskForPLC',
 }
 
 // 澧炲姞璁惧淇℃伅
@@ -75,13 +77,28 @@
 
 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
+		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,
 });
\ No newline at end of file

--
Gitblit v1.8.0