Files
hht-xinfengtianneng-uni/utils/getData2.js

144 lines
2.6 KiB
JavaScript
Raw Normal View History

2023-12-20 09:13:42 +08:00
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
}
})
/**
2024-02-22 10:26:03 +08:00
* 人工排产
2023-12-20 09:13:42 +08:00
*/
2024-02-22 10:26:03 +08:00
// 工单
2024-02-28 10:36:30 +08:00
export const manualSortingOrders = () => request({
url:'api/pda/manualSorting/orders',
data: {}
})
2024-03-18 11:21:44 +08:00
2023-12-20 09:13:42 +08:00
// 开工
2024-02-22 10:26:03 +08:00
export const productionScheduling = (code, user) => request({
2023-12-20 09:13:42 +08:00
url:'api/pda/manualSorting/productionScheduling',
data: {
workorder_code: code,
username: user
}
})
// 完工
2024-02-22 10:26:03 +08:00
export const productionComplete = (code, user) => request({
2023-12-20 09:13:42 +08:00
url:'api/pda/manualSorting/productionComplete',
data: {
workorder_code: code,
username: user
}
})
/**
2024-02-22 10:26:03 +08:00
* 涂板线
2023-12-20 09:13:42 +08:00
*/
2024-05-21 17:47:19 +08:00
// 点位编码列表
export const getPointList = () => request({
url:'api/pda/getPointList',
data: {}
})
2024-02-22 10:26:03 +08:00
// 数据
2024-02-28 10:36:30 +08:00
export const coatedWireIntoStorageTaskShow = () => request({
url:'api/pda/manualSorting/coatedWireIntoStorageTaskShow',
data: {}
})
2024-03-18 11:21:44 +08:00
2024-02-22 10:26:03 +08:00
// 入库
export const coatedWireIntoStorageTask = (code, qty) => request({
url:'api/pda/manualSorting/coatedWireIntoStorageTask',
2023-12-20 09:13:42 +08:00
data: {
2024-02-22 10:26:03 +08:00
point_code: code,
2023-12-20 09:13:42 +08:00
qty: qty
}
})
/**
2024-02-22 10:26:03 +08:00
* 物料库存
2023-12-20 09:13:42 +08:00
*/
2024-02-22 10:26:03 +08:00
// 物料下拉框
2024-02-28 10:36:30 +08:00
export const materialList = () => request({
url:'api/pda/materialList',
data: {}
})
2024-03-18 11:21:44 +08:00
2024-02-22 10:26:03 +08:00
// 根据物料获取库存数据
2024-02-28 10:36:30 +08:00
export const getInventoryMaterialInfo = (code) => request({
url:'api/pda/getInventoryMaterialInfo',
data: {
material_code: code
}
})
2024-06-04 15:33:24 +08:00
/**
* 点位管理
*/
// 点位编码列表
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
}
2024-07-18 15:40:32 +08:00
})
/**
* 指令管理
*/
// 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
}
2024-06-04 15:33:24 +08:00
})