Files
hht-lnsh/src/config/getData1.js
2022-08-31 16:28:08 +08:00

72 lines
2.0 KiB
JavaScript

import {post, post2} from '@config/http.js'
// import store from '../vuex/store'
// 指令管理
// 1.1 查询未完成指令
export const queryInstraction = (keyword, scode, ncode) => post2('api/ash/hand/insts', {
keyword: keyword,
start_devicecode: scode,
next_devicecode: ncode
})
// 1.2 指令操作
export const instOperation = (uuid, type) => post2('api/ash/hand/inst', {
inst_uuid: uuid,
type: type
})
// 任务管理
// 1.1 查询未完成指令
export const queryTask = (keyword, scode, ncode) => post2('api/ash/hand/tasks', {
keyword: keyword,
start_devicecode: scode,
next_devicecode: ncode
})
// 1.2 指令操作
export const taskOperation = (uuid, type) => post2('api/ash/hand/taskoperation', {
inst_uuid: uuid,
type: type
})
// 送料
// 1.1查询工序设备点位
export const sendMaterialqueryDevice = () => post('api/pda/sendMaterial/queryDevice', {})
// 1.2压制叫料确定
export const sendMaterialconfirm = (wid, did, pid, pcode, qty, vcode, isfull) => post('api/pda/sendMaterial/confirm', {
workprocedure_id: wid,
device_id: did,
point_id: pid,
point_code: pcode,
qty: qty,
vehicle_code: vcode,
is_full: isfull
})
// 压制叫料
// 1.1查询点位
export const callMaterialqueryPoint = () => post('api/pda/callMaterial/queryPoint', {})
// 1.2压制叫料确定
export const callMaterialconfirm = (pid, pcode, pname, isfull, id, code, mname) => post('api/pda/callMaterial/confirm', {
point_id: pid,
point_code: pcode,
point_name: pname,
is_full: isfull,
material_id: id,
material_code: code,
material_name: mname
})
// 送空托盘
// 1.1查询区域
export const sendEmptyqueryArea = () => post('api/pda/sendEmpty/queryArea', {})
// 1.2根据区域查询点位
export const sendEmptyqueryPointByArea = (acode) => post('api/pda/sendEmpty/queryPointByArea', {
area_code: acode
})
// 1.3 送空托盘确定
export const sendEmptyconfirm = (pid, pcode, pname, vcode) => post('api/pda/sendEmpty/confirm', {
point_id: pid,
point_code: pcode,
point_name: pname,
vehicle_code: vcode
})