react-phone-apps/.blueprint/modules/item-form.md
lanrtop 3dbc6f0ff5 refactor: 标记点序号显示、布局叠加方式及照片选择器重构
- 标记点角标从物品数量改为按楼层顺序编号,角标背景色跟随标记颜色
- FoldableLayout 改为绝对定位叠加布局,移除 LayoutAnimation(解决 Android 地图渲染空白及卡顿)
- PhotoPicker 拆分为拍照/选图两个独立按钮;选图改用 expo-document-picker 绕过三星 Photo Picker 崩溃问题
- AndroidManifest 移除手动 FileProvider 声明(改由 Expo 插件自动注入)
- 同步更新蓝图文档:新增 category-management 模块、补全各模块已完成任务卡

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 02:17:34 +09:00

41 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: item-form
name: 物品登记表单
area: rn-app
status: done
---
## 概述
点击地图标记点后弹出的物品编辑面板(右侧栏内联)。支持单个标记点下的多条物品记录增删改,物品字段含名称、动态分类、数量、单位、规格、单价、参考价、备注,以及确认状态标记。
## 任务卡
### ✅ 底部抽屉/右栏容器
- status: done
- complexity: M
- files: apps/property-survey/src/features/item/ItemFormSheet.tsx
- depends: survey-app-shell, floor-map
- acceptance: 右栏内渲染;顶部显示标记点标签 + 楼层 + 颜色选择器;头部操作区含复制标记点、删除标记点、关闭按钮
### ✅ 物品字段表单
- status: done
- complexity: M
- files: apps/property-survey/src/features/item/ItemFields.tsx, apps/property-survey/src/features/item/useItemForm.ts
- depends: item-form, category-management
- acceptance: 字段:物品名称(必填)、动态分类 chip来自 CategoriesContext、数量、单位、单价、参考价、规格多行、备注多行底部固定保存按钮 + 确认状态勾选框(显示确认时间或「待确认」);保存时校验物品名称非空;保存成功后显示 Toast 提示(「已保存」)
### ✅ 标记点下物品列表
- status: done
- complexity: M
- files: apps/property-survey/src/features/item/ItemList.tsx
- depends: item-form
- acceptance: 横向滚动列表展示当前标记点所有物品;点击条目进入编辑;含新增物品入口;物品卡片显示名称、数量、照片数
### ✅ 物品确认状态
- status: done
- complexity: S
- files: apps/property-survey/src/features/item/ItemFields.tsx, apps/property-survey/src/features/item/useItemForm.ts, apps/property-survey/src/db/items.ts
- depends: item-form
- acceptance: 表单底部显示勾选框未确认显示「待确认」灰色文字已确认显示绿色确认时间MM-DD HH:mm点击切换状态保存时写入 confirmed_at 字段;标记点列表侧边栏同步显示每个物品的确认状态图标