| | |
| | | }) |
| | | } |
| | | |
| | | |
| | | export const getLocGroup = async (row, bay, callback) => { |
| | | await request.post('/map/shelf/group', { |
| | | row: row, |
| | |
| | | console.error(error.message); |
| | | }) |
| | | } |
| | | |
| | | export const getAgvInfo = async (agvNo, callback) => { |
| | | await request.post('/map/agv/info', { |
| | | agvNo: agvNo, |
| | | }, { |
| | | headers: { 'Content-Type': 'application/x-www-form-urlencoded' } |
| | | }).then((res) => { |
| | | const { code, msg, data } = res.data; |
| | | if (code === 200) { |
| | | callback(data) |
| | | } else { |
| | | notify.error(msg); |
| | | } |
| | | }).catch((error) => { |
| | | notify.error(error.message); |
| | | console.error(error.message); |
| | | }) |
| | | } |