Files
qianhao.xu ae1556b4ff agv调整
2024-04-01 15:11:36 +08:00

87 lines
1.6 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request'
/**
* 1.获取工单列表
* @param {查询条件} query
*/
export function getWorkorderList(query) {
return request({
url: '/mes/wm/agv/get_workorder_list',
method: 'get',
params: query,
})
}
/**
* 2.获取当前工单下的所有AGV小车任务
* @param query
*/
export function GetTask(query) {
return request({
url: '/mes/wm/agv/GetTask',
method: 'get',
params: query,
})
}
/**
* 3.新增AGV小车任务
* @param FkWorkorderId 区域编号
* @param sort: 1,
* @param goStartPoint: '', //上料起点
* @param goEndPoint: '', //上料终点
* @param number: 0, //上料数量
* @param backStartPoint: '', //返程起点
* @param backEndPoint: '', //返程终点
*/
export function addTask(data) {
return request({
url: '/mes/wm/agv/add_task',
method: 'post',
data,
})
}
/**
* 3.删除AGV小车任务
* @param taskId 任务id
*/
export function deleteTask(data) {
return request({
url: '/mes/wm/agv/deleteTask',
method: 'get',
params: data,
})
}
/**
* 6 获取agv 起点和终点下拉列表
* @param Area 区域编号
* @param Type 类型0: 起点1终点
*/
export function getAgvPosition(query) {
return request({
url: '/mes/wm/agv/get_agv_position',
method: 'get',
params: query,
})
}
/*
7 生成agv任务
*/
export function goTask(data) {
return request({
url: '/mes/wm/agv/generate_agv_task',
method: 'get',
params: data,
})
}
export function Stoptask(data) {
return request({
url: '/mes/wm/agv/cancel_agv_task',
method: 'get',
params: data,
})
}