add 合托
This commit is contained in:
@@ -102,4 +102,18 @@ export const getLlddw = () => request({
|
||||
export const fillUpEmpty = (obj) => request({
|
||||
url:'api/handheld/fillUpEmpty',
|
||||
data: obj
|
||||
})
|
||||
|
||||
// 合托
|
||||
export const checkTrayInfo = (code) => request({
|
||||
url:'api/handheld/checkTrayInfo',
|
||||
data: {vehicle_code: code}
|
||||
})
|
||||
export const combineMaterials = (oPallet, tPallet, data) => request({
|
||||
url:'api/handheld/combineMaterials',
|
||||
data: {source_vehicle_code: oPallet, target_vehicle_code: tPallet, selected_materials: data}
|
||||
})
|
||||
export const generateStoreInTask = (code, pcode, scode, tcode) => request({
|
||||
url:'api/handheld/generateStoreInTask',
|
||||
data: {vehicle_code: code, point_code: pcode, source_vehicle_code: scode, target_vehicle_code: tcode}
|
||||
})
|
||||
140
utils/mork2.js
140
utils/mork2.js
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user