ETest-Vue-FastAPI/工单列表过滤修复完成.txt

29 lines
963 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

=== 工单列表过滤已汇总工单修复完成 ===
问题: 从工单生成订单后,这些工单仍然在工单列表中显示,造成混乱
解决方案: 在工单列表查询中添加过滤条件,只显示未汇总的工单
修改的文件:
✅ ruoyi-fastapi-backend/module_admin/system/dao/test_work_order_dao.py
实现逻辑:
- 添加过滤条件: TestWorkOrder.order_id.is_(None)
- order_id 为 NULL: 工单未汇总,正常显示
- order_id 不为 NULL: 工单已汇总,不显示
效果:
- 工单列表只显示待处理的工单
- 已汇总的工单在新订单详情页查看
- 避免混淆和重复显示
下一步:
1. 重启后端服务
2. 查看工单列表
3. 已汇总的工单order_id 不为空)不应该显示
4. 在新订单详情页可以看到对应的样品
相关文档:
- 工单列表过滤已汇总工单修复说明.md (详细说明)
- 工单生成订单功能实现进度.md (总体进度)