chengsc
2024-11-04 50f6cb0f96f04f505b9493f7621d8e49ad5add9d
Web/src/api/wcs/wcsDevice.ts
@@ -8,9 +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) =>
@@ -74,6 +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
});
// 手动绑定任务到PLC
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,
});