区域锁定需求

This commit is contained in:
蔡玲
2024-09-24 15:15:04 +08:00
parent f586ef5ed3
commit 1158f09676
4 changed files with 114 additions and 13 deletions

View File

@@ -26,9 +26,9 @@ export const regionList = () => request({
method: 'GET'
})
// 区域锁定
export const handheldLock = (code, status) => request({
export const handheldLock = (code, status, data) => request({
url:'api/handheld/lock',
data: {region_code: code, status: status}
data: {region_code: code, status: status, pointCodes: data}
})
// 外协区空料架送回
export const handheldRack = (code, vcode) => request({
@@ -90,4 +90,8 @@ export const fabMaterial = (code) => request({
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'
})

View File

@@ -35,4 +35,8 @@ export const selectOrderByRegion = (code, code1) => {
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_code: '3', point_name: 'Amada 80T冲床07-01-06-01'}, {point_code: '4', point_name: 'Amada 80T冲床07-01-06-01'}, {point_code: '5', point_name: 'Amada 80T冲床07-01-06-01'}]
return res
}