Files
pad-hl-hcx-new/utils/getData1.js

66 lines
1.6 KiB
JavaScript
Raw Normal View History

2023-03-29 09:45:17 +08:00
import request from './request.js'
2023-03-29 14:13:26 +08:00
// 初始化
// 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: {
2023-03-30 16:14:01 +08:00
search_bar: searchbar
2023-03-29 14:13:26 +08:00
}
})
/** 缓存线异常处理 */
2023-03-29 09:45:17 +08:00
// 1.1缓存线异常处理:
export const cacheLineExcepOpt = (wcode, opttype) => request({
url:'/api/cacheLineHand/cacheLineExcepOpt',
data: {
2023-03-30 16:14:01 +08:00
wcsdevice_code: wcode,
opt_type: opttype
2023-03-29 09:45:17 +08:00
}
})
2023-03-29 14:13:26 +08:00
/** 缓存线出箱异常 */
2023-03-29 09:45:17 +08:00
// 1.1缓存线出箱异常-查询:
export const cacheLineOutBoxExceptionQuery = (wcode, pcode) => request({
url:'/api/cacheLineHand/cacheLineOutBoxExceptionQuery',
data: {
2023-03-30 16:14:01 +08:00
wcsdevice_code: wcode,
position_code: pcode
2023-03-29 09:45:17 +08:00
}
})
// 1.2缓存线出箱异常-确认:
2023-03-29 14:13:26 +08:00
export const cacheLineOutBoxExceptionConfirm = (wcode, uuid, itype, vcode, parea, pcode) => request({
2023-03-29 09:45:17 +08:00
url:'/api/cacheLineHand/cacheLineOutBoxExceptionConfirm',
data: {
2023-03-30 16:14:01 +08:00
wcsdevice_code: wcode,
instruct_uuid: uuid,
inOut_type: itype,
vehicle_code: vcode,
product_area: parea,
position_code: pcode
2023-03-29 09:45:17 +08:00
}
})
2023-03-29 14:13:26 +08:00
/** 指令操作 */
// 1.1指令分页查询:
2023-03-30 16:14:01 +08:00
export const instPageQuery = (data) => request({
2023-03-29 14:13:26 +08:00
url:'/api/cacheLineHand/instPageQuery',
2023-03-30 16:14:01 +08:00
data: data
2023-03-29 14:13:26 +08:00
})
// 1.2指令操作:
export const instOperation = (uuid, otype) => request({
url:'/api/cacheLineHand/instOperation',
data: {
2023-03-30 16:14:01 +08:00
instruct_uuid: uuid,
opt_type: otype
2023-03-29 14:13:26 +08:00
}
})