258 lines
8.0 KiB
JavaScript
258 lines
8.0 KiB
JavaScript
export const handLogin = (user, password) => {
|
|
let res = {
|
|
user: {
|
|
user: {username: 'admin'},
|
|
},
|
|
token: 'abcd'
|
|
}
|
|
return res
|
|
}
|
|
export const regionList = () => {
|
|
let res = {
|
|
content: [{value: '1', label: 'A0000001'}, {value: '2', label: 'A0000002'}, {value: '3', label: 'A0000003'}, {value: '4', label: 'A0000004'}, {value: '5', label: 'A0000005'}, {value: '6', label: 'A0000006'}]
|
|
}
|
|
return res
|
|
}
|
|
|
|
export const getSD01GroupLog = () => {
|
|
let res = {
|
|
"device_code": "SD01",
|
|
"regionCode": '6',
|
|
"region_Code": null,
|
|
"vehicle_code": "VEH001",
|
|
"material": [
|
|
{
|
|
"order_code": "800035316873",
|
|
"material_code": "qqqq",
|
|
"material_qty": 33,
|
|
"due_date": "2025-04-17 15:01:04"
|
|
}
|
|
]
|
|
}
|
|
return res
|
|
}
|
|
export const handheldBlanking = (data) => {
|
|
let res = {
|
|
message: 'ok'
|
|
}
|
|
return res
|
|
}
|
|
|
|
export const fabOrders = (data) => {
|
|
let res = [
|
|
{order_code: '111'}
|
|
]
|
|
return res
|
|
}
|
|
export const updateRouteStatus = (data) => {
|
|
let res = {
|
|
message: 'ok'
|
|
}
|
|
return res
|
|
}
|
|
export const selectOrderByRegion = (code, code1) => {
|
|
let res = {
|
|
content: [{ vehicle_code: '123', order_code: '800034202869', region_code: '111-07', material_id: 'A7E0019008760_00', material_type: 'S39_SA01', custom: 'BBC支撑板后上', material_qty: '120', plan_date: '2024/8/11' }]
|
|
}
|
|
return res
|
|
}
|
|
export const fabMaterial = (code, code1) => {
|
|
let res = [{ vehicle_code: '123', order_code: '800034202869', region_code: '111-07', material_id: 'A7E0019008760_00', material_type: 'S39_SA01', custom: 'BBC支撑板后上', material_qty: '120', plan_date: '2024/8/11' }, { vehicle_code: '123', order_code: '800034202869', region_code: '111-07', material_id: 'A7E0019008760_00', material_type: 'S39_SA01', custom: 'BBC支撑板后上', material_qty: '120', plan_date: '2024/8/11' }, { vehicle_code: '123', order_code: '800034202869', region_code: '111-07', material_id: 'A7E0019008760_00', material_type: 'S39_SA01', custom: 'BBC支撑板后上', material_qty: '120', plan_date: '2024/8/11' }, { vehicle_code: '123', order_code: '800034202869', region_code: '111-07', material_id: 'A7E0019008760_00', material_type: 'S39_SA01', custom: 'BBC支撑板后上', material_qty: '120', plan_date: '2024/8/11' }]
|
|
return res
|
|
}
|
|
export const selectPointByRegion = (code) => {
|
|
let res = [{point_code: '1', point_name: 'Amada 80T冲床07-01-06-01'}, {point_code: '2', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '3', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '4', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '5', point_name: 'Amada 80T冲床07-01-06-01', point_status: '1'}, {point_code: '1', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '2', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '3', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '4', point_name: 'Amada 80T冲床07-01-06-01', point_status: '0'}, {point_code: '5', point_name: 'Amada 80T冲床07-01-06-01', point_status: '1'}]
|
|
return res
|
|
}
|
|
|
|
export const getLlddw = () => {
|
|
let res = [{point_code: 'LLDDW03', point_status: '0'}, {point_code: 'LLDDW02', point_status: '0'}, {point_code: 'LLDDW01', point_status: '0'}, {point_code: 'LLDDW04_1', point_status: '0'}, {point_code: 'LLDDW08', point_status: '0'}, {point_code: 'LLDDW07', point_status: '0'}, {point_code: 'LLDDW06', point_status: '0'}, {point_code: 'LLDDW05', point_status: '0'}, {point_code: 'LLDDW11', point_status: '1'}, {point_code: 'LLDDW10', point_status: '1'}, {point_code: 'LLDDW09', point_status: '0'}, {point_code: 'LLDDW14', point_status: '0'}, {point_code: 'LLDDW13', point_status: '0'}, {point_code: 'LLDDW12', point_status: '0'}]
|
|
return res
|
|
}
|
|
export const fillUpEmpty = (code) => {
|
|
let res = {
|
|
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
|
|
}
|
|
export const getGroupByVehicleCode = () => {
|
|
let res = {
|
|
"vehicle_type_name": "钢托盘",
|
|
"materials": [
|
|
{
|
|
"order_code": "800036430823",
|
|
"group_id": "57412",
|
|
"material_qty": 1,
|
|
"material_code": "A7E0019000590_01"
|
|
},
|
|
{
|
|
"order_code": "800036430823",
|
|
"group_id": "57415",
|
|
"material_qty": 1,
|
|
"material_code": "A7E0019000590_01"
|
|
},
|
|
{
|
|
"order_code": "OR786807",
|
|
"group_id": "57478",
|
|
"material_qty": 20,
|
|
"material_code": "A7E44207473003_0A"
|
|
},
|
|
{
|
|
"order_code": "800036431198",
|
|
"group_id": "57479",
|
|
"material_qty": 20,
|
|
"material_code": "A7E0019008850_00"
|
|
}
|
|
],
|
|
"vehicle_type": "G01",
|
|
"vehicle_code": "P01A00000014"
|
|
}
|
|
return res
|
|
}
|
|
export const materialUpdate = () => {
|
|
let res = {
|
|
message: 'ok'
|
|
}
|
|
return res
|
|
}
|