100 lines
2.0 KiB
JavaScript
100 lines
2.0 KiB
JavaScript
import request from './request.js'
|
|
// 登录
|
|
export const handLogin = (user, password) => request({
|
|
url:'api/aja/hand/handlogin',
|
|
// url:'api/pda/set/setPrint', // 测试接口
|
|
data: {
|
|
user: user,
|
|
password: password
|
|
}
|
|
})
|
|
|
|
// 任务下发
|
|
// 1.1查询所有区域信息
|
|
export const handArea = (type) => request({
|
|
url: 'api/aja/hand/area',
|
|
data: {
|
|
area_flag: type
|
|
}
|
|
})
|
|
// 1.2根据区域查询设备编号及状态
|
|
export const handPoint = (reg) => request({
|
|
url: 'api/aja/hand/point',
|
|
data: {
|
|
region: reg
|
|
}
|
|
})
|
|
// 喷漆任务
|
|
export const handTask = (scode, ncode, type, batch) => request({
|
|
url: 'api/aja/hand/task',
|
|
data: {
|
|
start_devicecode: scode,
|
|
next_devicecode: ncode,
|
|
material_type: type,
|
|
batch: batch
|
|
}
|
|
})
|
|
|
|
/** 站点管理 */
|
|
// 1查询物料下拉框
|
|
export const handMatrial = () => request({
|
|
url: 'api/aja/hand/matrial'
|
|
})
|
|
// 1.2修改设备状态
|
|
export const handDeviceStatus = (code, mtype, type, no, batch) => request({
|
|
url: 'api/aja/hand/deviceStatus',
|
|
data: {
|
|
device_code: code,
|
|
material_type: mtype,
|
|
type: type,
|
|
status: no,
|
|
batch: batch
|
|
}
|
|
})
|
|
|
|
/** 点位取放货确认 */
|
|
export const handpointPut = (code, type) => request({
|
|
url: 'api/aja/hand/pointPut',
|
|
data: {
|
|
device_code: code,
|
|
status_type: type
|
|
}
|
|
})
|
|
|
|
/** 任务管理 */
|
|
// 1.1 查询未完成指令
|
|
export const queryTask = (keyword, scode, ncode) => request({
|
|
url: 'api/aja/hand/tasks',
|
|
data: {
|
|
keyword: keyword,
|
|
start_devicecode: scode,
|
|
next_devicecode: ncode
|
|
}
|
|
})
|
|
// 1.2 指令操作
|
|
export const taskOperation = (uuid, type) => request({
|
|
url: 'api/aja/hand/taskoperation',
|
|
data: {
|
|
inst_uuid: uuid,
|
|
type: type
|
|
}
|
|
})
|
|
|
|
/** 指令管理 */
|
|
// 1.1 查询未完成指令
|
|
export const queryInstraction = (keyword, scode, ncode) => request({
|
|
url: 'api/aja/hand/insts',
|
|
data: {
|
|
keyword: keyword,
|
|
start_devicecode: scode,
|
|
next_devicecode: ncode
|
|
}
|
|
})
|
|
// 1.2 指令操作
|
|
export const instOperation = (uuid, type) => request({
|
|
url: 'api/aja/hand/inst',
|
|
data: {
|
|
inst_uuid: uuid,
|
|
type: type
|
|
}
|
|
}) |