配料任务
This commit is contained in:
@@ -1 +0,0 @@
|
||||
import request from './request.js'
|
||||
@@ -20,78 +20,13 @@ export const handLogin = (user, password) => request({
|
||||
password: password
|
||||
}
|
||||
})
|
||||
// 区域
|
||||
export const regionList = () => request({
|
||||
url:'api/fab/regionList',
|
||||
method: 'GET'
|
||||
})
|
||||
// 区域锁定
|
||||
export const handheldLock = (code, status, data) => request({
|
||||
url:'api/handheld/lock',
|
||||
data: {region_code: code, status: status, pointCodes: data}
|
||||
})
|
||||
// 外协区空料架送回
|
||||
export const handheldRack = (code, vcode) => request({
|
||||
url:'api/handheld/rack',
|
||||
data: {device_code: code, vehicle_code: vcode}
|
||||
})
|
||||
// 外协区空笼框送回
|
||||
export const handheldCageFrame = (type, code, list) => request({
|
||||
url:'api/handheld/cageFrame',
|
||||
data: {type: type, device_code: code, vehicle_list: list}
|
||||
})
|
||||
// 物料转运
|
||||
export const handheldTranshipment = (code, vcode) => request({
|
||||
url:'api/handheld/transhipment',
|
||||
data: {device_code: code, vehicle_code: vcode}
|
||||
})
|
||||
// 载具类型列表
|
||||
export const vehicleType = () => request({
|
||||
url:'api/fab/vehicleType',
|
||||
// 配料作业查询
|
||||
export const queryWorks = () => request({
|
||||
url:'api/hand/queryWorks',
|
||||
data: {}
|
||||
})
|
||||
// 补空框
|
||||
export const handheldStorehouse = (code, type) => request({
|
||||
url:'api/handheld/storehouse',
|
||||
data: {device_code: code, vehicle_type: type}
|
||||
})
|
||||
// 工序下料
|
||||
// export const handheldGetRegionCode = (code) => request({
|
||||
// url:'api/handheld/getRegionCode',
|
||||
// data: {orderCode: code}
|
||||
// })
|
||||
export const handheldBlanking = (type, code, rcode, vcode, material) => request({
|
||||
url:'api/handheld/blanking',
|
||||
data: {type: type, device_code: code, region_code: rcode, vehicle_code: vcode, material: material}
|
||||
})
|
||||
// 修改订单工序
|
||||
export const fabOrders = (code) => request({
|
||||
url:'api/fab/orders',
|
||||
data: {vehicle_code: code}
|
||||
})
|
||||
export const updateOrder = (data) => request({
|
||||
url:'api/handheld/updateOrder',
|
||||
data: data
|
||||
})
|
||||
// 路线锁定
|
||||
export const updateRouteStatus = (type, status) => request({
|
||||
url:'api/handheld/updateRouteStatus',
|
||||
data: {type: type, status: status}
|
||||
})
|
||||
// 呼叫物料
|
||||
export const selectOrderByRegion = (code, code1) => request({
|
||||
url:'api/fab/selectOrderByRegion?regionCode=' + code + '&deviceCode=' + code1,
|
||||
method: 'GET'
|
||||
})
|
||||
export const fabMaterial = (code) => request({
|
||||
url:'api/fab/material',
|
||||
data: {vehicle_code: code}
|
||||
})
|
||||
export const callMater = (mater, code, vcode) => request({
|
||||
url:'api/fab/callMater',
|
||||
data: {mater: mater, device_code: code, vehicle_code: vcode}
|
||||
})
|
||||
export const selectPointByRegion = (code) => request({
|
||||
url:'api/handheld/selectPointByRegion?regionCode=' + code,
|
||||
method: 'GET'
|
||||
// 确认配料作业
|
||||
export const handConfirm = () => request({
|
||||
url:'api/hand/confirm',
|
||||
data: {work_code: code}
|
||||
})
|
||||
@@ -7,36 +7,50 @@ export const handLogin = (user, password) => {
|
||||
}
|
||||
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 fabOrders = (data) => {
|
||||
export const queryWorks = () => {
|
||||
let res = [
|
||||
{order_code: '111'}
|
||||
{
|
||||
"seq_no": 1,
|
||||
"work_code": "000032",
|
||||
"mfg_order_name": "20240110-2514",
|
||||
"material_code": "10305020",
|
||||
"material_name": "菜籽油",
|
||||
"qty": 415.0,
|
||||
"resource_name": "1",
|
||||
"require_num": 21,
|
||||
"remain_num": 21,
|
||||
"status": "执行中"
|
||||
},
|
||||
{
|
||||
"seq_no": 3,
|
||||
"work_code": "000034",
|
||||
"mfg_order_name": "20240110-2514",
|
||||
"material_code": "10305092",
|
||||
"material_name": "橄榄油",
|
||||
"qty": 500.0,
|
||||
"resource_name": "1",
|
||||
"require_num": 25,
|
||||
"remain_num": 25,
|
||||
"status": "就绪"
|
||||
},
|
||||
{
|
||||
"seq_no": 4,
|
||||
"work_code": "000035",
|
||||
"mfg_order_name": "20240110-2514",
|
||||
"material_code": "10305093",
|
||||
"material_name": "花生油",
|
||||
"qty": 370.0,
|
||||
"resource_name": "1",
|
||||
"require_num": 19,
|
||||
"remain_num": 19,
|
||||
"status": "就绪"
|
||||
}
|
||||
]
|
||||
return res
|
||||
}
|
||||
export const updateRouteStatus = (data) => {
|
||||
export const handConfirm = () => {
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user