Files
yunrui_asset/backend/test_inout.ps1
T
zhang1106 568f9c7db8 feat(consumables): 添加耗材管理功能模块
添加耗材管理相关功能,包括:
1. 后端模型、路由和控制器
2. 前端页面和组件
3. 耗材分类管理
4. 耗材出入库记录
5. 耗材统计和日志功能
6. 集成到现有系统菜单
2025-12-24 16:44:27 +08:00

14 lines
409 B
PowerShell

$postData = @{
consumableId = "CON1766493042245"
type = "in"
quantity = 5
operator = "测试管理员"
reason = "测试入库"
notes = "测试日志记录功能"
} | ConvertTo-Json
$response = Invoke-RestMethod -Uri "http://localhost:8000/api/consumables/quick-inout" -Method Post -Body $postData -ContentType "application/json"
Write-Host "入库API响应:"
$response | ConvertTo-Json -Depth 5