From 7d9d48cf1e9d5b28e59ea52a0ee1acdfd15f88e7 Mon Sep 17 00:00:00 2001 From: IPC-610 <IPC-610@DESKTOP-6LEOOS3> Date: 星期二, 07 一月 2025 08:32:34 +0800 Subject: [PATCH] 问题修改 --- Web/src/api/wcs/wcsDevice.ts | 77 ++++++++++++++++++++++++++++++++++++-- 1 files changed, 72 insertions(+), 5 deletions(-) diff --git a/Web/src/api/wcs/wcsDevice.ts b/Web/src/api/wcs/wcsDevice.ts index dde139f..d2b0fec 100644 --- a/Web/src/api/wcs/wcsDevice.ts +++ b/Web/src/api/wcs/wcsDevice.ts @@ -8,10 +8,55 @@ 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', + + + 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) => @@ -75,13 +120,35 @@ 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, +}); +//鍐欏叆鍊� +export const writeValue = (params?: any) => + request({ + url: Api.WriteValue, + method: 'post', + data: params, }); \ No newline at end of file -- Gitblit v1.8.0