Files
hht-xinfengtianneng-uni/utils/getData2.js
2024-07-19 17:22:36 +08:00

159 lines
2.8 KiB
JavaScript

import request from './request.js'
// 版本更新测试
export const pdaUpdate = () => request({
url:'api/pda/update'
})
// 登录
export const handLogin = (user, password) => request({
url:'mobile/auth/login',
data: {
username: user,
password: password
}
})
/**
* 人工排产
*/
// 工单
export const manualSortingOrders = () => request({
url:'api/pda/manualSorting/orders',
data: {}
})
// 开工
export const productionScheduling = (code, user) => request({
url:'api/pda/manualSorting/productionScheduling',
data: {
workorder_code: code,
username: user
}
})
// 完工
export const productionComplete = (code, user) => request({
url:'api/pda/manualSorting/productionComplete',
data: {
workorder_code: code,
username: user
}
})
/**
* 涂板线
*/
// 点位编码列表
export const getPointList = () => request({
url:'api/pda/getPointList',
data: {}
})
// 数据
export const coatedWireIntoStorageTaskShow = () => request({
url:'api/pda/manualSorting/coatedWireIntoStorageTaskShow',
data: {}
})
// 入库
export const coatedWireIntoStorageTask = (code, qty) => request({
url:'api/pda/manualSorting/coatedWireIntoStorageTask',
data: {
point_code: code,
qty: qty
}
})
/**
* 连涂线
*/
export const getLtxPointList = () => request({
url:'api/pda/getLtxPointList',
data: {}
})
export const ltxTask = (code, action) => request({
url:'api/pda/manualSorting/ltxTask',
data: {
point_code: code,
action: action
}
})
/**
* 物料库存
*/
// 物料下拉框
export const materialList = () => request({
url:'api/pda/materialList',
data: {}
})
// 根据物料获取库存数据
export const getInventoryMaterialInfo = (code) => request({
url:'api/pda/getInventoryMaterialInfo',
data: {
material_code: code
}
})
/**
* 点位管理
*/
// 点位编码列表
export const getGhsPointList = () => request({
url:'api/pda/getGhsPointList',
data: {}
})
// 更改固化室库存
export const changePointQty = (id, qty) => request({
url:'api/pda/changePointQty',
data: {
group_id: id,
qty: qty
}
})
/**
* 指令管理
*/
// 1.1 查询未完成指令(生成任务号为-开头)
export const handInsts = (key, scode, ncode) => request({
url:'api/hand/insts',
acsurl: true,
data: {
keyword: key,
start_devicecode: scode,
next_devicecode: ncode
}
})
// 1.2 指令操作
export const handInst = (type, id) => request({
url:'api/hand/inst',
acsurl: true,
data: {
type: type,
inst_uuid: id
}
})
/**
* 任务管理
*/
// 1.1 1.1 查询无指令的任务(任务号为-开头)
export const handTasks = (key, scode, ncode) => request({
url:'api/hand/tasks',
acsurl: true,
data: {
keyword: key,
start_devicecode: scode,
next_devicecode: ncode
}
})
// 1.2 任务操作
export const handTaskoperation = (type, id) => request({
url:'api/hand/taskoperation',
acsurl: true,
data: {
type: type,
task_uuid: id
}
})