Files
hht-lnsh-new/src/config/getData1.js
2023-06-14 15:22:46 +08:00

35 lines
884 B
JavaScript

import {post2} from '@config/http.js'
// import store from '../vuex/store'
// 指令管理
// 1.1 查询未完成指令
export const queryInstraction = (keyword, scode, ncode) => post2('api/hand/insts', {
keyword: keyword,
start_devicecode: scode,
next_devicecode: ncode
})
// 1.2 指令操作
export const instOperation = (uuid, type) => post2('api/hand/inst', {
inst_uuid: uuid,
type: type
})
// 任务管理
// 1.1 查询未完成指令
export const queryTask = (keyword, scode, ncode) => post2('api/hand/tasks', {
keyword: keyword,
start_devicecode: scode,
next_devicecode: ncode
})
// 1.2 指令操作
export const taskOperation = (uuid, type) => post2('api/hand/taskoperation', {
inst_uuid: uuid,
type: type
})
// AGV充电
// 1.1 查询未完成指令
export const createChargingTask = (carno) => post2('api/hand/createChargingTask', {
carno: carno
})