feat(wms): 添加强制释放库位的API接口
新增forceReleaseLocation方法用于强制释放指定库位,当actualWarehouseId为空时抛出错误
This commit is contained in:
@@ -119,3 +119,17 @@ export function mergeActualWarehouse(payload) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 强制释放库位
|
||||||
|
*/
|
||||||
|
export function forceReleaseLocation(actualWarehouseId) {
|
||||||
|
if (!actualWarehouseId) {
|
||||||
|
throw new Error('actualWarehouseId is required');
|
||||||
|
}
|
||||||
|
return request({
|
||||||
|
url: '/wms/actualWarehouse/release/' + actualWarehouseId,
|
||||||
|
method: 'put',
|
||||||
|
timeout: 100000,
|
||||||
|
})
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user