note/tech/design-checklist.md
2025-11-19 10:16:05 +08:00

92 lines
2.2 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.

# design a checklist app
## overview
When we do SOP,we need a checklist. To design a checklist app,we can create and view a checklist, then record it.
## frontend
### 首页
1. 使用中显示正在使用的检查单。最多4个未完成。
2. 收藏的模板按收藏时间降序最多显示4个点击“更多”显示所有收藏的模板
3. 所有模板按创建顺序降序排列最多显示4个点击“更多”显示所有模板
4. 创建模板:+号
### 创建模板页面
1. 名称(不可重名)
2. 模版中的模块,分为三类:
1. check类显示文字最右侧有一个或多个checkbox勾选至少一个
2. choose类显示文字最右侧有选择框2选一或多选一
3. 文本类显示文字最右侧有text框输入文字或数字
## backend
### 数据库设计
1. 模版表
1. 模版编号10001-99999最多创建99999个模板
2. 模版名称:
<<<<<<< HEAD
3. 模块数量
4. 模版创建时间
5. 模版最后一次使用时间
2. 模块表-check
1. 模块编号
2. 模版编号
3. 是否有效
4. 文字描述
5. 选择1
6. 选择1描述
7. 选择2:
8. 选择2描述
9. 选择3:
10. 选择3描述
3. 模块表-choose
1. 模块编号
2. 模版编号
3. 是否有效
4. 文字描述
5. 选择1
6. 选择1描述
7. 选择2:
8. 选择2描述
9. 选择3:
10. 选择3描述
11. 选择4:
12. 选择4描述
13. 选择5:
14. 选择5描述
15. 选择6:
16. 选择6描述
=======
3. 模版创建时间
4. 模版最后一次使用时间
2. 模块表
1. 模块编号排序
2. 模版编号
3. 是否有效
4. 模块类型checkchoosetext
5. 文字描述
6. 模块对应表编号
3. 模块表-choose选择对应表
1. 编号
2. 名称
3. 序列
4. 数值内容
4. 记录表
1. 记录序号
2. 模版编号
3. 模块编号
4. 记录结果
5. 记录创建时间
6. 记录结束时间
5. 记录统计表
1. 记录序号
2. 记录状态
>>>>>>> a9d02406b0fe6e123fd96132dd099a67af6ff69d