Web/src/api/wcs/wcsDevice.ts
@@ -7,6 +7,12 @@
  DetailWcsDevice = '/api/wcsDevice/detail',
  GetWcsPlcPlcIdDropdown = '/api/wcsDevice/WcsPlcPlcIdDropdown',
  GeneratePos = '/api/wcsDevice/GeneratePos',
  ListWcsDevice = '/api/wcsDevice/list',
  GetWcsPackPlcList='/api/wcsDevice/WcsPackPlcList',
  GetWcsPackStationPlcList='/api/wcsDevice/WcsPackStationPlcList',
  BindTaskForPLC='/api/WcsCheckTask/BindTaskForPLC',
  CloseTaskForPLC='/api/WcsCheckTask/CloseTaskForPLC',
}
// 增加设备信息
@@ -61,4 +67,38 @@
   method: 'post',
   data: params
   });
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
});
// 手动绑定任务到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,
});