225 lines
5.9 KiB
JavaScript
225 lines
5.9 KiB
JavaScript
import {post} from '@config/http.js'
|
|
|
|
// 手持登录
|
|
export const loginApi = (user, password) => post('api/pda/login', {
|
|
username: user,
|
|
password: password
|
|
})
|
|
|
|
// 手持登陆查询菜单权限
|
|
export const authority = (id) => post('api/pda/authority', {
|
|
accountId: id
|
|
})
|
|
|
|
// 查询区域
|
|
export const pdaRegion = (func) => post('api/pda/region', {
|
|
func: func
|
|
})
|
|
|
|
// 根据区域查询点位
|
|
export const pdaPoint = (func, code) => post('api/pda/point', {
|
|
func: func,
|
|
region_code: code
|
|
})
|
|
|
|
// 查询设备
|
|
export const pdaDevice = (func) => post('api/pda/device', {
|
|
func: func
|
|
})
|
|
|
|
// 查询载具类型
|
|
export const pdavehicleType = (func) => post('api/pda/vehicleType', {
|
|
func: func
|
|
})
|
|
|
|
// 不合格品上报
|
|
export const pdaReport = (code, qty) => post('api/pda/report', {
|
|
device_code: code,
|
|
unqualified_qty: qty
|
|
})
|
|
|
|
// 送料
|
|
export const sendMaterial = (code, vcode, qty, weight, is) => post('api/pda/sendMaterial', {
|
|
point_code: code,
|
|
vehicle_code: vcode,
|
|
qty: qty,
|
|
weight: weight,
|
|
is_full: is
|
|
})
|
|
|
|
// 叫料
|
|
export const callMaterial = (code) => post('api/pda/callMaterial', {
|
|
point_code: code
|
|
})
|
|
|
|
// 送空
|
|
export const sendEmpty = (code, vcode) => post('api/pda/sendEmpty', {
|
|
point_code: code,
|
|
vehicle_code: vcode
|
|
})
|
|
|
|
// 叫空
|
|
export const callEmpty = (code) => post('api/pda/callEmpty', {
|
|
point_code: code
|
|
})
|
|
|
|
// 困料管理
|
|
export const standStatus = (vcode, type) => post('api/pda/standStatus', {
|
|
vehicle_code: vcode,
|
|
type: type
|
|
})
|
|
|
|
// 入窑管理
|
|
export const inKiln = (vcode, type) => post('api/pda/inKiln', {
|
|
vehicle_code: vcode,
|
|
type: type
|
|
})
|
|
|
|
// 载具绑定
|
|
export const vehicleBind = (code, vtype, vcode) => post('api/pda/vehicleBind', {
|
|
point_code: code,
|
|
vehicle_type: vtype,
|
|
vehicle_code: vcode
|
|
})
|
|
|
|
// 载具解绑
|
|
export const vehicleUnbind = (code) => post('api/pda/vehicleUnbind', {
|
|
point_code: code
|
|
})
|
|
|
|
// 呼叫次品料
|
|
export const callDefective = (code) => post('api/pda/callDefective', {
|
|
device_code: code
|
|
})
|
|
|
|
/**
|
|
* 人工异常处理
|
|
*/
|
|
// 区域下拉框
|
|
export const ExceptionHandlingRegionList = () => post('api/pda/manual/ExceptionHandlingTask/regionList', {})
|
|
// 点位下拉框
|
|
export const ExceptionHandlingTaskList = () => post('api/pda/manual/ExceptionHandlingTask/list', {})
|
|
// 任务信息列表
|
|
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
|
|
})
|
|
/**
|
|
* 人工混碾搬运
|
|
*/
|
|
// 混碾位置下拉框
|
|
export const getMixingPointList = () => post('api/pda/manual/getMixingPointList', {})
|
|
// 混碾人工任务列表
|
|
export const getMixingTaskList = () => post('api/pda/manual/getMixingTaskList', {})
|
|
// 确认
|
|
export const mixingMoveTask = (point, code, weight) => post('api/pda/manual/mixingMoveTask', {
|
|
point_code: point,
|
|
vehicle_code: code,
|
|
weight: weight
|
|
})
|
|
/**
|
|
* 压机料盅转移
|
|
*/
|
|
// 起点终点下拉框
|
|
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
|
|
})
|
|
/**
|
|
* 人工压制上料
|
|
*/
|
|
// 起点下拉框
|
|
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
|
|
})
|
|
/**
|
|
* 人工压制下料
|
|
*/
|
|
// 下料起点下拉框
|
|
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
|
|
})
|
|
/**
|
|
* 载具转移
|
|
*/
|
|
// 下料起点下拉框
|
|
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
|
|
})
|
|
/**
|
|
* 料盅退料
|
|
*/
|
|
export const materialReturn = (code) => post('api/pda/manual/materialReturn', {
|
|
vehicle_code: code
|
|
})
|
|
/**
|
|
* 取样计数
|
|
*/
|
|
export const samplingCountNum = (code, number) => post('api/pda/manual/samplingCountNum', {
|
|
vehicle_code: code,
|
|
number: number
|
|
})
|
|
/**
|
|
* 料盅比对
|
|
*/
|
|
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
|
|
})
|
|
/**
|
|
* 修改料盅重量/数量
|
|
*/
|
|
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
|
|
})
|