feat(wms): 添加强制释放库位的API接口

新增forceReleaseLocation方法用于强制释放指定库位,当actualWarehouseId为空时抛出错误
This commit is contained in:
砂糖
2026-01-14 17:32:54 +08:00
parent b5bdc4e265
commit 82dacef66f

View File

@@ -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,
})
}