Files
hht-lnsh-new/src/config/getData2.js

138 lines
3.4 KiB
JavaScript
Raw Normal View History

2023-04-17 09:09:34 +08:00
import {post} from '@config/http.js'
// 手持登录
export const loginApi = (user, password) => post('api/pda/login', {
username: user,
password: password
})
2023-04-17 17:20:53 +08:00
2023-04-17 09:09:34 +08:00
// 手持登陆查询菜单权限
export const authority = (id) => post('api/pda/authority', {
accountId: id
})
2023-04-17 17:20:53 +08:00
// 查询区域
2023-04-17 17:22:54 +08:00
export const pdaRegion = (func) => post('api/pda/region', {
func: func
})
2024-05-22 14:14:20 +08:00
2023-04-17 17:20:53 +08:00
// 根据区域查询点位
2023-04-17 17:22:54 +08:00
export const pdaPoint = (func, code) => post('api/pda/point', {
func: func,
region_code: code
})
2024-05-22 14:14:20 +08:00
2023-04-17 17:20:53 +08:00
// 查询设备
2023-04-17 17:22:54 +08:00
export const pdaDevice = (func) => post('api/pda/device', {
func: func
})
2023-06-02 13:47:54 +08:00
// 查询载具类型
export const pdavehicleType = (func) => post('api/pda/vehicleType', {
func: func
})
2023-04-17 17:20:53 +08:00
// 不合格品上报
export const pdaReport = (code, qty) => post('api/pda/report', {
device_code: code,
unqualified_qty: qty
2023-04-17 09:09:34 +08:00
})
2023-04-17 17:20:53 +08:00
// 送料
export const sendMaterial = (code, vcode, qty, weight, is) => post('api/pda/sendMaterial', {
2023-04-17 09:09:34 +08:00
point_code: code,
vehicle_code: vcode,
2023-04-17 17:20:53 +08:00
qty: qty,
weight: weight,
is_full: is
2023-04-17 09:09:34 +08:00
})
2023-04-17 17:20:53 +08:00
// 叫料
export const callMaterial = (code) => post('api/pda/callMaterial', {
point_code: code
2023-04-17 09:09:34 +08:00
})
2023-05-13 11:28:33 +08:00
// 送空
export const sendEmpty = (code, vcode) => post('api/pda/sendEmpty', {
point_code: code,
vehicle_code: vcode
})
2023-06-02 10:35:16 +08:00
// 叫空
2023-06-02 10:50:02 +08:00
export const callEmpty = (code) => post('api/pda/callEmpty', {
point_code: code
})
2023-06-02 14:15:59 +08:00
// 困料管理
export const standStatus = (vcode, type) => post('api/pda/standStatus', {
vehicle_code: vcode,
type: type
})
2023-06-06 14:17:29 +08:00
// 入窑管理
export const inKiln = (vcode, type) => post('api/pda/inKiln', {
vehicle_code: vcode,
type: type
})
2023-06-02 13:47:54 +08:00
// 载具绑定
export const vehicleBind = (code, vtype, vcode) => post('api/pda/vehicleBind', {
point_code: code,
vehicle_type: vtype,
vehicle_code: vcode
})
2023-06-02 10:50:02 +08:00
// 载具解绑
export const vehicleUnbind = (code) => post('api/pda/vehicleUnbind', {
2023-06-02 10:35:16 +08:00
point_code: code
})
2023-06-06 14:17:29 +08:00
// 呼叫次品料
export const callDefective = (code) => post('api/pda/callDefective', {
device_code: code
})
2024-05-22 11:10:20 +08:00
/**
* 人工异常处理
*/
// 区域下拉框
export const ExceptionHandlingRegionList = () => post('api/pda/manual/ExceptionHandlingTask/regionList', {})
// 点位下拉框
export const ExceptionHandlingTaskList = () => post('api/pda/manual/ExceptionHandlingTask/list', {})
2024-05-22 11:29:56 +08:00
// 任务信息列表
2024-05-22 11:10:20 +08:00
export const ExceptionHandlingTaskShow = (code) => post('api/pda/manual/ExceptionHandlingTask/show', {
region_code: code
})
// 确认
export const ExceptionHandlingTask = (id, point) => post('api/pda/manual/ExceptionHandlingTask', {
task_id: id,
end_point: point
})
2024-05-22 11:29:56 +08:00
/**
* 人工混碾搬运
*/
// 混碾位置下拉框
export const getMixingPointList = () => post('api/pda/manual/getMixingPointList', {})
// 混碾人工任务列表
2024-05-22 14:14:20 +08:00
export const getMixingTaskList = () => post('api/pda/manual/getMixingTaskList', {})
2024-05-22 11:29:56 +08:00
// 确认
export const mixingMoveTask = (point, code, weight) => post('api/pda/manual/mixingMoveTask', {
point_code: point,
vehicle_code: code,
weight: weight
})
2024-05-22 14:14:20 +08:00
/**
* 压机料盅转移
*/
// 起点终点下拉框
export const transferPositionList = () => post('api/pda/manual/transfer/positionList', {})
// 料盅转移任务列表
export const transferTaskShow = () => post('api/pda/manual/transfer/taskShow', {})
// 确认
export const transferCreateTask = (sp, ep, code, is) => post('api/pda/manual/transfer/createTask', {
start_point: sp,
end_point: ep,
vehicle_code: code,
is_age: is
})