接口地址
This commit is contained in:
@@ -14,9 +14,9 @@ export const pdaUpdate = () => request({
|
||||
|
||||
// 登录
|
||||
export const handLogin = (user, password) => request({
|
||||
url:'api/hand/login',
|
||||
url:'api/pda/handlogin',
|
||||
data: {
|
||||
username: user,
|
||||
user: user,
|
||||
password: password
|
||||
}
|
||||
})
|
||||
@@ -37,101 +37,72 @@ export const authority = () => {
|
||||
* 站点管理
|
||||
*/
|
||||
// 1.1查询所有区域信息
|
||||
export const queryArea = () => request({
|
||||
url:'api/hand/queryArea',
|
||||
data: {}
|
||||
})
|
||||
// export const queryArea = () => {
|
||||
// let res = {
|
||||
// result: [{region_code: '1', region_name: 'A1'}, {region_code: '2', region_name: 'A2'}, {region_code: '3', region_name: 'A2'}, {region_code: '4', region_name: 'A10'}]
|
||||
// }
|
||||
// return res
|
||||
// }
|
||||
// export const queryRegion = () => request({
|
||||
// url:'api/pda/region',
|
||||
// data: {}
|
||||
// })
|
||||
export const queryRegion = () => {
|
||||
let res = {
|
||||
result: [{region_code: '1', region_name: 'A1'}, {region_code: '2', region_name: 'A2'}, {region_code: '3', region_name: 'A2'}, {region_code: '4', region_name: 'A10'}]
|
||||
}
|
||||
return res
|
||||
}
|
||||
// 1.2根据区域查询设备编号及状态
|
||||
export const queryPointByArea = (code) => request({
|
||||
url:'api/hand/queryPointByArea',
|
||||
data: {
|
||||
areaCode: code
|
||||
}
|
||||
})
|
||||
// export const queryPointByArea = () => {
|
||||
// let res = {
|
||||
// result: [{
|
||||
// device_code: '1',
|
||||
// device_name: 'JLDFJLLJ'
|
||||
// }, {
|
||||
// device_code: '12',
|
||||
// device_name: 'JLDFJLLJ'
|
||||
// }, {
|
||||
// device_code: '13',
|
||||
// device_name: 'JLDFJLLJ'
|
||||
// }, {
|
||||
// device_code: '14',
|
||||
// device_name: 'JLDFJLLJ'
|
||||
// }, {
|
||||
// device_code: '15',
|
||||
// device_name: 'JLDFJLLJ'
|
||||
// }, {
|
||||
// device_code: '16',
|
||||
// device_name: 'JLDFJLLJ'
|
||||
// }, {
|
||||
// device_code: '17',
|
||||
// device_name: 'JLDFJLLJ'
|
||||
// }]
|
||||
// }
|
||||
// return res
|
||||
// }
|
||||
// export const queryPoint = (code) => request({
|
||||
// url:'api/pda/point',
|
||||
// data: {
|
||||
// region_code: code
|
||||
// }
|
||||
// })
|
||||
export const queryPoint = () => {
|
||||
let res = {
|
||||
result: [{
|
||||
device_code: '1',
|
||||
device_name: 'JLDFJLLJ'
|
||||
}, {
|
||||
device_code: '12',
|
||||
device_name: 'JLDFJLLJ'
|
||||
}, {
|
||||
device_code: '13',
|
||||
device_name: 'JLDFJLLJ'
|
||||
}, {
|
||||
device_code: '14',
|
||||
device_name: 'JLDFJLLJ'
|
||||
}, {
|
||||
device_code: '15',
|
||||
device_name: 'JLDFJLLJ'
|
||||
}, {
|
||||
device_code: '16',
|
||||
device_name: 'JLDFJLLJ'
|
||||
}, {
|
||||
device_code: '17',
|
||||
device_name: 'JLDFJLLJ'
|
||||
}]
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
/**
|
||||
* 呼叫管理
|
||||
* 涂线板下料
|
||||
*/
|
||||
// 1.1创建任务(确定起点)
|
||||
export const callTask = (scodes, code) => request({
|
||||
url:'api/hand/callTask',
|
||||
// 1.1出库确认
|
||||
export const outStructOutSave = (code, vcode, type) => request({
|
||||
url:'api/pda/outStruct/outSave',
|
||||
data: {
|
||||
start_device_codes: scodes,
|
||||
next_device_code: code
|
||||
point_code: code,
|
||||
vehicle_code: vcode,
|
||||
material_type: type
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 指令管理
|
||||
* 包片机上料
|
||||
*/
|
||||
// 1.1查询未完成指令
|
||||
export const queryInstraction = (keyword, scode, ncode) => request({
|
||||
url:'api/hand/insts',
|
||||
// 1.1出库确认
|
||||
export const callingMaterialTask = (code, type) => request({
|
||||
url:'api/pda/callingMaterialTask',
|
||||
data: {
|
||||
keyword: keyword,
|
||||
start_devicecode: scode,
|
||||
next_devicecode: ncode
|
||||
}
|
||||
})
|
||||
//1.2 指令操作
|
||||
export const instOperation = (uuid, type) => request({
|
||||
url:'api/hand/inst',
|
||||
data: {
|
||||
inst_uuid: uuid,
|
||||
type: type
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 任务管理
|
||||
*/
|
||||
// 1.1 查询未完成指令
|
||||
export const queryTask = (keyword, scode, ncode) => request({
|
||||
url:'api/hand/tasks',
|
||||
data: {
|
||||
keyword: keyword,
|
||||
start_devicecode: scode,
|
||||
next_devicecode: ncode
|
||||
}
|
||||
})
|
||||
// 1.2 指令操作
|
||||
export const taskOperation = (uuid, type) => request({
|
||||
url:'api/hand/taskoperation',
|
||||
data: {
|
||||
inst_uuid: uuid,
|
||||
type: type
|
||||
point_code: code,
|
||||
material_type: type
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user