fix(test): 修复测试数据库 schema 和 Flutter 测试与屏幕重构的兼容性
- backend/testutil/setup.go: SQLite shops 表补充 business_hours 列 - stock_in_screen_test: 入库管理双 Tab 重构后,draft/pending 测试改为先切换到「入库审核」Tab - stock_out_insufficient_stock_flow_test: Inventory 构造参数 productUnit→unit,补充必填 id - inventory_repository_test: mock 数据改为平铺字段格式,补充必填 id - docs: 新增 NAS + Gitea 部署文档(Runner 设置、Shadowrocket 中继说明) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -101,11 +101,12 @@ class _FakeInventoryRepository extends InventoryRepository {
|
||||
return const PageResult(
|
||||
data: [
|
||||
Inventory(
|
||||
id: 1,
|
||||
warehouseId: 1,
|
||||
warehouseName: '主仓库',
|
||||
productId: 1,
|
||||
productName: '五粮液',
|
||||
productUnit: '瓶',
|
||||
unit: '瓶',
|
||||
quantity: 1,
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user