wxw
2024-09-05 64274de013b172d31d6cda1349786e5c165cf79f
Web/src/api/wcs/wcsPlc.ts
@@ -5,6 +5,9 @@
  UpdateWcsPlc = '/api/wcsPlc/update',
  PageWcsPlc = '/api/wcsPlc/page',
  DetailWcsPlc = '/api/wcsPlc/detail',
  ListWcsPlc = '/api/wcsPlc/list',
  ListStatus = '/api/wcsPlc/ListStatus',
  ListPosition = 'api/wcsPlc/ListPosition'
}
// 增加PLC
@@ -46,5 +49,24 @@
         method: 'get',
         data: { id },
      });
// 分页查询PLC
export const listWcsPlc = (params?: any) =>
   request({
         url: Api.ListWcsPlc,
         method: 'get',
         data: params,
      });
// 获取PLC连接状态和服务状态
export const listStatus = () =>
   request({
         url: Api.ListStatus,
         method: 'get'
      });
// 获取位置上有没有东西
export const listPosition = () =>
   request({
         url: Api.ListPosition,
         method: 'get'
      });