载具转移

This commit is contained in:
2024-05-22 15:33:35 +08:00
parent 9a631defbe
commit 1dcca714f3
4 changed files with 153 additions and 1 deletions

View File

@@ -171,3 +171,15 @@ export const kilnOutCreateTaskShow = () => post('api/pda/manual/kiln/out/createT
export const kilnOutCreateTask = (code) => post('api/pda/manual/kiln/out/createTask', {
vehicle_code: code
})
/**
* 载具转移
*/
// 下料起点下拉框
export const kilnMovePointList = () => post('api/pda/manual/kiln/move/pointList', {})
// 任务列表
export const kilnMoveCreateTaskShow = () => post('api/pda/manual/kiln/move/createTaskShow', {})
// 确认
export const kilnMoveCreateTask = (sp, code) => post('api/pda/manual/kiln/move/createTask', {
start_point: sp,
vehicle_code: code
})

View File

@@ -137,3 +137,15 @@ export const kilnOutCreateTask = () => {
let res = {code: '1', desc: 'ok'}
return res
}
export const kilnMovePointList = () => {
let res = {'result': [{'point_name': '压机3上料位', 'point_code': 'YJ03SL01'}, {'point_name': '压机4上料位', 'point_code': 'YJ04SL01'}, {'point_name': '压机5上料位', 'point_code': 'YJ05SL01'}, {'point_name': '压机6上料位', 'point_code': 'YJ06SL01'}, {'point_name': '压机7上料位', 'point_code': 'YJ07SL01'}, {'point_name': '压机8上料位', 'point_code': 'YJ08SL01'}, {'point_name': '压机9上料位', 'point_code': 'YJ09SL01'}, {'point_name': '压机10上料位', 'point_code': 'YJ10SL01'}, {'point_name': '次品料对接位1', 'point_code': 'CPLDJ01'}, {'point_name': '次品料对接位2', 'point_code': 'CPLDJ02'}, {'point_name': '次品料对接位3', 'point_code': 'CPLDJ03'}, {'point_name': '次品料对接位4', 'point_code': 'CPLDJ04'}], 'code': '1', 'desc': '操作成功!'}
return res
}
export const kilnMoveCreateTaskShow = () => {
let res = {'result': [{'task_name': '人工布料机上料', 'task_status': '7', 'start_point': '困料虚拟库', 'end_point': '压机3上料位', 'task_code': '20240515000006', 'vehicle_type': '1', 'task_id': '1790612954789974016', 'vehicle_code': '1222'}, {'task_name': '人工压机下料', 'task_status': '7', 'start_point': '压机3上料位', 'end_point': '窑前虚拟库', 'task_code': '20240515000007', 'vehicle_type': '1', 'task_id': '1790619293327052800', 'vehicle_code': '8522'}], 'code': '1', 'desc': '操作成功!'}
return res
}
export const kilnMoveCreateTask = () => {
let res = {code: '1', desc: 'ok'}
return res
}