清洗上料下料

This commit is contained in:
2023-07-13 17:02:17 +08:00
parent 668b470586
commit 30a4bcf9bf
4 changed files with 291 additions and 164 deletions

View File

@@ -301,3 +301,53 @@ export const letterDeviceList = (id) => post('api/device/list', {
export const letterCallVechile = (id) => post('api/pda/callVechile', {
device_code: id
})
/**
* 清洗上料
*/
// 1.1车间列表
export const dictAll = () => post('api/dict/all', {})
// 1.1规格列表
export const washSpecList = () => post('api/pda/wash/specList', {})
// 1.2查询列表
export const washQuery = (area, id) => post('api/pda/wash/query', {
product_area: area,
material_id: id
})
// 1.3确认上料
export const washSubmitWash = (arr) => post('api/pda/wash/submitWash', arr)
/**
* 清洗下料
*/
// 1.1查询列表
// export const washWashTasks = (area) => post('api/pda/wash/washTasks', {
// product_area: area
// })
export const washWashTasks = (area) => {
let res = {
code: 200,
content: [{task_id: '1', sep_on: '1'}, {task_id: '2', sep_on: '2'}]
}
return res
}
// 1.2获取信息
export const washWashVechileInfo = (area) => post('api/pda/wash/washVechileInfo', {
product_area: area
})
// 1.2确认下料
export const washWashFinish = (id) => post('api/pda/wash/washFinish', {
task_id: id
})
// 1.3强制完成
export const washWashTaskFinish = (id) => post('api/pda/wash/washTaskFinish', {
task_id: id
})
// 1.4强制下料
export const washWashQzFinish = (id, wegiht, code) => post('api/pda/wash/washQzFinish', {
task_id: id,
wegiht: wegiht,
vechile_code: code
})
// 1.5呼叫空框
export const bcpInCallVehicle = () => post('api/pda/bcp/in/callVehicle', {})