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

225 lines
5.9 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
})
2024-05-22 14:40:17 +08:00
/**
* 人工压制上料
*/
// 起点下拉框
export const suppressStartPointList = () => post('api/pda/manual/suppress/startPointList', {})
// 压制送料任务列表
export const suppressTaskShow = () => post('api/pda/manual/suppress/taskShow', {})
// 确认
export const suppressCreateTask = (sp, ep, code) => post('api/pda/manual/suppress/createTask', {
start_point: sp,
end_point: ep,
vehicle_code: code
})
2024-05-22 15:22:07 +08:00
/**
* 人工压制下料
*/
// 下料起点下拉框
export const suppressDownPointList = () => post('api/pda/manual/suppress/down/pointList', {})
// 压制送料任务列表
export const suppressDownShow = () => post('api/pda/manual/suppress/down/show', {})
// 确认
export const suppressDownCreateTask = (sp, code, qty, is) => post('api/pda/manual/suppress/down/createTask', {
start_point: sp,
vehicle_code: code,
qty: qty,
is_full: is
})
/**
* 人工出窑
*/
// 出窑任务列表
export const kilnOutCreateTaskShow = () => post('api/pda/manual/kiln/out/createTaskShow', {})
// 确认
export const kilnOutCreateTask = (code) => post('api/pda/manual/kiln/out/createTask', {
vehicle_code: code
})
2024-05-22 15:33:35 +08:00
/**
* 载具转移
*/
// 下料起点下拉框
export const kilnMovePointList = () => post('api/pda/manual/kiln/move/pointList', {})
// 任务列表
export const kilnMoveCreateTaskShow = () => post('api/pda/manual/kiln/move/createTaskShow', {})
// 确认
export const kilnMoveCreateTask = (sp, code) => post('api/pda/manual/kiln/move/createTask', {
start_point: sp,
vehicle_code: code
})
2024-05-22 15:39:46 +08:00
/**
* 料盅退料
*/
export const materialReturn = (code) => post('api/pda/manual/materialReturn', {
vehicle_code: code
})
2024-05-22 15:43:21 +08:00
/**
* 取样计数
*/
export const samplingCountNum = (code, number) => post('api/pda/manual/samplingCountNum', {
vehicle_code: code,
number: number
})
2024-07-02 14:03:17 +08:00
/**
* 料盅比对
*/
export const loamCompareList = () => post('api/pda/manual/loamCompare/list', {})
export const loamCompareDoCheck = (pcode, code) => post('api/pda/manual/loamCompare/doCheck', {
point_code: pcode,
vehicle_code: code
})
2024-07-02 14:56:49 +08:00
/**
* 修改料盅重量/数量
*/
export const updateInfo = (code) => post('api/pda/manual/updateInfo/getInfo', {
vehicle_code: code,
vehicle_type: '1'
})
export const updateWeight = (code, weight) => post('api/pda/manual/updateInfo/updateWeight', {
vehicle_code: code,
vehicle_type: '1',
current_weight: weight
})
export const updateQty = (code, qty, weight) => post('api/pda/manual/updateInfo/updateQty', {
vehicle_code: code,
vehicle_type: '1',
current_qty: qty,
current_weight: weight
})