add 合托

This commit is contained in:
2025-12-02 16:06:02 +08:00
parent d701689973
commit 8046d06b45
7 changed files with 553 additions and 1 deletions

View File

@@ -50,4 +50,144 @@ export const fillUpEmpty = (code) => {
message: 'ok'
}
return res
}
export const checkTrayInfo = (t) => {
let res
if (t === '1') {
res = {
"vehicle_type_name": "钢托盘",
"materials": [
{
"order_code": "800036430824",
"material_qty": 2,
"due_date": "",
"vehicle_path": null,
"priority": "1.0",
"region_code": "落料完成",
"material_code": "A7E0019000600_00"
},
{
"order_code": "OR786806",
"material_qty": 23,
"due_date": "",
"vehicle_path": null,
"priority": "5.0",
"region_code": "落料完成",
"material_code": "A7E44207473002_0A"
},
{
"order_code": "800036430823",
"material_qty": 2,
"due_date": "",
"vehicle_path": null,
"priority": "1.0",
"region_code": "落料完成",
"material_code": "A7E0019000590_01"
},
{
"order_code": "OR786807",
"material_qty": 20,
"due_date": "",
"vehicle_path": null,
"priority": "5.0",
"region_code": "落料完成",
"material_code": "A7E44207473003_0A"
},
{
"order_code": "800036431198",
"material_qty": 20,
"due_date": "",
"vehicle_path": null,
"priority": "8.0",
"region_code": "落料完成",
"material_code": "A7E0019008850_00"
}
],
"vehicle_type": "G01",
"region_name": "LAG Robot Bending Cell(手动加工)",
"vehicle_code": "P01A00000014",
"point_name": "LRBC货架05-03-04",
"point_code": "LRBC05-03-04",
"region_code": "111-10"
}
}
if (t === '2') {
res = {
"vehicle_type_name": "钢托盘",
"materials": [
{
"order_code": "800036430824",
"material_qty": 2,
"due_date": "",
"vehicle_path": null,
"priority": "1.0",
"region_code": "落料完成",
"material_code": "A7E0019000600_00"
},
{
"order_code": "OR786806",
"material_qty": 23,
"due_date": "",
"vehicle_path": null,
"priority": "5.0",
"region_code": "落料完成",
"material_code": "A7E44207473002_0A"
},
{
"order_code": "800036430823",
"material_qty": 2,
"due_date": "",
"vehicle_path": null,
"priority": "1.0",
"region_code": "落料完成",
"material_code": "A7E0019000590_01"
},
{
"order_code": "OR786807",
"material_qty": 20,
"due_date": "",
"vehicle_path": null,
"priority": "5.0",
"region_code": "落料完成",
"material_code": "A7E44207473003_0A"
},
{
"order_code": "800036431198",
"material_qty": 20,
"due_date": "",
"vehicle_path": null,
"priority": "8.0",
"region_code": "落料完成",
"material_code": "A7E0019008850_00"
}
],
"vehicle_type": "G02",
"region_name": "LAG Robot Bending Cell(手动加工)",
"vehicle_code": "P01A00000015",
"point_name": "LRBC货架05-03-04",
"point_code": "LRBC05-03-04",
"region_code": "111-10"
}
}
return res
}
export const combineMaterials = () => {
let res = {
"need_store_in": false,
"target_vehicle_code": "P01A00000004",
"success": true,
"message": "合托操作成功",
"source_vehicle_code": "P01A00000001"
}
return res
}
export const generateStoreInTask = () => {
let res = {
"is_second_store_in": true,
"success": true,
"message": "入库任务生成成功",
"vehicle_code": "P01A00000004",
"point_code": "SD01"
}
return res
}