chengsc
2025-04-14 d2588d8d1305171e7716055b23a6b5706e9cc04b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
import request from '/@/utils/request';
enum Api {
  AddWcsDevice = '/api/wcsDevice/add',
  DeleteWcsDevice = '/api/wcsDevice/delete',
  UpdateWcsDevice = '/api/wcsDevice/update',
  PageWcsDevice = '/api/wcsDevice/page',
  DetailWcsDevice = '/api/wcsDevice/detail',
  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) =>
    request({
        url: Api.AddWcsDevice,
        method: 'post',
        data: params,
    });
 
// 删除设备信息
export const deleteWcsDevice = (params?: any) => 
    request({
            url: Api.DeleteWcsDevice,
            method: 'post',
            data: params,
        });
 
// 编辑设备信息
export const updateWcsDevice = (params?: any) => 
    request({
            url: Api.UpdateWcsDevice,
            method: 'post',
            data: params,
        });
 
// 分页查询设备信息
export const pageWcsDevice = (params?: any) => 
    request({
            url: Api.PageWcsDevice,
            method: 'post',
            data: params,
        });
 
// 详情设备信息
export const detailWcsDevice = (id: any) => 
    request({
            url: Api.DetailWcsDevice,
            method: 'get',
            data: { id },
        });
 
export const getWcsPlcPlcIdDropdown = () =>
        request({
        url: Api.GetWcsPlcPlcIdDropdown,
        method: 'get'
        });
 
export const generatePos = (params?: any) =>
    request({
    url: Api.GeneratePos,
    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,
});
//写入值
export const writeValue = (params?: any) => 
    request({
        url: Api.WriteValue,
        method: 'post',
        data: params,
});