Commit 87f1fa5
committed
feat: 试剂订单增强与前后端优化
## 新增功能
- 新增 AutoComplete 组件(前端模糊匹配搜索)
- 新增 formConfigs.tsx 表单配置
- 新增 options.ts 选项配置
- 新增 AutoComplete.tsx 组件
- 新增 user_utils.py 通用用户查询函数
- 新增多个文档分析文件
## 后端优化
- 试剂订单 API 添加缓存机制 (REAGENT_ORDER_CACHE)
- 导出 CSV 时填充申请人姓名
- 统一使用 batch_get_user_names 消除 N+1 查询
- 修复规格验证正则 (避免 1.5.5 等非法格式)
- ConsumableOrder 改为 initial_quantity + unit 存储
- ReagentOrder.price 改为必填 (gt=0)
## 前端优化
- 添加 ReagentOrderStatus/ConsumableOrderStatus 枚举
- 删除无效的 supplier 字段
- price 验证改为大于 0
- 输入验证迁移到 validationSchemas.ts (Valibot)
## 组件更新
- BaseForm 支持 autocomplete 类型
- MoleculeStructure 组件优化
- Input/QuantityIndicator/StatusBadge/Dialog 组件完善
## 代码清理
- 删除 inputValidation.ts (迁移到 valibot)
- 删除 Inventory-old.tsx
- 删除 .claude/.kilocode/.sonar 配置1 parent 284b765 commit 87f1fa5
File tree
54 files changed
+29207
-3231
lines changed- .claude
- .kilocode
- rules
- .sonar
- app
- api
- models
- services
- docs
- prompt
- frontend
- src
- api
- components
- ui
- lib
- pages
- plans
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
54 files changed
+29207
-3231
lines changedThis file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
Whitespace-only changes.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| |||
36 | 46 | | |
37 | 47 | | |
38 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
39 | 58 | | |
40 | 59 | | |
41 | 60 | | |
42 | 61 | | |
43 | 62 | | |
44 | 63 | | |
45 | 64 | | |
46 | | - | |
| 65 | + | |
| 66 | + | |
47 | 67 | | |
48 | 68 | | |
49 | 69 | | |
| |||
111 | 131 | | |
112 | 132 | | |
113 | 133 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 134 | + | |
119 | 135 | | |
120 | 136 | | |
121 | 137 | | |
122 | | - | |
| 138 | + | |
123 | 139 | | |
124 | 140 | | |
125 | 141 | | |
| |||
287 | 303 | | |
288 | 304 | | |
289 | 305 | | |
290 | | - | |
| 306 | + | |
291 | 307 | | |
292 | 308 | | |
293 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 229 | + | |
236 | 230 | | |
237 | 231 | | |
238 | 232 | | |
| |||
602 | 596 | | |
603 | 597 | | |
604 | 598 | | |
605 | | - | |
| 599 | + | |
606 | 600 | | |
607 | 601 | | |
608 | 602 | | |
| |||
617 | 611 | | |
618 | 612 | | |
619 | 613 | | |
620 | | - | |
621 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
622 | 621 | | |
623 | 622 | | |
624 | 623 | | |
| |||
775 | 774 | | |
776 | 775 | | |
777 | 776 | | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
| 777 | + | |
| 778 | + | |
784 | 779 | | |
785 | 780 | | |
786 | 781 | | |
| |||
804 | 799 | | |
805 | 800 | | |
806 | 801 | | |
807 | | - | |
808 | | - | |
| 802 | + | |
| 803 | + | |
809 | 804 | | |
810 | 805 | | |
811 | 806 | | |
| |||
0 commit comments