Files
hht-huahong-uni/utils/getData2.js
2024-03-29 16:08:57 +08:00

93 lines
2.2 KiB
JavaScript

import request from './request.js'
// 版本更新测试
export const pdaUpdate = () => request({
url:'api/pda/update'
})
// export const pdaUpdate = () => {
// let res = {
// versionName: '1.0.1',
// url: 'https://mp-e979e0eb-882b-42b3-a4a1-923ad08ea194.cdn.bspapp.com/cloudstorage/f72ec59f-7b25-487d-a034-fead1b6654c6.apk'
// }
// return res
// }
// 登录
export const handLogin = (user, password) => request({
url:'mobile/auth/login',
data: {
username: user,
password: password
}
})
/**
* 混碾搬运
*/
// 查询混碾工单
export const hnWorkOrder = () => request({
url:'http://192.168.81.190:8011/api/pda/hnWorkOrder',
data: {}
})
// 混碾工单完成
export const hnOrderFinish = (code) => request({
url:'http://192.168.81.190:8011/api/pda/orderFinish',
data: {orderCode: code}
})
// 拆包机料盅入库
export const hnmlTask = (code, bcode, time) => request({
url:'http://192.168.81.190:8011/api/pda/hnmlTask',
data: {orderCode: code,barCode: bcode,createTime: time}
})
// 拆包机叫空蛊
export const hnqkTask = () => request({
url:'http://192.168.81.190:8011/api/pda/hnqkTask',
data: {}
})
/**
* 压机搬运
*/
// 压机上料位下拉框
export const yjslwPointList = () => request({
url:'http://192.168.81.190:8011/api/pda/yjslwPointList',
data: {}
})
// 压机上料位强制回货架
export const qzhhjTask = (code) => request({
url:'http://192.168.81.190:8011/api/pda/qzhhjTask',
data: {deviceCode: code}
})
/**
* 物料报废
*/
// 物料报废
export const materialScrap = () => request({
url:'http://192.168.81.190:8011/api/pda/materialScrap',
data: {}
})
/**
* 人工分拣
*/
// 查询人工分拣点位
export const rgfjPoint = () => request({
url:'http://192.168.81.190:8011/api/pda/rgfjPoint',
data: {}
})
// 查询缓存货架点位
export const hchjPoint = () => request({
url:'http://192.168.81.190:8011/api/pda/hchjPoint',
data: {}
})
// 人工分拣叫料
export const rgfjqlTask = (sp, code) => request({
url:'http://192.168.81.190:8011/api/pda/rgfjqlTask',
data: {startPoint: sp, deviceCode: code}
})
// 人工分拣送空盘
export const rgfjskTask = (code) => request({
url:'http://192.168.81.190:8011/api/pda/rgfjskTask',
data: {deviceCode: code}
})