71 lines
1.7 KiB
JavaScript
71 lines
1.7 KiB
JavaScript
import request from './request.js'
|
|
|
|
// 初始化
|
|
// 1.1缓存线下拉框
|
|
export const getCacheLine = (area) => request({
|
|
url:'api/cacheLineHand/getCacheLine',
|
|
data: {
|
|
product_area: area
|
|
}
|
|
})
|
|
// 1.4缓存线指令状态下拉框查询:
|
|
export const instStatusQuery = (searchbar) => request({
|
|
url:'/api/cacheLineHand/instStatusQuery',
|
|
data: {
|
|
search_bar: searchbar
|
|
}
|
|
})
|
|
|
|
/** 缓存线异常处理 */
|
|
// 1.1缓存线异常处理:
|
|
export const cacheLineExcepOpt = (wcode, opttype) => request({
|
|
url:'/api/cacheLineHand/cacheLineExcepOpt',
|
|
data: {
|
|
wcsdevice_code: wcode,
|
|
opt_type: opttype
|
|
}
|
|
})
|
|
|
|
/** 缓存线出箱异常 */
|
|
// 1.1缓存线出箱异常-查询:
|
|
export const cacheLineOutBoxExceptionQuery = (wcode, pcode) => request({
|
|
url:'/api/cacheLineHand/cacheLineOutBoxExceptionQuery',
|
|
data: {
|
|
wcsdevice_code: wcode,
|
|
position_code: pcode
|
|
}
|
|
})
|
|
// 1.2缓存线出箱异常-确认:
|
|
export const cacheLineOutBoxExceptionConfirm = (wcode, uuid, itype, vcode, parea, pcode) => request({
|
|
url:'/api/cacheLineHand/cacheLineOutBoxExceptionConfirm',
|
|
data: {
|
|
wcsdevice_code: wcode,
|
|
instruct_uuid: uuid,
|
|
inOut_type: itype,
|
|
vehicle_code: vcode,
|
|
product_area: parea,
|
|
position_code: pcode
|
|
}
|
|
})
|
|
|
|
/** 指令操作 */
|
|
// 1.1指令分页查询:
|
|
export const instPageQuery = (data) => request({
|
|
url:'/api/cacheLineHand/instPageQuery',
|
|
data: data
|
|
})
|
|
|
|
// 1.2指令操作:
|
|
export const instOperation = (uuid, otype) => request({
|
|
url:'/api/cacheLineHand/instOperation',
|
|
data: {
|
|
instruct_uuid: uuid,
|
|
opt_type: otype
|
|
}
|
|
})
|
|
|
|
// 1.3获取任务类型:
|
|
export const taskType = () => request({
|
|
url:'/api/task/taskType'
|
|
})
|